	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_mac_mgd_prepare_tx
_iwl_mvm_mac_mgd_prepare_tx:            ## @iwl_mvm_mac_mgd_prepare_tx
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	callq	_IWL_MAC80211_GET_MVM
	movq	%rax, %r15
	movq	_IWL_MVM_TE_SESSION_PROTECTION_MAX_TIME_MS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_IWL_MVM_TE_SESSION_PROTECTION_MIN_TIME_MS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	cmpq	%rbx, %rax
	cmovgq	%rax, %rbx
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movl	$500, %r8d                      ## imm = 0x1F4
	xorl	%r9d, %r9d
	callq	_iwl_mvm_protect_session
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MVM_TE_SESSION_PROTECTION_MAX_TIME_MS,8,3 ## @IWL_MVM_TE_SESSION_PROTECTION_MAX_TIME_MS
	.comm	_IWL_MVM_TE_SESSION_PROTECTION_MIN_TIME_MS,8,3 ## @IWL_MVM_TE_SESSION_PROTECTION_MIN_TIME_MS
	.no_dead_strip	_iwl_mvm_mac_mgd_prepare_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_mac_mgd_prepare_tx
_iwl_mvm_mac_mgd_prepare_tx:            ; @iwl_mvm_mac_mgd_prepare_tx
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	bl	_IWL_MAC80211_GET_MVM
	mov	x21, x0
Lloh0:
	adrp	x8, _IWL_MVM_TE_SESSION_PROTECTION_MAX_TIME_MS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_MVM_TE_SESSION_PROTECTION_MAX_TIME_MS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _IWL_MVM_TE_SESSION_PROTECTION_MIN_TIME_MS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_MVM_TE_SESSION_PROTECTION_MIN_TIME_MS@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x9]
	cmp	x8, x19
	csel	x19, x8, x19, gt
	bl	_mutex_lock
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	mov	w4, #500
	mov	w5, #0
	bl	_iwl_mvm_protect_session
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MVM_TE_SESSION_PROTECTION_MAX_TIME_MS,8,3 ; @IWL_MVM_TE_SESSION_PROTECTION_MAX_TIME_MS
	.comm	_IWL_MVM_TE_SESSION_PROTECTION_MIN_TIME_MS,8,3 ; @IWL_MVM_TE_SESSION_PROTECTION_MIN_TIME_MS
	.no_dead_strip	_iwl_mvm_mac_mgd_prepare_tx
.subsections_via_symbols
