	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ws2812_setleds                 ## -- Begin function ws2812_setleds
	.p2align	4, 0x90
_ws2812_setleds:                        ## @ws2812_setleds
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpb	$0, _ws2812_setleds.s_init(%rip)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_ws2812_init
	movb	$1, _ws2812_setleds.s_init(%rip)
LBB0_2:
	xorl	%eax, %eax
	callq	_chSysLock
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	addq	$12, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_sendByte
	movl	-4(%rbx), %edi
	callq	_sendByte
	movl	-8(%rbx), %edi
	callq	_sendByte
	addq	$16, %rbx
	decq	%r14
	jne	LBB0_4
LBB0_5:
	movq	_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wait_ns
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_chSysUnlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ws2812_setleds.s_init,1,2 ## @ws2812_setleds.s_init
	.comm	_RES,4,2                        ## @RES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ws2812_setleds                 ; -- Begin function ws2812_setleds
	.p2align	2
_ws2812_setleds:                        ; @ws2812_setleds
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	adrp	x21, _ws2812_setleds.s_init@PAGE
	ldrb	w8, [x21, _ws2812_setleds.s_init@PAGEOFF]
	tbnz	w8, #0, LBB0_2
; %bb.1:
	bl	_ws2812_init
	mov	w8, #1
	strb	w8, [x21, _ws2812_setleds.s_init@PAGEOFF]
LBB0_2:
	bl	_chSysLock
	cbz	x19, LBB0_5
; %bb.3:
	add	x20, x20, #12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_sendByte
	ldur	w0, [x20, #-4]
	bl	_sendByte
	ldur	w0, [x20, #-8]
	bl	_sendByte
	add	x20, x20, #16
	subs	x19, x19, #1
	b.ne	LBB0_4
LBB0_5:
Lloh0:
	adrp	x8, _RES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_wait_ns
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_chSysUnlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ws2812_setleds.s_init,1,2 ; @ws2812_setleds.s_init
	.comm	_RES,4,2                        ; @RES
.subsections_via_symbols
