	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_led_to                     ## -- Begin function set_led_to
	.p2align	4, 0x90
_set_led_to:                            ## @set_led_to
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	_TWI_CMD_LED_SET_ONE_TO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	%edi, %eax
	andl	$31, %eax
	movl	%eax, -28(%rbp)
	movl	%ecx, -24(%rbp)
	movl	%edx, -20(%rbp)
	movl	%esi, -16(%rbp)
	cmpl	$32, %edi
	jl	LBB0_1
## %bb.2:
	movq	_RIGHT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_LEFT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_I2C_ADDR
	movq	_I2C_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-32(%rbp), %rsi
	movl	%eax, %edi
	movl	$20, %edx
	callq	_i2c_transmit
	movl	$10, %edi
	callq	__delay_us
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$32, %rsp
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TWI_CMD_LED_SET_ONE_TO,4,2     ## @TWI_CMD_LED_SET_ONE_TO
	.comm	_RIGHT,4,2                      ## @RIGHT
	.comm	_LEFT,4,2                       ## @LEFT
	.comm	_I2C_TIMEOUT,4,2                ## @I2C_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_led_to                     ; -- Begin function set_led_to
	.p2align	2
_set_led_to:                            ; @set_led_to
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, _TWI_CMD_LED_SET_ONE_TO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TWI_CMD_LED_SET_ONE_TO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w9, w0, #0x1f
	stp	w8, w9, [sp, #4]
	stp	w3, w2, [sp, #12]
Lloh6:
	adrp	x8, _RIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RIGHT@GOTPAGEOFF]
	str	w1, [sp, #20]
Lloh8:
	adrp	x9, _LEFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LEFT@GOTPAGEOFF]
	cmp	w0, #31
	csel	x8, x8, x9, gt
	ldr	w0, [x8]
	bl	_I2C_ADDR
Lloh10:
	adrp	x8, _I2C_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I2C_TIMEOUT@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	add	x1, sp, #4
	mov	w2, #20
	bl	_i2c_transmit
	mov	w0, #10
	bl	__delay_us
	ldur	x8, [x29, #-8]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TWI_CMD_LED_SET_ONE_TO,4,2     ; @TWI_CMD_LED_SET_ONE_TO
	.comm	_RIGHT,4,2                      ; @RIGHT
	.comm	_LEFT,4,2                       ; @LEFT
	.comm	_I2C_TIMEOUT,4,2                ; @I2C_TIMEOUT
.subsections_via_symbols
