	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_roc
_iwl_mvm_roc:                           ## @iwl_mvm_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	callq	_IWL_MAC80211_GET_MVM
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	%r13d, -64(%rbp)                ## 4-byte Spill
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_IWL_DEBUG_MAC80211
	leaq	24(%r14), %rdi
	callq	_flush_work
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r12), %edx
	cmpl	$128, %edx
	je	LBB0_9
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_13
## %bb.2:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movq	_NUM_PHY_CTX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_15
## %bb.3:
	movq	8(%r14), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %r15
	decq	%rax
	je	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r15)
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	(%r13), %r15
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rbx, 8(%r15)
	jne	LBB0_14
## %bb.7:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_iwl_mvm_binding_remove_vif
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_WARN
	testq	%rax, %rax
	jne	LBB0_28
## %bb.8:
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_iwl_mvm_phy_ctxt_unref
	movq	%r15, (%r13)
	jmp	LBB0_24
LBB0_9:
	movq	16(%r14), %rdi
	movq	_IWL_UCODE_TLV_CAPA_HOTSPOT_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	callq	_iwl_mvm_send_aux_roc_cmd
	jmp	LBB0_27
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_ERR
	jmp	LBB0_12
LBB0_15:
	movq	(%r13), %rax
	cmpq	%rbx, 8(%rax)
	je	LBB0_26
## %bb.16:
	movq	_NL80211_CHAN_NO_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_cfg80211_chandef_create
	movq	(%r13), %rsi
	cmpq	$1, (%rsi)
	jne	LBB0_18
## %bb.17:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_iwl_mvm_phy_ctxt_changed
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_28
	jmp	LBB0_26
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_ERR
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_28
LBB0_18:
	movq	%r14, %rdi
	callq	_iwl_mvm_get_free_phy_ctxt
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_iwl_mvm_phy_ctxt_changed
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_ERR
	jmp	LBB0_28
LBB0_19:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_28
LBB0_22:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_iwl_mvm_binding_remove_vif
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_WARN
	testq	%rax, %rax
	jne	LBB0_28
## %bb.23:
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_iwl_mvm_phy_ctxt_unref
	movq	%rbx, (%r13)
LBB0_24:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_iwl_mvm_binding_add_vif
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edi
	callq	_WARN
	testq	%rax, %rax
	jne	LBB0_28
## %bb.25:
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_iwl_mvm_phy_ctxt_ref
LBB0_26:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	callq	_iwl_mvm_start_p2p_roc
LBB0_27:
	movl	%eax, %r12d
LBB0_28:
	movq	%r14, %rdi
	callq	_mutex_unlock
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_MAC80211
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter (%d, %d, %d)\n"

	.comm	_IWL_UCODE_TLV_CAPA_HOTSPOT_SUPPORT,4,2 ## @IWL_UCODE_TLV_CAPA_HOTSPOT_SUPPORT
L_.str.1:                               ## @.str.1
	.asciz	"hotspot not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"vif isn't P2P_DEVICE: %d\n"

	.comm	_NUM_PHY_CTX,4,2                ## @NUM_PHY_CTX
L_.str.3:                               ## @.str.3
	.asciz	"Failed unbinding P2P_DEVICE\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed binding P2P_DEVICE\n"

	.comm	_NL80211_CHAN_NO_HT,4,2         ## @NL80211_CHAN_NO_HT
	.comm	_ENOSPC,4,2                     ## @ENOSPC
L_.str.5:                               ## @.str.5
	.asciz	"Failed to change PHY context\n"

L_.str.6:                               ## @.str.6
	.asciz	"leave\n"

	.no_dead_strip	_iwl_mvm_roc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_roc
_iwl_mvm_roc:                           ; @iwl_mvm_roc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x4
	mov	x20, x3
	mov	x24, x2
	mov	x21, x1
	bl	_IWL_MAC80211_GET_MVM
	mov	x19, x0
	mov	x0, x21
	bl	_iwl_mvm_vif_from_mac80211
	mov	x23, x0
	ldr	w8, [x24]
	stp	x20, x22, [sp, #8]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_MAC80211
	add	x0, x19, #24
	bl	_flush_work
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.2:
Lloh2:
	adrp	x8, _NUM_PHY_CTX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NUM_PHY_CTX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	ldr	x25, [x19, #8]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #16
	subs	x8, x8, #1
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25]
	cbz	x9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x23]
	cmp	x25, x9
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x25, #8]
	cmp	x9, x24
	b.ne	LBB0_4
	b	LBB0_20
LBB0_8:
	ldr	x0, [x19, #16]
Lloh5:
	adrp	x8, _IWL_UCODE_TLV_CAPA_HOTSPOT_SUPPORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_HOTSPOT_SUPPORT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbz	w0, LBB0_14
; %bb.9:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	mov	x3, x20
	bl	_iwl_mvm_send_aux_roc_cmd
	b	LBB0_24
LBB0_10:
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_11:
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	cmp	x8, x24
	b.eq	LBB0_23
; %bb.12:
Lloh10:
	adrp	x8, _NL80211_CHAN_NO_HT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NL80211_CHAN_NO_HT@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x0, sp, #24
	mov	x1, x24
	bl	_cfg80211_chandef_create
	ldr	x1, [x23]
	ldr	x8, [x1]
	cmp	x8, #1
	b.ne	LBB0_17
; %bb.13:
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1
	bl	_iwl_mvm_phy_ctxt_changed
	mov	x24, x0
	cbnz	w0, LBB0_25
	b	LBB0_23
LBB0_14:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_IWL_ERR
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_25
LBB0_17:
	mov	x0, x19
	bl	_iwl_mvm_get_free_phy_ctxt
	cbz	x0, LBB0_26
; %bb.18:
	mov	x25, x0
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x25
	mov	w3, #1
	mov	w4, #1
	bl	_iwl_mvm_phy_ctxt_changed
	cbz	w0, LBB0_20
; %bb.19:
	mov	x24, x0
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	b	LBB0_25
LBB0_20:
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_mvm_binding_remove_vif
	mov	x24, x0
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_WARN
	cbnz	x0, LBB0_25
; %bb.21:
	ldr	x1, [x23]
	mov	x0, x19
	bl	_iwl_mvm_phy_ctxt_unref
	str	x25, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_mvm_binding_add_vif
	mov	x24, x0
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_WARN
	cbnz	x0, LBB0_25
; %bb.22:
	ldr	x1, [x23]
	mov	x0, x19
	bl	_iwl_mvm_phy_ctxt_ref
LBB0_23:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_iwl_mvm_start_p2p_roc
LBB0_24:
	mov	x24, x0
LBB0_25:
	mov	x0, x19
	bl	_mutex_unlock
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_MAC80211
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_26:
Lloh25:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter (%d, %d, %d)\n"

	.comm	_IWL_UCODE_TLV_CAPA_HOTSPOT_SUPPORT,4,2 ; @IWL_UCODE_TLV_CAPA_HOTSPOT_SUPPORT
l_.str.1:                               ; @.str.1
	.asciz	"hotspot not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"vif isn't P2P_DEVICE: %d\n"

	.comm	_NUM_PHY_CTX,4,2                ; @NUM_PHY_CTX
l_.str.3:                               ; @.str.3
	.asciz	"Failed unbinding P2P_DEVICE\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed binding P2P_DEVICE\n"

	.comm	_NL80211_CHAN_NO_HT,4,2         ; @NL80211_CHAN_NO_HT
	.comm	_ENOSPC,4,2                     ; @ENOSPC
l_.str.5:                               ; @.str.5
	.asciz	"Failed to change PHY context\n"

l_.str.6:                               ; @.str.6
	.asciz	"leave\n"

	.no_dead_strip	_iwl_mvm_roc
.subsections_via_symbols
