	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_start_p2p_roc          ## -- Begin function iwl_mvm_start_p2p_roc
	.p2align	4, 0x90
_iwl_mvm_start_p2p_roc:                 ## @iwl_mvm_start_p2p_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r13
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	movups	%xmm0, -88(%rbp)
	movq	%r15, %rdi
	callq	_lockdep_assert_held
	cmpq	$0, 8(%r13)
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_WARN
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_3:
	movq	_FW_CTXT_ACTION_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, -48(%rbp)
	movl	(%r13), %esi
	movl	4(%r13), %edi
	callq	_FW_CMD_ID_AND_COLOR
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -56(%rbp)
	cmpl	$128, %ebx
	je	LBB0_4
## %bb.5:
	cmpl	$129, %ebx
	jne	LBB0_9
## %bb.6:
	movq	_IWL_MVM_ROC_TE_TYPE_MGMT_TX@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_IWL_MVM_ROC_TE_TYPE_NORMAL@GOTPCREL(%rip), %rax
LBB0_7:
	addq	$8, %r13
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, -64(%rbp)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, -72(%rbp)
	movl	$1, %edi
	callq	_cpu_to_le32
	movq	%rax, -80(%rbp)
	movl	%r12d, %edi
	callq	_MSEC_TO_TU
	cltq
	imulq	$1374389535, %rax, %rdi         ## imm = 0x51EB851F
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$36, %rdi
	addl	%eax, %edi
	movq	_TE_V2_FRAG_ENDLESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_min
	movl	%eax, -88(%rbp)
	movl	%r12d, %edi
	shrl	$31, %edi
	addl	%r12d, %edi
	sarl	%edi
	callq	_MSEC_TO_TU
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -96(%rbp)
	movl	%r12d, %edi
	callq	_MSEC_TO_TU
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -104(%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, -112(%rbp)
	movq	_TE_V2_START_IMMEDIATELY@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, -108(%rbp)
	leaq	-112(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_iwl_mvm_time_event_send_add
LBB0_8:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_WARN_ONCE
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P_DEVICE remain on channel already running\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_FW_CTXT_ACTION_ADD,4,2         ## @FW_CTXT_ACTION_ADD
	.comm	_IWL_MVM_ROC_TE_TYPE_NORMAL,4,2 ## @IWL_MVM_ROC_TE_TYPE_NORMAL
	.comm	_IWL_MVM_ROC_TE_TYPE_MGMT_TX,4,2 ## @IWL_MVM_ROC_TE_TYPE_MGMT_TX
L_.str.1:                               ## @.str.1
	.asciz	"Got an invalid ROC type\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TE_V2_FRAG_ENDLESS,4,2         ## @TE_V2_FRAG_ENDLESS
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_start_p2p_roc          ; -- Begin function iwl_mvm_start_p2p_roc
	.p2align	2
_iwl_mvm_start_p2p_roc:                 ; @iwl_mvm_start_p2p_roc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x23, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	mov	x24, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	mov	x0, x19
	bl	_lockdep_assert_held
	mov	x21, x24
	ldr	x8, [x21, #8]!
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_WARN
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
Lloh4:
	adrp	x8, _FW_CTXT_ACTION_ADD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FW_CTXT_ACTION_ADD@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [sp, #72]
	ldp	w1, w0, [x24]
	bl	_FW_CMD_ID_AND_COLOR
	bl	_cpu_to_le32
	str	x0, [sp, #64]
	cmp	w23, #128
	b.eq	LBB0_6
; %bb.4:
	cmp	w23, #129
	b.ne	LBB0_9
; %bb.5:
Lloh7:
	adrp	x8, _IWL_MVM_ROC_TE_TYPE_MGMT_TX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IWL_MVM_ROC_TE_TYPE_MGMT_TX@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _IWL_MVM_ROC_TE_TYPE_NORMAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IWL_MVM_ROC_TE_TYPE_NORMAL@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [sp, #56]
	mov	w0, #0
	bl	_cpu_to_le32
	str	x0, [sp, #48]
	mov	w23, #1
	mov	w0, #1
	bl	_cpu_to_le32
	str	x0, [sp, #40]
	mov	x0, x22
	bl	_MSEC_TO_TU
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w0, w8, w9, asr #4
Lloh11:
	adrp	x8, _TE_V2_FRAG_ENDLESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TE_V2_FRAG_ENDLESS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_min
	str	w0, [sp, #32]
	cmp	w22, #0
	cinc	w8, w22, lt
	asr	w0, w8, #1
	bl	_MSEC_TO_TU
	bl	_cpu_to_le32
	str	x0, [sp, #24]
	mov	x0, x22
	bl	_MSEC_TO_TU
	bl	_cpu_to_le32
	str	x0, [sp, #16]
	str	w23, [sp, #8]
Lloh14:
	adrp	x8, _TE_V2_NOTIF_HOST_EVENT_START@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TE_V2_NOTIF_HOST_EVENT_START@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _TE_V2_NOTIF_HOST_EVENT_END@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TE_V2_NOTIF_HOST_EVENT_END@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _TE_V2_START_IMMEDIATELY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TE_V2_START_IMMEDIATELY@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_cpu_to_le16
	str	w0, [sp, #12]
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_iwl_mvm_time_event_send_add
LBB0_8:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_9:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P_DEVICE remain on channel already running\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_FW_CTXT_ACTION_ADD,4,2         ; @FW_CTXT_ACTION_ADD
	.comm	_IWL_MVM_ROC_TE_TYPE_NORMAL,4,2 ; @IWL_MVM_ROC_TE_TYPE_NORMAL
	.comm	_IWL_MVM_ROC_TE_TYPE_MGMT_TX,4,2 ; @IWL_MVM_ROC_TE_TYPE_MGMT_TX
l_.str.1:                               ; @.str.1
	.asciz	"Got an invalid ROC type\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TE_V2_FRAG_ENDLESS,4,2         ; @TE_V2_FRAG_ENDLESS
	.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
.subsections_via_symbols
