	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_ioctl_getcurchan
_ieee80211_ioctl_getcurchan:            ## @ieee80211_ioctl_getcurchan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$4, (%rsi)
	jne	LBB0_6
## %bb.1:
	movq	(%rdi), %rax
	movq	_IEEE80211_S_RUN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_IEEE80211_S_SLEEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.4:
	movq	16(%rdi), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	8(%rdi), %rax
LBB0_5:
	movq	(%rax), %rdi
	movl	4(%rsi), %esi
	movl	$4, %edx
	popq	%rbp
	jmp	_copyout                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_S_RUN,8,3            ## @IEEE80211_S_RUN
	.comm	_IEEE80211_S_SLEEP,8,3          ## @IEEE80211_S_SLEEP
	.no_dead_strip	_ieee80211_ioctl_getcurchan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_ioctl_getcurchan
_ieee80211_ioctl_getcurchan:            ; @ieee80211_ioctl_getcurchan
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	cmp	w8, #4
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IEEE80211_S_RUN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_S_RUN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IEEE80211_S_SLEEP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IEEE80211_S_SLEEP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x0, #8]
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
LBB0_4:
	ldr	x8, [x0, #16]
LBB0_5:
	ldr	x0, [x8]
	ldr	w1, [x1, #4]
	mov	w2, #4
	b	_copyout
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_S_RUN,8,3            ; @IEEE80211_S_RUN
	.comm	_IEEE80211_S_SLEEP,8,3          ; @IEEE80211_S_SLEEP
	.no_dead_strip	_ieee80211_ioctl_getcurchan
.subsections_via_symbols
