	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_protect_session        ## -- Begin function iwl_mvm_protect_session
	.p2align	4, 0x90
_iwl_mvm_protect_session:               ## @iwl_mvm_protect_session
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rdi, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r13
	addq	$8, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_TIME_EVENT_NOTIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movq	$0, -128(%rbp)
	leaq	4(%r15), %rdi
	callq	_lockdep_assert_held
	cmpq	$0, 24(%r13)
	je	LBB0_4
## %bb.1:
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	movl	%r12d, -80(%rbp)                ## 4-byte Spill
	movq	%r15, %r12
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %r15
	movl	%r14d, %edi
	callq	_TU_TO_EXP_TIME
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_2
## %bb.11:
	movq	(%rbx), %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	subq	(%rax), %rdi
	callq	_jiffies_to_msecs
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IWL_DEBUG_TE                   ## TAILCALL
LBB0_2:
	cmpq	$0, 24(%r13)
	movq	%r12, %r15
	movl	-80(%rbp), %r12d                ## 4-byte Reload
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_4
## %bb.3:
	movl	16(%r13), %r14d
	movq	8(%r13), %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	subq	(%rax), %rdi
	callq	_jiffies_to_msecs
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TE
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_iwl_mvm_stop_session_protection
LBB0_4:
	movq	_FW_CTXT_ACTION_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, -96(%rbp)
	movl	(%r13), %esi
	movl	4(%r13), %edi
	callq	_FW_CMD_ID_AND_COLOR
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -104(%rbp)
	movq	_TE_BSS_STA_AGGRESSIVE_ASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, -112(%rbp)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, -120(%rbp)
	movq	_TE_V2_FRAG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movq	%rax, -136(%rbp)
	movl	$1, %edi
	callq	_cpu_to_le32
	movq	%rax, -144(%rbp)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, -152(%rbp)
	movq	_TE_V2_NOTIF_HOST_EVENT_START@GOTPCREL(%rip), %rax
	movq	_TE_V2_NOTIF_HOST_EVENT_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movl	$1, -160(%rbp)
	movq	_TE_V2_START_IMMEDIATELY@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, -156(%rbp)
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.6:
	leaq	-84(%rbp), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movq	_iwl_mvm_te_notif@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	%eax, %ecx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r9
	callq	_iwl_init_notification_wait
	leaq	-160(%rbp), %rcx
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_iwl_mvm_time_event_send_add
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_ERR
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_iwl_remove_notification
	jmp	LBB0_10
LBB0_5:
	leaq	-160(%rbp), %rcx
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_iwl_mvm_time_event_send_add
	jmp	LBB0_10
LBB0_8:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_TU_TO_JIFFIES
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_iwl_wait_notification
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_ERR
LBB0_10:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIME_EVENT_NOTIFICATION,4,2    ## @TIME_EVENT_NOTIFICATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"We have enough time in the current TE: %u\n"

	.comm	_jiffies,8,3                    ## @jiffies
L_.str.1:                               ## @.str.1
	.asciz	"extend 0x%x: only %u ms left\n"

	.comm	_FW_CTXT_ACTION_ADD,4,2         ## @FW_CTXT_ACTION_ADD
	.comm	_TE_BSS_STA_AGGRESSIVE_ASSOC,4,2 ## @TE_BSS_STA_AGGRESSIVE_ASSOC
	.comm	_TE_V2_FRAG_NONE,4,2            ## @TE_V2_FRAG_NONE
	.comm	_TE_V2_NOTIF_HOST_EVENT_START,4,2 ## @TE_V2_NOTIF_HOST_EVENT_START
	.comm	_TE_V2_NOTIF_HOST_EVENT_END,4,2 ## @TE_V2_NOTIF_HOST_EVENT_END
	.comm	_TE_V2_START_IMMEDIATELY,4,2    ## @TE_V2_START_IMMEDIATELY
	.comm	_iwl_mvm_te_notif,4,2           ## @iwl_mvm_te_notif
L_.str.2:                               ## @.str.2
	.asciz	"Failed to add TE to protect session\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to protect session until TE\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_protect_session        ; -- Begin function iwl_mvm_protect_session
	.p2align	2
_iwl_mvm_protect_session:               ; @iwl_mvm_protect_session
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x5
	mov	x20, x4
	mov	x26, x3
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	mov	x25, x0
	add	x22, x0, #8
Lloh0:
	adrp	x8, _TIME_EVENT_NOTIFICATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIME_EVENT_NOTIFICATION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stur	w8, [x29, #-84]
	str	xzr, [sp, #48]
	add	x0, x19, #4
	bl	_lockdep_assert_held
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x27, [x22]
	mov	x0, x26
	bl	_TU_TO_EXP_TIME
	mov	x1, x0
	mov	x0, x27
	bl	_time_after
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _jiffies@GOTPAGE
Lloh4:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sub	x0, x8, x9
	bl	_jiffies_to_msecs
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_IWL_DEBUG_TE
LBB0_3:
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w26, [x25, #16]
	ldr	x8, [x25, #8]
Lloh8:
	adrp	x9, _jiffies@GOTPAGE
Lloh9:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	sub	x0, x8, x9
	bl	_jiffies_to_msecs
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x26
	bl	_IWL_DEBUG_TE
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_mvm_stop_session_protection
LBB0_5:
Lloh13:
	adrp	x8, _FW_CTXT_ACTION_ADD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FW_CTXT_ACTION_ADD@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [sp, #80]
	ldp	w1, w0, [x25]
	bl	_FW_CMD_ID_AND_COLOR
	bl	_cpu_to_le32
	str	x0, [sp, #72]
Lloh16:
	adrp	x8, _TE_BSS_STA_AGGRESSIVE_ASSOC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TE_BSS_STA_AGGRESSIVE_ASSOC@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [sp, #64]
	mov	w0, #0
	bl	_cpu_to_le32
	str	x0, [sp, #56]
Lloh19:
	adrp	x8, _TE_V2_FRAG_NONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TE_V2_FRAG_NONE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	mov	x0, x20
	bl	_cpu_to_le32
	str	x0, [sp, #40]
	mov	w25, #1
	mov	w0, #1
	bl	_cpu_to_le32
	str	x0, [sp, #32]
	mov	x0, x24
	bl	_cpu_to_le32
	str	x0, [sp, #24]
	str	w25, [sp, #16]
Lloh22:
	adrp	x8, _TE_V2_NOTIF_HOST_EVENT_START@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TE_V2_NOTIF_HOST_EVENT_START@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _TE_V2_NOTIF_HOST_EVENT_END@GOTPAGE
Lloh26:
	ldr	x9, [x9, _TE_V2_NOTIF_HOST_EVENT_END@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh28:
	adrp	x9, _TE_V2_START_IMMEDIATELY@GOTPAGE
Lloh29:
	ldr	x9, [x9, _TE_V2_START_IMMEDIATELY@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_cpu_to_le16
	str	w0, [sp, #20]
	cbz	w23, LBB0_8
; %bb.6:
	sub	x0, x29, #84
	bl	_ARRAY_SIZE
	mov	x3, x0
Lloh31:
	adrp	x8, _iwl_mvm_te_notif@GOTPAGE
Lloh32:
	ldr	x8, [x8, _iwl_mvm_te_notif@GOTPAGEOFF]
Lloh33:
	ldr	w4, [x8]
	add	x1, sp, #88
	sub	x2, x29, #84
	mov	x0, x19
	mov	x5, x22
	bl	_iwl_init_notification_wait
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_iwl_mvm_time_event_send_add
	cbz	x0, LBB0_9
; %bb.7:
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	add	x1, sp, #88
	mov	x0, x19
	bl	_iwl_remove_notification
	b	LBB0_11
LBB0_8:
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_iwl_mvm_time_event_send_add
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	bl	_TU_TO_JIFFIES
	mov	x2, x0
	add	x1, sp, #88
	mov	x0, x19
	bl	_iwl_wait_notification
	cbz	x0, LBB0_11
; %bb.10:
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
LBB0_11:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_TIME_EVENT_NOTIFICATION,4,2    ; @TIME_EVENT_NOTIFICATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"We have enough time in the current TE: %u\n"

	.comm	_jiffies,8,3                    ; @jiffies
l_.str.1:                               ; @.str.1
	.asciz	"extend 0x%x: only %u ms left\n"

	.comm	_FW_CTXT_ACTION_ADD,4,2         ; @FW_CTXT_ACTION_ADD
	.comm	_TE_BSS_STA_AGGRESSIVE_ASSOC,4,2 ; @TE_BSS_STA_AGGRESSIVE_ASSOC
	.comm	_TE_V2_FRAG_NONE,4,2            ; @TE_V2_FRAG_NONE
	.comm	_TE_V2_NOTIF_HOST_EVENT_START,4,2 ; @TE_V2_NOTIF_HOST_EVENT_START
	.comm	_TE_V2_NOTIF_HOST_EVENT_END,4,2 ; @TE_V2_NOTIF_HOST_EVENT_END
	.comm	_TE_V2_START_IMMEDIATELY,4,2    ; @TE_V2_START_IMMEDIATELY
	.comm	_iwl_mvm_te_notif,4,2           ; @iwl_mvm_te_notif
l_.str.2:                               ; @.str.2
	.asciz	"Failed to add TE to protect session\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to protect session until TE\n"

.subsections_via_symbols
