	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_led_cmd
_iwl_led_cmd:                           ## @iwl_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	_IWL_DEF_LED_INTRVL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_IWL_LED_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_STATUS_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%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	_IWL_LED_SOLID@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_6:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_iwl_blink_compensation
	movq	%rax, -40(%rbp)
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_iwl_blink_compensation
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_iwl_send_led_cmd
	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	_IWL_DEF_LED_INTRVL,4,2         ## @IWL_DEF_LED_INTRVL
	.comm	_IWL_LED_LINK,4,2               ## @IWL_LED_LINK
	.comm	_STATUS_READY,4,2               ## @STATUS_READY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IWL_LED_SOLID,8,3              ## @IWL_LED_SOLID
	.no_dead_strip	_iwl_led_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_led_cmd
_iwl_led_cmd:                           ; @iwl_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, _IWL_DEF_LED_INTRVL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_DEF_LED_INTRVL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IWL_LED_LINK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_LED_LINK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
Lloh6:
	adrp	x8, _STATUS_READY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STATUS_READY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x20, #24
	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, _IWL_LED_SOLID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IWL_LED_SOLID@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x19, #0
	csel	x21, x8, x21, eq
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_iwl_blink_compensation
	str	x0, [sp, #16]
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_iwl_blink_compensation
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_iwl_send_led_cmd
	cbnz	w0, LBB0_7
; %bb.5:
	stp	x21, x19, [x20]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_DEF_LED_INTRVL,4,2         ; @IWL_DEF_LED_INTRVL
	.comm	_IWL_LED_LINK,4,2               ; @IWL_LED_LINK
	.comm	_STATUS_READY,4,2               ; @STATUS_READY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IWL_LED_SOLID,8,3              ; @IWL_LED_SOLID
	.no_dead_strip	_iwl_led_cmd
.subsections_via_symbols
