	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_load_d3_fw             ## -- Begin function iwl_mvm_load_d3_fw
	.p2align	4, 0x90
_iwl_mvm_load_d3_fw:                    ## @iwl_mvm_load_d3_fw
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	addq	$16, %rdi
	callq	_lockdep_assert_held
	movl	12(%r14), %edi
	callq	_iwl_trans_start_hw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	_IWL_UCODE_WOWLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_iwl_mvm_load_ucode_wait_alive
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_IWL_ERR
	jmp	LBB0_3
LBB0_4:
	movq	%r14, %rdi
	callq	_iwl_mvm_get_valid_tx_ant
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_iwl_send_tx_ant_cfg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	movl	8(%r14), %edi
	callq	_iwl_send_phy_db_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.6:
	movq	%r14, %rdi
	callq	_iwl_send_phy_cfg_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.7:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	xorl	%esi, %esi
	callq	_RCU_INIT_POINTER
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	callq	_iwl_mvm_add_aux_sta
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_11
LBB0_3:
	movq	%r14, %rdi
	callq	_iwl_mvm_stop_device
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_UCODE_WOWLAN,4,2           ## @IWL_UCODE_WOWLAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to start WoWLAN firmware: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_load_d3_fw             ; -- Begin function iwl_mvm_load_d3_fw
	.p2align	2
_iwl_mvm_load_d3_fw:                    ; @iwl_mvm_load_d3_fw
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #16
	bl	_lockdep_assert_held
	ldr	w0, [x19, #12]
	bl	_iwl_trans_start_hw
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.1:
Lloh0:
	adrp	x8, _IWL_UCODE_WOWLAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_UCODE_WOWLAN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iwl_mvm_load_ucode_wait_alive
	cbz	w0, LBB0_3
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_IWL_ERR
	b	LBB0_10
LBB0_3:
	mov	x0, x19
	bl	_iwl_mvm_get_valid_tx_ant
	mov	x1, x0
	mov	x0, x19
	bl	_iwl_send_tx_ant_cfg
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w0, [x19, #8]
	bl	_iwl_send_phy_db_data
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_iwl_send_phy_cfg_cmd
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.6:
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x20, lsl #2]
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	add	x20, x20, #1
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	b.lt	LBB0_8
LBB0_9:
	mov	x0, x19
	bl	_iwl_mvm_add_aux_sta
	mov	x20, x0
	cbz	w0, LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_iwl_mvm_stop_device
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_WOWLAN,4,2           ; @IWL_UCODE_WOWLAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to start WoWLAN firmware: %d\n"

.subsections_via_symbols
