	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_vif_use_channel      ## -- Begin function ieee80211_vif_use_channel
	.p2align	4, 0x90
_ieee80211_vif_use_channel:             ## @ieee80211_vif_use_channel
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	8(%rdi), %rdi
	movq	16(%r13), %r14
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_netif_carrier_ok
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_WARN_ON
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	callq	___ieee80211_vif_release_channel
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_ieee80211_find_chanctx
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_ieee80211_new_chanctx
	movq	%rax, %rbx
LBB0_5:
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r15), %eax
	movl	%eax, (%r13)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ieee80211_assign_vif_chanctx
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %r15d
	cmpq	$0, (%rbx)
	jne	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ieee80211_free_chanctx
	jmp	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ieee80211_recalc_smps_chanctx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ieee80211_recalc_radar_chanctx
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_vif_use_channel      ; -- Begin function ieee80211_vif_use_channel
	.p2align	2
_ieee80211_vif_use_channel:             ; @ieee80211_vif_use_channel
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldp	x0, x19, [x0, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_netif_carrier_ok
	cmp	x0, #0
	cset	w0, ne
LBB0_2:
	bl	_WARN_ON
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	bl	___ieee80211_vif_release_channel
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_ieee80211_find_chanctx
	mov	x23, x0
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_ieee80211_new_chanctx
	mov	x23, x0
LBB0_4:
	mov	x0, x23
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x20, x0
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w8, [x21]
	str	w8, [x20]
	mov	x0, x20
	mov	x1, x23
	bl	_ieee80211_assign_vif_chanctx
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.8:
	ldr	x8, [x23]
	cbnz	x8, LBB0_6
; %bb.9:
	mov	x0, x19
	mov	x1, x23
	bl	_ieee80211_free_chanctx
	b	LBB0_6
LBB0_10:
	mov	x0, x19
	mov	x1, x23
	bl	_ieee80211_recalc_smps_chanctx
	mov	x0, x19
	mov	x1, x23
	bl	_ieee80211_recalc_radar_chanctx
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
