	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function has_channel
_has_channel:                           ## @has_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	(%rsi), %rax
	movq	_HOSTAPD_MODE_IEEE80211A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leal	5000(%rbx,%rbx,4), %eax
	leal	2407(%rbx,%rbx,4), %esi
	cmovel	%eax, %esi
	callq	_wpas_p2p_disallowed_freq
	movq	_NOT_ALLOWED@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_1
LBB0_11:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	8(%r15), %esi
	testl	%esi, %esi
	jle	LBB0_11
## %bb.2:
	movq	16(%r15), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rax,%rdx,8)
	je	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpq	%rdx, %rsi
	jne	LBB0_3
	jmp	LBB0_11
LBB0_4:
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movl	4(%rax,%rdx,8), %esi
	movl	%esi, (%r14)
LBB0_6:
	movl	4(%rax,%rdx,8), %eax
	movq	_HOSTAPD_CHAN_DISABLED@GOTPCREL(%rip), %rdx
	movq	_HOSTAPD_CHAN_RADAR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%eax, %esi
	jne	LBB0_11
## %bb.7:
	movq	_HOSTAPD_CHAN_NO_IR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_8
## %bb.9:
	movq	_ALLOWED@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_8:
	movq	_NO_IR@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_MODE_IEEE80211A,8,3    ## @HOSTAPD_MODE_IEEE80211A
	.comm	_NOT_ALLOWED,4,2                ## @NOT_ALLOWED
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ## @HOSTAPD_CHAN_DISABLED
	.comm	_HOSTAPD_CHAN_RADAR,4,2         ## @HOSTAPD_CHAN_RADAR
	.comm	_HOSTAPD_CHAN_NO_IR,4,2         ## @HOSTAPD_CHAN_NO_IR
	.comm	_NO_IR,4,2                      ## @NO_IR
	.comm	_ALLOWED,4,2                    ## @ALLOWED
	.no_dead_strip	_has_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function has_channel
_has_channel:                           ; @has_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, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _HOSTAPD_MODE_IEEE80211A@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HOSTAPD_MODE_IEEE80211A@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #2407
	mov	w9, #5000
	csel	w8, w9, w8, eq
	add	w9, w2, w2, lsl #2
	add	w1, w8, w9
	bl	_wpas_p2p_disallowed_freq
	cbz	x0, LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, _NOT_ALLOWED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NOT_ALLOWED@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	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_3:
	ldr	w10, [x21, #8]
	cmp	w10, #1
	b.lt	LBB0_1
; %bb.4:
	ldr	x8, [x21, #16]
	add	x9, x8, #4
Lloh5:
	adrp	x8, _NOT_ALLOWED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NOT_ALLOWED@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x9, #-4]
	cmp	w11, w20
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #8
	subs	x10, x10, #1
	b.ne	LBB0_5
	b	LBB0_2
LBB0_7:
	cbz	x19, LBB0_9
; %bb.8:
	ldr	w8, [x9]
	str	w8, [x19]
LBB0_9:
	ldr	w8, [x9]
Lloh7:
	adrp	x9, _HOSTAPD_CHAN_DISABLED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HOSTAPD_CHAN_DISABLED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _HOSTAPD_CHAN_RADAR@GOTPAGE
Lloh11:
	ldr	x10, [x10, _HOSTAPD_CHAN_RADAR@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_1
; %bb.10:
Lloh13:
	adrp	x9, _HOSTAPD_CHAN_NO_IR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _HOSTAPD_CHAN_NO_IR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _NO_IR@GOTPAGE
Lloh17:
	ldr	x10, [x10, _NO_IR@GOTPAGEOFF]
Lloh18:
	adrp	x11, _ALLOWED@GOTPAGE
Lloh19:
	ldr	x11, [x11, _ALLOWED@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_MODE_IEEE80211A,8,3    ; @HOSTAPD_MODE_IEEE80211A
	.comm	_NOT_ALLOWED,4,2                ; @NOT_ALLOWED
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ; @HOSTAPD_CHAN_DISABLED
	.comm	_HOSTAPD_CHAN_RADAR,4,2         ; @HOSTAPD_CHAN_RADAR
	.comm	_HOSTAPD_CHAN_NO_IR,4,2         ; @HOSTAPD_CHAN_NO_IR
	.comm	_NO_IR,4,2                      ; @NO_IR
	.comm	_ALLOWED,4,2                    ; @ALLOWED
	.no_dead_strip	_has_channel
.subsections_via_symbols
