	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_all_leds_to                ## -- Begin function set_all_leds_to
	.p2align	4, 0x90
_set_all_leds_to:                       ## @set_all_leds_to
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_TWI_CMD_LED_SET_ALL_TO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%edx, -44(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edi, -36(%rbp)
	movq	_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I2C_ADDR
	movq	_I2C_TIMEOUT@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	leaq	-48(%rbp), %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_i2c_transmit
	movq	_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I2C_ADDR
	movl	(%r14), %ecx
	movl	%eax, %edi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_i2c_transmit
	movl	$10, %edi
	callq	__delay_us
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TWI_CMD_LED_SET_ALL_TO,4,2     ## @TWI_CMD_LED_SET_ALL_TO
	.comm	_LEFT,4,2                       ## @LEFT
	.comm	_I2C_TIMEOUT,4,2                ## @I2C_TIMEOUT
	.comm	_RIGHT,4,2                      ## @RIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_all_leds_to                ; -- Begin function set_all_leds_to
	.p2align	2
_set_all_leds_to:                       ; @set_all_leds_to
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _TWI_CMD_LED_SET_ALL_TO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TWI_CMD_LED_SET_ALL_TO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w2, [sp, #8]
	stp	w1, w0, [sp, #16]
Lloh6:
	adrp	x8, _LEFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LEFT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_I2C_ADDR
Lloh9:
	adrp	x19, _I2C_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x19, [x19, _I2C_TIMEOUT@GOTPAGEOFF]
	ldr	w3, [x19]
	add	x1, sp, #8
	mov	w2, #16
	bl	_i2c_transmit
Lloh11:
	adrp	x8, _RIGHT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RIGHT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_I2C_ADDR
	ldr	w3, [x19]
	add	x1, sp, #8
	mov	w2, #16
	bl	_i2c_transmit
	mov	w0, #10
	bl	__delay_us
	ldr	x8, [sp, #24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TWI_CMD_LED_SET_ALL_TO,4,2     ; @TWI_CMD_LED_SET_ALL_TO
	.comm	_LEFT,4,2                       ; @LEFT
	.comm	_I2C_TIMEOUT,4,2                ; @I2C_TIMEOUT
	.comm	_RIGHT,4,2                      ; @RIGHT
.subsections_via_symbols
