	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il_led_cmd
_il_led_cmd:                            ## @il_led_cmd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_IL_DEF_LED_INTRVL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_IL_LED_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_S_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpq	%r15, (%rbx)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	cmpq	%r14, 8(%rbx)
	je	LBB0_8
LBB0_4:
	testq	%r14, %r14
	jne	LBB0_6
## %bb.5:
	movq	_IL_LED_SOLID@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_6:
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_D_LED
	movq	24(%rbx), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_il_blink_compensation
	movq	%rax, -40(%rbp)
	movq	24(%rbx), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_il_blink_compensation
	movq	%rax, -48(%rbp)
	movq	16(%rbx), %rax
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%r15, (%rbx)
	movq	%r14, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IL_DEF_LED_INTRVL,4,2          ## @IL_DEF_LED_INTRVL
	.comm	_IL_LED_LINK,4,2                ## @IL_LED_LINK
	.comm	_S_READY,4,2                    ## @S_READY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IL_LED_SOLID,8,3               ## @IL_LED_SOLID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Led blink time compensation=%u\n"

	.no_dead_strip	_il_led_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il_led_cmd
_il_led_cmd:                            ; @il_led_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _IL_DEF_LED_INTRVL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IL_DEF_LED_INTRVL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IL_LED_LINK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IL_LED_LINK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
Lloh6:
	adrp	x8, _S_READY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_READY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x20, #32
	bl	_test_bit
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x20]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh9:
	adrp	x8, _IL_LED_SOLID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IL_LED_SOLID@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x19, #0
	csel	x21, x8, x21, eq
	ldr	x8, [x20, #24]
	ldr	w1, [x8]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_LED
	ldr	x8, [x20, #24]
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_il_blink_compensation
	str	x0, [sp, #16]
	ldr	x8, [x20, #24]
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_il_blink_compensation
	str	x0, [sp, #8]
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	add	x1, sp, #8
	mov	x0, x20
	blr	x8
	cbnz	w0, LBB0_7
; %bb.5:
	stp	x21, x19, [x20]
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IL_DEF_LED_INTRVL,4,2          ; @IL_DEF_LED_INTRVL
	.comm	_IL_LED_LINK,4,2                ; @IL_LED_LINK
	.comm	_S_READY,4,2                    ; @S_READY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IL_LED_SOLID,8,3               ; @IL_LED_SOLID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Led blink time compensation=%u\n"

	.no_dead_strip	_il_led_cmd
.subsections_via_symbols
