	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkchan
_checkchan:                             ## @checkchan
	.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	%esi, %r15d
	movq	%rdi, %r14
	movq	_REQ_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%edx, %ebx
	movl	(%rdi), %esi
	movl	4(%rdi), %edi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_chanlookup
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	_IEEE80211_CHAN_GSM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_IEEE80211_CHAN_HALF@GOTPCREL(%rip), %r13
	movq	_IEEE80211_CHAN_QUARTER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r13), %ecx
	xorl	%r12d, %r12d
	testl	%ebx, %ecx
	je	LBB0_7
## %bb.3:
	movl	(%r14), %esi
	movl	4(%r14), %edi
	notl	%ecx
	andl	%ebx, %ecx
	movl	%r15d, %edx
	callq	_chanlookup
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	(%r13), %eax
	movl	(%r14), %esi
	movl	4(%r14), %edi
	testl	%ebx, %eax
	jne	LBB0_6
## %bb.5:
	movq	_IEEE80211_CHAN_QUARTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movq	_IEEE80211_CHAN_2GHZ@GOTPCREL(%rip), %rcx
	movq	_IEEE80211_CHAN_5GHZ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	andl	%ebx, %edx
	orl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chanfind                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_FLAGS,4,2                  ## @REQ_FLAGS
	.comm	_IEEE80211_CHAN_GSM,4,2         ## @IEEE80211_CHAN_GSM
	.comm	_IEEE80211_CHAN_HALF,4,2        ## @IEEE80211_CHAN_HALF
	.comm	_IEEE80211_CHAN_QUARTER,4,2     ## @IEEE80211_CHAN_QUARTER
	.comm	_IEEE80211_CHAN_2GHZ,4,2        ## @IEEE80211_CHAN_2GHZ
	.comm	_IEEE80211_CHAN_5GHZ,4,2        ## @IEEE80211_CHAN_5GHZ
	.no_dead_strip	_checkchan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkchan
_checkchan:                             ; @checkchan
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _REQ_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQ_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w19, w2, w8
	ldr	w0, [x0, #4]
	ldr	w1, [x20]
	mov	x2, x21
	mov	x3, x19
	bl	_chanlookup
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IEEE80211_CHAN_GSM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_CHAN_GSM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
LBB0_2:
	mov	w0, #1
LBB0_3:
	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_4:
Lloh6:
	adrp	x23, _IEEE80211_CHAN_HALF@GOTPAGE
Lloh7:
	ldr	x23, [x23, _IEEE80211_CHAN_HALF@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh8:
	adrp	x22, _IEEE80211_CHAN_QUARTER@GOTPAGE
Lloh9:
	ldr	x22, [x22, _IEEE80211_CHAN_QUARTER@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w19
	b.eq	LBB0_7
; %bb.5:
	ldp	w1, w0, [x20]
	bic	w3, w19, w8
	mov	x2, x21
	bl	_chanlookup
	cbz	x0, LBB0_3
; %bb.6:
	ldr	w8, [x23]
	ldp	w1, w0, [x20]
	ldr	w9, [x22]
	tst	w8, w19
	csel	w8, w9, w8, eq
Lloh10:
	adrp	x9, _IEEE80211_CHAN_2GHZ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IEEE80211_CHAN_2GHZ@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _IEEE80211_CHAN_5GHZ@GOTPAGE
Lloh14:
	ldr	x10, [x10, _IEEE80211_CHAN_5GHZ@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w9, w9, w19
	orr	w2, w9, w8
	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
	b	_chanfind
LBB0_7:
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_FLAGS,4,2                  ; @REQ_FLAGS
	.comm	_IEEE80211_CHAN_GSM,4,2         ; @IEEE80211_CHAN_GSM
	.comm	_IEEE80211_CHAN_HALF,4,2        ; @IEEE80211_CHAN_HALF
	.comm	_IEEE80211_CHAN_QUARTER,4,2     ; @IEEE80211_CHAN_QUARTER
	.comm	_IEEE80211_CHAN_2GHZ,4,2        ; @IEEE80211_CHAN_2GHZ
	.comm	_IEEE80211_CHAN_5GHZ,4,2        ; @IEEE80211_CHAN_5GHZ
	.no_dead_strip	_checkchan
.subsections_via_symbols
