	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_send_led_fw_cmd
_iwl_mvm_send_led_fw_cmd:               ## @iwl_mvm_send_led_fw_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_cpu_to_le32
	movl	%eax, -16(%rbp)
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	leaq	-16(%rbp), %rax
	movl	%eax, -28(%rbp)
	movl	$4, -24(%rbp)
	movq	_LONG_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LEDS_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WIDE_ID
	movl	%eax, -20(%rbp)
	movq	%rbx, %rdi
	callq	_iwl_mvm_firmware_running
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_iwl_mvm_send_cmd
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_IWL_WARN
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
	.comm	_LONG_GROUP,4,2                 ## @LONG_GROUP
	.comm	_LEDS_CMD,4,2                   ## @LEDS_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LED command failed: %d\n"

	.no_dead_strip	_iwl_mvm_send_led_fw_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_send_led_fw_cmd
_iwl_mvm_send_led_fw_cmd:               ; @iwl_mvm_send_led_fw_cmd
	.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
	mov	x19, x0
	mov	x0, x1
	bl	_cpu_to_le32
	str	w0, [sp, #24]
Lloh0:
	adrp	x8, _CMD_ASYNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_ASYNC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	x9, sp, #24
	stp	w8, w9, [sp, #8]
	mov	w8, #4
	str	w8, [sp, #16]
Lloh3:
	adrp	x8, _LONG_GROUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LONG_GROUP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _LEDS_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LEDS_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_WIDE_ID
	str	w0, [sp, #20]
	mov	x0, x19
	bl	_iwl_mvm_firmware_running
	cbz	w0, LBB0_3
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_iwl_mvm_send_cmd
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_WARN
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
	.comm	_LONG_GROUP,4,2                 ; @LONG_GROUP
	.comm	_LEDS_CMD,4,2                   ; @LEDS_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LED command failed: %d\n"

	.no_dead_strip	_iwl_mvm_send_led_fw_cmd
.subsections_via_symbols
