	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_remove_time_event      ## -- Begin function iwl_mvm_remove_time_event
	.p2align	4, 0x90
_iwl_mvm_remove_time_event:             ## @iwl_mvm_remove_time_event
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-28(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdx
	callq	___iwl_mvm_remove_time_event
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	-28(%rbp), %edi
	callq	_cpu_to_le32
	movq	%rax, %r15
	movq	%rax, -56(%rbp)
	movq	_FW_CTXT_ACTION_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, -40(%rbp)
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_FW_CMD_ID_AND_COLOR
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -48(%rbp)
	movq	%r15, %rdi
	callq	_le32_to_cpu
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_IWL_DEBUG_TE
	movq	_TIME_EVENT_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %r8
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$24, %ecx
	callq	_iwl_mvm_send_cmd_pdu
	movl	%eax, %edi
	callq	_WARN_ON
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_CTXT_ACTION_REMOVE,4,2      ## @FW_CTXT_ACTION_REMOVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Removing TE 0x%x\n"

	.comm	_TIME_EVENT_CMD,4,2             ## @TIME_EVENT_CMD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_remove_time_event      ; -- Begin function iwl_mvm_remove_time_event
	.p2align	2
_iwl_mvm_remove_time_event:             ; @iwl_mvm_remove_time_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x8, x2
	mov	x20, x1
	mov	x19, x0
	add	x2, sp, #4
	mov	x1, x8
	bl	___iwl_mvm_remove_time_event
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [sp, #4]
	bl	_cpu_to_le32
	mov	x21, x0
	str	x0, [sp, #8]
Lloh0:
	adrp	x8, _FW_CTXT_ACTION_REMOVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_CTXT_ACTION_REMOVE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [sp, #24]
	ldp	w1, w0, [x20]
	bl	_FW_CMD_ID_AND_COLOR
	bl	_cpu_to_le32
	str	x0, [sp, #16]
	mov	x0, x21
	bl	_le32_to_cpu
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TE
Lloh5:
	adrp	x8, _TIME_EVENT_CMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TIME_EVENT_CMD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	w2, #0
	mov	w3, #24
	bl	_iwl_mvm_send_cmd_pdu
	bl	_WARN_ON
LBB0_2:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_CTXT_ACTION_REMOVE,4,2      ; @FW_CTXT_ACTION_REMOVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Removing TE 0x%x\n"

	.comm	_TIME_EVENT_CMD,4,2             ; @TIME_EVENT_CMD
.subsections_via_symbols
