	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_send_led_cmd
_iwl_send_led_cmd:                      ## @iwl_send_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	%esi, -28(%rbp)
	movl	$4, -24(%rbp)
	movq	_REPLY_LEDS_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	(%rdi), %edi
	movq	_CSR_LED_REG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_iwl_read32
	movq	_CSR_LED_BSM_CTRL_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	cmpl	%edx, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movl	(%r14), %esi
	callq	_iwl_write32
LBB0_2:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_iwl_dvm_send_cmd
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
	.comm	_REPLY_LEDS_CMD,4,2             ## @REPLY_LEDS_CMD
	.comm	_CSR_LED_REG,4,2                ## @CSR_LED_REG
	.comm	_CSR_LED_BSM_CTRL_MSK,4,2       ## @CSR_LED_BSM_CTRL_MSK
	.no_dead_strip	_iwl_send_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_send_led_cmd
_iwl_send_led_cmd:                      ; @iwl_send_led_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _CMD_ASYNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_ASYNC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w1, [sp]
	mov	w8, #4
Lloh3:
	adrp	x9, _REPLY_LEDS_CMD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REPLY_LEDS_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
	ldr	w0, [x0]
Lloh6:
	adrp	x20, _CSR_LED_REG@GOTPAGE
Lloh7:
	ldr	x20, [x20, _CSR_LED_REG@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_iwl_read32
Lloh8:
	adrp	x8, _CSR_LED_BSM_CTRL_MSK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CSR_LED_BSM_CTRL_MSK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w2, w8, w0
	cmp	w0, w2
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_iwl_write32
LBB0_2:
	mov	x1, sp
	mov	x0, x19
	bl	_iwl_dvm_send_cmd
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
	.comm	_REPLY_LEDS_CMD,4,2             ; @REPLY_LEDS_CMD
	.comm	_CSR_LED_REG,4,2                ; @CSR_LED_REG
	.comm	_CSR_LED_BSM_CTRL_MSK,4,2       ; @CSR_LED_BSM_CTRL_MSK
	.no_dead_strip	_iwl_send_led_cmd
.subsections_via_symbols
