	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_send_recovery_cmd      ## -- Begin function iwl_mvm_send_recovery_cmd
	.p2align	4, 0x90
_iwl_mvm_send_recovery_cmd:             ## @iwl_mvm_send_recovery_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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %r15d
	movl	$0, -40(%rbp)
	movl	%esi, %edi
	callq	_cpu_to_le32
	movl	%eax, -36(%rbp)
	movq	$8, -80(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	_CMD_WANT_SKB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_SYSTEM_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FW_ERROR_RECOVERY_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WIDE_ID
	movl	%eax, -44(%rbp)
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.1:
	movq	_ERROR_RECOVERY_UPDATE_DB@GOTPCREL(%rip), %r12
	testl	%r14d, (%r12)
	je	LBB0_4
## %bb.2:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, -32(%rbp)
	movl	%r15d, 12
	movq	_IWL_HCMD_DFL_NOCOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movl	%eax, -40(%rbp)
LBB0_4:
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_iwl_mvm_send_cmd
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	callq	_kfree
	movq	$0, (%rbx)
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	jmp	LBB0_9
LBB0_6:
	testl	%r14d, (%r12)
	je	LBB0_10
## %bb.7:
	movq	-72(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
LBB0_9:
	callq	_IWL_ERR
LBB0_10:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_WANT_SKB,4,2               ## @CMD_WANT_SKB
	.comm	_SYSTEM_GROUP,4,2               ## @SYSTEM_GROUP
	.comm	_FW_ERROR_RECOVERY_CMD,4,2      ## @FW_ERROR_RECOVERY_CMD
	.comm	_ERROR_RECOVERY_UPDATE_DB,4,2   ## @ERROR_RECOVERY_UPDATE_DB
	.comm	_IWL_HCMD_DFL_NOCOPY,4,2        ## @IWL_HCMD_DFL_NOCOPY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to send recovery cmd %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to send recovery cmd blob was invalid %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_send_recovery_cmd      ; -- Begin function iwl_mvm_send_recovery_cmd
	.p2align	2
_iwl_mvm_send_recovery_cmd:             ; @iwl_mvm_send_recovery_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w21, [x8]
	str	wzr, [sp, #40]
	mov	x0, x1
	bl	_cpu_to_le32
	str	w0, [sp, #44]
	mov	w8, #8
	stp	x8, xzr, [sp]
	add	x8, sp, #40
	stp	xzr, x8, [sp, #16]
Lloh0:
	adrp	x8, _CMD_WANT_SKB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_WANT_SKB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #32]
Lloh3:
	adrp	x8, _SYSTEM_GROUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYSTEM_GROUP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _FW_ERROR_RECOVERY_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FW_ERROR_RECOVERY_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_WIDE_ID
	str	w0, [sp, #36]
	cbz	w21, LBB0_10
; %bb.1:
Lloh9:
	adrp	x22, _ERROR_RECOVERY_UPDATE_DB@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ERROR_RECOVERY_UPDATE_DB@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.3:
	str	x8, [sp, #48]
	mov	w8, #12
	str	w21, [x8]
Lloh11:
	adrp	x8, _IWL_HCMD_DFL_NOCOPY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IWL_HCMD_DFL_NOCOPY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mov	w9, #4
	str	w8, [x9]
	mov	x0, x21
	bl	_cpu_to_le32
	str	w0, [sp, #40]
LBB0_4:
	mov	x1, sp
	mov	x0, x19
	bl	_iwl_mvm_send_cmd
	mov	x21, x0
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
	cbz	w21, LBB0_6
; %bb.5:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	b	LBB0_9
LBB0_6:
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.7:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	cbz	w0, LBB0_10
; %bb.8:
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_9:
	bl	_IWL_ERR
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_WANT_SKB,4,2               ; @CMD_WANT_SKB
	.comm	_SYSTEM_GROUP,4,2               ; @SYSTEM_GROUP
	.comm	_FW_ERROR_RECOVERY_CMD,4,2      ; @FW_ERROR_RECOVERY_CMD
	.comm	_ERROR_RECOVERY_UPDATE_DB,4,2   ; @ERROR_RECOVERY_UPDATE_DB
	.comm	_IWL_HCMD_DFL_NOCOPY,4,2        ; @IWL_HCMD_DFL_NOCOPY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to send recovery cmd %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to send recovery cmd blob was invalid %d\n"

.subsections_via_symbols
