	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_time_event_send_add
_iwl_mvm_time_event_send_add:           ## @iwl_mvm_time_event_send_add
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	addq	$12, %rdi
	callq	_lockdep_assert_held
	movl	4(%r15), %edi
	callq	_le32_to_cpu
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_IWL_DEBUG_TE
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movq	(%r14), %rax
	movq	_TE_MAX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, 24(%r14)
	movl	4(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, 16(%r14)
	movl	(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, (%r14)
	leaq	8(%r14), %rdi
	leaq	8(%r13), %rsi
	callq	_list_add_tail
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	leaq	4(%r13), %r12
	leaq	_iwl_mvm_time_event_send_add.time_event_response(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	_iwl_mvm_time_event_response@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	movq	%r14, %r9
	callq	_iwl_init_notification_wait
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movl	$128, %esi
	xorl	%edx, %edx
	movl	$8, %ecx
	movq	%r15, %r8
	callq	_iwl_mvm_send_cmd_pdu
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_IWL_ERR
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_iwl_remove_notification
	jmp	LBB0_5
LBB0_4:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_iwl_wait_notification
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	testl	%r15d, %r15d
	je	LBB0_6
LBB0_5:
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_te_clear_data
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movl	%r15d, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @iwl_mvm_time_event_send_add.time_event_response
_iwl_mvm_time_event_send_add.time_event_response:
	.long	128                             ## 0x80

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Add new TE, duration %d TU\n"

	.comm	_TE_MAX,8,3                     ## @TE_MAX
	.comm	_EIO,4,2                        ## @EIO
	.comm	_iwl_mvm_time_event_response,4,2 ## @iwl_mvm_time_event_response
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't send TIME_EVENT_CMD: %d\n"

	.no_dead_strip	_iwl_mvm_time_event_send_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_time_event_send_add
_iwl_mvm_time_event_send_add:           ; @iwl_mvm_time_event_send_add
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	add	x0, x0, #12
	bl	_lockdep_assert_held
	ldr	w0, [x21, #4]
	bl	_le32_to_cpu
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TE
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _TE_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TE_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_spin_unlock_bh
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_2:
	str	x22, [x20, #24]
	ldr	w0, [x21, #4]
	bl	_le32_to_cpu
	str	x0, [x20, #16]
	ldr	w0, [x21]
	bl	_le32_to_cpu
	str	x0, [x20]
	add	x0, x20, #8
	add	x1, x19, #8
	bl	_list_add_tail
	mov	x0, x19
	bl	_spin_unlock_bh
	add	x22, x19, #4
Lloh8:
	adrp	x23, _iwl_mvm_time_event_send_add.time_event_response@PAGE
Lloh9:
	add	x23, x23, _iwl_mvm_time_event_send_add.time_event_response@PAGEOFF
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x3, x0
Lloh10:
	adrp	x8, _iwl_mvm_time_event_response@GOTPAGE
Lloh11:
	ldr	x8, [x8, _iwl_mvm_time_event_response@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, x23
	mov	x5, x20
	bl	_iwl_init_notification_wait
	mov	x0, x19
	mov	w1, #128
	mov	w2, #0
	mov	w3, #8
	mov	x4, x21
	bl	_iwl_mvm_send_cmd_pdu
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_IWL_ERR
	add	x1, sp, #8
	mov	x0, x22
	bl	_iwl_remove_notification
	b	LBB0_5
LBB0_4:
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #1
	bl	_iwl_wait_notification
	mov	x21, x0
	bl	_WARN_ON_ONCE
	cbz	w21, LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_spin_lock_bh
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_te_clear_data
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_6:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @iwl_mvm_time_event_send_add.time_event_response
_iwl_mvm_time_event_send_add.time_event_response:
	.long	128                             ; 0x80

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Add new TE, duration %d TU\n"

	.comm	_TE_MAX,8,3                     ; @TE_MAX
	.comm	_EIO,4,2                        ; @EIO
	.comm	_iwl_mvm_time_event_response,4,2 ; @iwl_mvm_time_event_response
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't send TIME_EVENT_CMD: %d\n"

	.no_dead_strip	_iwl_mvm_time_event_send_add
.subsections_via_symbols
