	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allow_channel
_allow_channel:                         ## @allow_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r9d
	testl	%r9d, %r9d
	jle	LBB0_1
## %bb.8:
	movq	8(%rdi), %rcx
	xorl	%eax, %eax
	movq	_NOT_ALLOWED@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rcx)
	je	LBB0_2
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rax
	addq	$16, %rcx
	cmpq	%rax, %r9
	jne	LBB0_9
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	movq	_NOT_ALLOWED@GOTPCREL(%rip), %r8
	cmpl	%r9d, %eax
	je	LBB0_12
## %bb.3:
	movq	8(%rdi), %rcx
	movl	%eax, %esi
	shlq	$4, %rsi
	movl	8(%rcx,%rsi), %eax
	movq	_HOSTAPD_CHAN_DISABLED@GOTPCREL(%rip), %rdi
	testl	%eax, (%rdi)
	jne	LBB0_12
## %bb.4:
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	addq	%rsi, %rcx
	addq	$8, %rcx
	movl	%eax, (%rdx)
	movl	(%rcx), %eax
LBB0_6:
	movq	_HOSTAPD_CHAN_NO_IR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.11:
	movq	_ALLOWED@GOTPCREL(%rip), %r8
	jmp	LBB0_12
LBB0_7:
	movq	_NO_IR@GOTPCREL(%rip), %r8
LBB0_12:
	movl	(%r8), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ## @HOSTAPD_CHAN_DISABLED
	.comm	_NOT_ALLOWED,4,2                ## @NOT_ALLOWED
	.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	_allow_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allow_channel
_allow_channel:                         ; @allow_channel
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x10, #0
	ldr	x11, [x0, #8]
Lloh0:
	adrp	x9, _NOT_ALLOWED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NOT_ALLOWED@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	cmp	x12, x1
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #1
	add	x11, x11, #16
	cmp	x8, x10
	b.ne	LBB0_2
; %bb.4:
	ldr	w0, [x9]
	ret
LBB0_5:
	mov	w10, #0
LBB0_6:
	cmp	w10, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x0, #8]
	add	x9, x8, w10, uxtw #4
	ldr	w8, [x9, #8]!
Lloh2:
	adrp	x10, _HOSTAPD_CHAN_DISABLED@GOTPAGE
Lloh3:
	ldr	x10, [x10, _HOSTAPD_CHAN_DISABLED@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_9
LBB0_8:
Lloh5:
	adrp	x9, _NOT_ALLOWED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NOT_ALLOWED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	ret
LBB0_9:
	cbz	x2, LBB0_11
; %bb.10:
	str	w8, [x2]
	ldr	w8, [x9]
LBB0_11:
Lloh8:
	adrp	x9, _HOSTAPD_CHAN_NO_IR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HOSTAPD_CHAN_NO_IR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _NO_IR@GOTPAGE
Lloh12:
	ldr	x10, [x10, _NO_IR@GOTPAGEOFF]
Lloh13:
	adrp	x11, _ALLOWED@GOTPAGE
Lloh14:
	ldr	x11, [x11, _ALLOWED@GOTPAGEOFF]
	tst	w9, w8
	csel	x9, x11, x10, eq
	ldr	w0, [x9]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HOSTAPD_CHAN_DISABLED,4,2      ; @HOSTAPD_CHAN_DISABLED
	.comm	_NOT_ALLOWED,4,2                ; @NOT_ALLOWED
	.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	_allow_channel
.subsections_via_symbols
