	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_new_chanctx
_ieee80211_new_chanctx:                 ## @ieee80211_new_chanctx
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	addq	$32, %rdi
	callq	_lockdep_assert_held
	movq	24(%rbx), %rdi
	addq	$24, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r14
	movl	(%r15), %eax
	movl	%eax, 20(%r14)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 8(%r14)
	movl	%r12d, (%r14)
	movq	%rbx, %rdi
	callq	_ieee80211_is_radar_required
	movl	%eax, 16(%r14)
	cmpl	$0, 12(%rbx)
	jne	LBB0_3
## %bb.2:
	movl	%eax, 16(%rbx)
LBB0_3:
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_ieee80211_idle_off
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ieee80211_hw_config
LBB0_5:
	cmpl	$0, 12(%rbx)
	je	LBB0_6
## %bb.8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_drv_add_chanctx
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_kfree
	movl	%r15d, %edi
	callq	_ERR_PTR
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ieee80211_recalc_idle
	jmp	LBB0_10
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movl	(%r15), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ieee80211_hw_config
LBB0_7:
	movq	%r14, %rdi
	addq	$4, %rdi
	leaq	4(%rbx), %rsi
	callq	_list_add_rcu
LBB0_10:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ieee80211_new_chanctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_new_chanctx
_ieee80211_new_chanctx:                 ; @ieee80211_new_chanctx
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, x0, #32
	bl	_lockdep_assert_held
	ldr	x8, [x19, #24]
	add	x0, x8, #24
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	w8, [x21]
	str	w8, [x0, #20]
	movi.2s	v0, #1
	str	d0, [x0, #8]
	str	w22, [x0]
	mov	x0, x19
	bl	_ieee80211_is_radar_required
	str	w0, [x20, #16]
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_3
; %bb.2:
	str	w0, [x19, #16]
LBB0_3:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_ieee80211_idle_off
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x0
	mov	x0, x19
	bl	_ieee80211_hw_config
LBB0_5:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_9
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_drv_add_chanctx
	cbz	w0, LBB0_10
; %bb.7:
	mov	x21, x0
	mov	x0, x20
	bl	_kfree
	mov	x0, x21
	bl	_ERR_PTR
	mov	x20, x0
	mov	x0, x19
	bl	_ieee80211_recalc_idle
	b	LBB0_11
LBB0_8:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_9:
	ldr	w8, [x21]
	str	w8, [x19, #8]
	mov	x0, x19
	mov	x1, #0
	bl	_ieee80211_hw_config
LBB0_10:
	add	x0, x20, #4
	add	x1, x19, #4
	bl	_list_add_rcu
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ieee80211_new_chanctx
.subsections_via_symbols
