	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libipw_is_valid_channel        ## -- Begin function libipw_is_valid_channel
	.p2align	4, 0x90
_libipw_is_valid_channel:               ## @libipw_is_valid_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	8(%rdi), %r14d
	testq	%r14, %r14
	je	LBB0_1
## %bb.3:
	movl	(%rdi), %r8d
	movq	_LIBIPW_24GHZ_BAND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r8d, %eax
	je	LBB0_11
## %bb.4:
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.5:
	movq	24(%rdi), %rcx
	movq	_LIBIPW_CH_INVALID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	_IEEE_G@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	movq	_LIBIPW_CH_B_ONLY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r11d
	shlq	$4, %r14
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$16, %rbx
	cmpq	%rbx, %r14
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rcx,%rbx)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%rcx,%rbx), %edx
	testl	%edx, %r9d
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%r10d, 4(%rdi)
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	andl	%r11d, %edx
	jne	LBB0_10
	jmp	LBB0_19
LBB0_1:
	cmpl	$0, 12(%rdi)
	je	LBB0_18
## %bb.2:
	movl	(%rdi), %r8d
LBB0_11:
	movq	_LIBIPW_52GHZ_BAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%r8d, %edx
	je	LBB0_19
## %bb.12:
	movl	12(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.13:
	movq	16(%rdi), %rax
	movq	_LIBIPW_CH_INVALID@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	shlq	$4, %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	$16, %rbx
	cmpq	%rbx, %rcx
	je	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rax,%rbx)
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	testl	%edi, 8(%rax,%rbx)
	jne	LBB0_17
## %bb.16:
	movl	%edx, %eax
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBIPW_24GHZ_BAND,4,2          ## @LIBIPW_24GHZ_BAND
	.comm	_LIBIPW_CH_INVALID,4,2          ## @LIBIPW_CH_INVALID
	.comm	_IEEE_G,4,2                     ## @IEEE_G
	.comm	_LIBIPW_CH_B_ONLY,4,2           ## @LIBIPW_CH_B_ONLY
	.comm	_LIBIPW_52GHZ_BAND,4,2          ## @LIBIPW_52GHZ_BAND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libipw_is_valid_channel        ; -- Begin function libipw_is_valid_channel
	.p2align	2
_libipw_is_valid_channel:               ; @libipw_is_valid_channel
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	w10, [x0, #8]
	cbz	w10, LBB0_8
; %bb.1:
	ldr	w9, [x8]
Lloh0:
	adrp	x11, _LIBIPW_24GHZ_BAND@GOTPAGE
Lloh1:
	ldr	x11, [x11, _LIBIPW_24GHZ_BAND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x11]
	and	w11, w0, w9
	cmp	w11, #0
	ccmp	w10, #1, #8, ne
	b.lt	LBB0_10
; %bb.2:
	ldr	x14, [x8, #24]
Lloh3:
	adrp	x11, _LIBIPW_CH_INVALID@GOTPAGE
Lloh4:
	ldr	x11, [x11, _LIBIPW_CH_INVALID@GOTPAGEOFF]
Lloh5:
	adrp	x12, _IEEE_G@GOTPAGE
Lloh6:
	ldr	x12, [x12, _IEEE_G@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
Lloh8:
	ldr	w12, [x12]
Lloh9:
	adrp	x13, _LIBIPW_CH_B_ONLY@GOTPAGE
Lloh10:
	ldr	x13, [x13, _LIBIPW_CH_B_ONLY@GOTPAGEOFF]
Lloh11:
	ldr	w13, [x13]
	add	x14, x14, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x14, x14, #16
	subs	x10, x10, #1
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x15, [x14, #-8]
	cmp	x15, x1
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w15, [x14]
	tst	w11, w15
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w16, [x8, #4]
	and	w16, w12, w16
	and	w15, w13, w15
	cmp	w16, #0
	ccmp	w15, #0, #4, ne
	b.ne	LBB0_3
LBB0_7:
	ret
LBB0_8:
	ldr	w9, [x8, #12]
	cbz	w9, LBB0_16
; %bb.9:
	ldr	w9, [x8]
LBB0_10:
Lloh12:
	adrp	x10, _LIBIPW_52GHZ_BAND@GOTPAGE
Lloh13:
	ldr	x10, [x10, _LIBIPW_52GHZ_BAND@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x10]
	tst	w0, w9
	b.eq	LBB0_16
; %bb.11:
	ldr	w9, [x8, #12]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.12:
	ldr	x10, [x8, #16]
Lloh15:
	adrp	x8, _LIBIPW_CH_INVALID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LIBIPW_CH_INVALID@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	add	x10, x10, #8
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x10, x10, #16
	subs	x9, x9, #1
	b.eq	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x10, #-8]
	cmp	x11, x1
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w11, [x10]
	tst	w8, w11
	b.ne	LBB0_13
	b	LBB0_7
LBB0_16:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBIPW_24GHZ_BAND,4,2          ; @LIBIPW_24GHZ_BAND
	.comm	_LIBIPW_CH_INVALID,4,2          ; @LIBIPW_CH_INVALID
	.comm	_IEEE_G,4,2                     ; @IEEE_G
	.comm	_LIBIPW_CH_B_ONLY,4,2           ; @LIBIPW_CH_B_ONLY
	.comm	_LIBIPW_52GHZ_BAND,4,2          ; @LIBIPW_52GHZ_BAND
.subsections_via_symbols
