	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_phy_ctxt_unref         ## -- Begin function iwl_mvm_phy_ctxt_unref
	.p2align	4, 0x90
_iwl_mvm_phy_ctxt_unref:                ## @iwl_mvm_phy_ctxt_unref
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	addq	$8, %rdi
	callq	_lockdep_assert_held
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	decq	(%r12)
	jne	LBB0_10
## %bb.2:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NUM_NL80211_BANDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jae	LBB0_3
## %bb.4:
	movq	(%r14), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	incq	%rax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rdx,%rax,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%rax), %rsi
	cmpq	%rcx, %rax
	movq	%rsi, %rax
	jb	LBB0_5
LBB0_7:
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	jmp	LBB0_8
LBB0_3:
	movl	$1, %edi
	xorl	%ebx, %ebx
LBB0_8:
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	(%rbx), %rsi
	movq	_NL80211_CHAN_NO_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	callq	_cfg80211_chandef_create
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_iwl_mvm_phy_ctxt_changed
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_NUM_NL80211_BANDS,4,2          ## @NUM_NL80211_BANDS
	.comm	_NL80211_CHAN_NO_HT,4,2         ## @NL80211_CHAN_NO_HT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_phy_ctxt_unref         ; -- Begin function iwl_mvm_phy_ctxt_unref
	.p2align	2
_iwl_mvm_phy_ctxt_unref:                ; @iwl_mvm_phy_ctxt_unref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	add	x0, x0, #8
	bl	_lockdep_assert_held
	cmp	x19, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_8
; %bb.1:
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.ne	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NUM_NL80211_BANDS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NUM_NL80211_BANDS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.hs	LBB0_6
; %bb.3:
	ldr	x10, [x20]
	ldr	x10, [x10]
	ldr	x10, [x10]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x10, x8, lsl #3]
	add	x8, x8, #1
	cmp	x21, #0
	ccmp	x8, x9, #2, eq
	b.lo	LBB0_4
; %bb.5:
	cmp	x21, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_8
	b	LBB0_7
LBB0_6:
	mov	x21, #0
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_8
LBB0_7:
	ldr	x1, [x21]
Lloh6:
	adrp	x8, _NL80211_CHAN_NO_HT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_CHAN_NO_HT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x0, sp, #8
	bl	_cfg80211_chandef_create
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	mov	w4, #1
	bl	_iwl_mvm_phy_ctxt_changed
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_NUM_NL80211_BANDS,4,2          ; @NUM_NL80211_BANDS
	.comm	_NL80211_CHAN_NO_HT,4,2         ; @NL80211_CHAN_NO_HT
.subsections_via_symbols
