	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_stop_roc               ## -- Begin function iwl_mvm_stop_roc
	.p2align	4, 0x90
_iwl_mvm_stop_roc:                      ## @iwl_mvm_stop_roc
	.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	%rdi, %r14
	callq	_iwl_mvm_get_roc_te
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_NL80211_IFTYPE_P2P_DEVICE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_iwl_mvm_remove_time_event
	movq	_IWL_MVM_STATUS_NEED_FLUSH_P2P@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	jmp	LBB0_4
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_IWL_WARN                       ## TAILCALL
LBB0_3:
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_iwl_mvm_remove_aux_roc_te
LBB0_4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iwl_mvm_roc_finished           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No remain on channel event\n"

	.comm	_NL80211_IFTYPE_P2P_DEVICE,8,3  ## @NL80211_IFTYPE_P2P_DEVICE
	.comm	_IWL_MVM_STATUS_NEED_FLUSH_P2P,4,2 ## @IWL_MVM_STATUS_NEED_FLUSH_P2P
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_stop_roc               ; -- Begin function iwl_mvm_stop_roc
	.p2align	2
_iwl_mvm_stop_roc:                      ; @iwl_mvm_stop_roc
	.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, x0
	bl	_iwl_mvm_get_roc_te
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x0, [x0]
	bl	_iwl_mvm_vif_from_mac80211
	mov	x1, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	x0, x19
	mov	x2, x20
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	bl	_iwl_mvm_remove_time_event
Lloh3:
	adrp	x8, _IWL_MVM_STATUS_NEED_FLUSH_P2P@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_MVM_STATUS_NEED_FLUSH_P2P@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_IWL_WARN
LBB0_4:
	bl	_iwl_mvm_remove_aux_roc_te
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iwl_mvm_roc_finished
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No remain on channel event\n"

	.comm	_NL80211_IFTYPE_P2P_DEVICE,8,3  ; @NL80211_IFTYPE_P2P_DEVICE
	.comm	_IWL_MVM_STATUS_NEED_FLUSH_P2P,4,2 ; @IWL_MVM_STATUS_NEED_FLUSH_P2P
.subsections_via_symbols
