	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_d3_reprogram
_iwl_mvm_d3_reprogram:                  ## @iwl_mvm_d3_reprogram
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_iwl_mvm_is_cdb_supported
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	xorl	%edi, %edi
	cmpq	$0, 16(%r14)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_2:
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	4(%r12), %edi
	callq	_rcu_dereference
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movl	8(%r13), %eax
	movl	%eax, -48(%rbp)
	movl	(%r13), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %ebx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	16(%r14), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_iwl_mvm_phy_ctxt_add
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.8:
	movl	$0, (%r14)
	xorl	%edi, %edi
	cmpl	$0, (%r12)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.9:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_iwl_mvm_mac_ctxt_add
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.10:
	movq	%r14, %rdi
	addq	$16, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_d3_reprogram.cold.1
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_d3_reprogram.cold.1
_iwl_mvm_d3_reprogram.cold.1:           ## @iwl_mvm_d3_reprogram.cold.1
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_FW_CMD_ID_AND_COLOR
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	_FW_CTXT_ACTION_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_FW_CMD_ID_AND_COLOR
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	24(%r14), %esi
	movl	28(%r14), %edi
	callq	_FW_CMD_ID_AND_COLOR
	movl	%eax, %edi
	callq	_cpu_to_le32
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FW_CTXT_ACTION_ADD,4,2         ## @FW_CTXT_ACTION_ADD
	.comm	_MAX_MACS_IN_BINDING,4,2        ## @MAX_MACS_IN_BINDING
	.comm	_FW_CTXT_INVALID,4,2            ## @FW_CTXT_INVALID
	.comm	_BINDING_CONTEXT_CMD,4,2        ## @BINDING_CONTEXT_CMD
	.comm	_IWL_BINDING_CMD_SIZE_V1,4,2    ## @IWL_BINDING_CMD_SIZE_V1
	.comm	_EIO,4,2                        ## @EIO
	.comm	_IWL_MVM_MAX_QUOTA,4,2          ## @IWL_MVM_MAX_QUOTA
	.comm	_MAX_BINDINGS,4,2               ## @MAX_BINDINGS
	.comm	_TIME_QUOTA_CMD,4,2             ## @TIME_QUOTA_CMD
	.no_dead_strip	_iwl_mvm_d3_reprogram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_d3_reprogram
_iwl_mvm_d3_reprogram:                  ; @iwl_mvm_d3_reprogram
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	mov	x19, x0
	mov	x0, x21
	bl	_iwl_mvm_is_cdb_supported
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.2:
	bl	_rcu_read_lock
	ldr	w0, [x20, #4]
	bl	_rcu_dereference
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_6
; %bb.3:
	bl	_rcu_read_unlock
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldp	w23, w8, [x22, #4]
	str	w8, [sp, #8]
	ldr	w22, [x22]
	bl	_rcu_read_unlock
	ldr	x1, [x19, #16]
	add	x2, sp, #8
	mov	x0, x21
	mov	x3, x23
	mov	x4, x22
	bl	_iwl_mvm_phy_ctxt_add
	cbnz	w0, LBB0_5
; %bb.7:
	str	wzr, [x19]
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.8:
	mov	x0, x21
	mov	x1, x20
	bl	_iwl_mvm_mac_ctxt_add
	cbnz	w0, LBB0_5
; %bb.9:
	add	x0, x19, #16
	mov	x1, x19
	bl	_iwl_mvm_d3_reprogram.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function iwl_mvm_d3_reprogram.cold.1
_iwl_mvm_d3_reprogram.cold.1:           ; @iwl_mvm_d3_reprogram.cold.1
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldp	w1, w0, [x8]
	bl	_FW_CMD_ID_AND_COLOR
	bl	_cpu_to_le32
Lloh3:
	adrp	x8, _FW_CTXT_ACTION_ADD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_CTXT_ACTION_ADD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x20]
	ldp	w1, w0, [x8]
	bl	_FW_CMD_ID_AND_COLOR
	bl	_cpu_to_le32
	ldp	w1, w0, [x19, #24]
	bl	_FW_CMD_ID_AND_COLOR
	bl	_cpu_to_le32
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FW_CTXT_ACTION_ADD,4,2         ; @FW_CTXT_ACTION_ADD
	.comm	_MAX_MACS_IN_BINDING,4,2        ; @MAX_MACS_IN_BINDING
	.comm	_FW_CTXT_INVALID,4,2            ; @FW_CTXT_INVALID
	.comm	_BINDING_CONTEXT_CMD,4,2        ; @BINDING_CONTEXT_CMD
	.comm	_IWL_BINDING_CMD_SIZE_V1,4,2    ; @IWL_BINDING_CMD_SIZE_V1
	.comm	_EIO,4,2                        ; @EIO
	.comm	_IWL_MVM_MAX_QUOTA,4,2          ; @IWL_MVM_MAX_QUOTA
	.comm	_MAX_BINDINGS,4,2               ; @MAX_BINDINGS
	.comm	_TIME_QUOTA_CMD,4,2             ; @TIME_QUOTA_CMD
	.no_dead_strip	_iwl_mvm_d3_reprogram
.subsections_via_symbols
