	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_ioctl_setcurchan
_ieee80211_ioctl_setcurchan:            ## @ieee80211_ioctl_setcurchan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$16, (%rsi)
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movl	4(%rsi), %edi
	leaq	-32(%rbp), %rsi
	movl	$16, %edx
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	-32(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	_IEEE80211_CHAN_ANY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_5
## %bb.6:
	movl	-24(%rbp), %edx
	movq	%r14, %rdi
	callq	_ieee80211_find_channel
	movq	%rax, %rsi
	testq	%rax, %rax
	jne	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_5:
	movq	_IEEE80211_CHAN_ANYC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_7:
	movq	%rbx, %rdi
	callq	_setcurchan
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_CHAN_ANY,8,3         ## @IEEE80211_CHAN_ANY
	.comm	_IEEE80211_CHAN_ANYC,8,3        ## @IEEE80211_CHAN_ANYC
	.no_dead_strip	_ieee80211_ioctl_setcurchan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_ioctl_setcurchan
_ieee80211_ioctl_setcurchan:            ; @ieee80211_ioctl_setcurchan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x1]
	cmp	w8, #16
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0]
	ldr	w0, [x1, #4]
	mov	x1, sp
	mov	w2, #16
	bl	_copyin
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	x1, [sp]
	cbz	x1, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _IEEE80211_CHAN_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_CHAN_ANY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_6
; %bb.4:
	ldr	w2, [sp, #8]
	mov	x0, x20
	bl	_ieee80211_find_channel
	mov	x1, x0
	cbnz	x0, LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _IEEE80211_CHAN_ANYC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_CHAN_ANYC@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
LBB0_7:
	mov	x0, x19
	bl	_setcurchan
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_CHAN_ANY,8,3         ; @IEEE80211_CHAN_ANY
	.comm	_IEEE80211_CHAN_ANYC,8,3        ; @IEEE80211_CHAN_ANYC
	.no_dead_strip	_ieee80211_ioctl_setcurchan
.subsections_via_symbols
