	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_cfg_get_channel
_ieee80211_cfg_get_channel:             ## @ieee80211_cfg_get_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_IEEE80211_WDEV_TO_SUB_IF
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_wiphy_priv
	movq	%rax, %r15
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	8(%r12), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %eax
LBB0_8:
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_9:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%r15), %rax
	testq	%rax, %rax
	jle	LBB0_9
## %bb.3:
	cmpq	8(%r15), %rax
	jne	LBB0_9
## %bb.4:
	movq	(%r12), %rax
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:
	cmpq	$0, 24(%r15)
	je	LBB0_7
## %bb.6:
	movl	20(%r15), %eax
	jmp	LBB0_8
LBB0_7:
	movl	16(%r15), %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_NL80211_IFTYPE_MONITOR,8,3     ## @NL80211_IFTYPE_MONITOR
	.no_dead_strip	_ieee80211_cfg_get_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_cfg_get_channel
_ieee80211_cfg_get_channel:             ; @ieee80211_cfg_get_channel
	.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	x19, x2
	mov	x20, x0
	mov	x0, x1
	bl	_IEEE80211_WDEV_TO_SUB_IF
	mov	x22, x0
	mov	x0, x20
	bl	_wiphy_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _ENODATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_rcu_read_lock
	ldr	w0, [x22, #8]
	bl	_rcu_dereference
	cbz	x0, LBB0_4
; %bb.1:
	mov	w20, #0
	ldr	w8, [x0]
LBB0_2:
	str	w8, [x19]
LBB0_3:
	bl	_rcu_read_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
LBB0_4:
	neg	w20, w20
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.5:
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.6:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.7:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_9
; %bb.8:
	mov	w20, #0
	ldr	w8, [x21, #20]
	b	LBB0_2
LBB0_9:
	mov	w20, #0
	ldr	w8, [x21, #16]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_NL80211_IFTYPE_MONITOR,8,3     ; @NL80211_IFTYPE_MONITOR
	.no_dead_strip	_ieee80211_cfg_get_channel
.subsections_via_symbols
