	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_lq_table_valid
_is_lq_table_valid:                     ## @is_lq_table_valid
	.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	$1, %r15d
	cmpq	$0, 8(%rsi)
	je	LBB0_1
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	callq	_IWL_DEBUG_INFO
	movq	_LINK_QUAL_MAX_RETRY_NUM@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_6
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_RATE_MCS_HT_MSK@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le32_to_cpu
	testl	%eax, (%r14)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_IWL_DEBUG_INFO
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Channel %u is not an HT channel\n"

	.comm	_LINK_QUAL_MAX_RETRY_NUM,4,2    ## @LINK_QUAL_MAX_RETRY_NUM
	.comm	_RATE_MCS_HT_MSK,4,2            ## @RATE_MCS_HT_MSK
L_.str.1:                               ## @.str.1
	.asciz	"index %d of LQ expects HT channel\n"

	.no_dead_strip	_is_lq_table_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_lq_table_valid
_is_lq_table_valid:                     ; @is_lq_table_valid
	.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
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #1
LBB0_2:
	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_3:
	mov	x20, x2
	mov	x19, x0
	ldr	w2, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IWL_DEBUG_INFO
Lloh2:
	adrp	x22, _LINK_QUAL_MAX_RETRY_NUM@GOTPAGE
Lloh3:
	ldr	x22, [x22, _LINK_QUAL_MAX_RETRY_NUM@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.4:
	mov	x21, #0
Lloh4:
	adrp	x23, _RATE_MCS_HT_MSK@GOTPAGE
Lloh5:
	ldr	x23, [x23, _RATE_MCS_HT_MSK@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8, x21, lsl #2]
	bl	_le32_to_cpu
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_5
	b	LBB0_1
LBB0_7:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_IWL_DEBUG_INFO
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Channel %u is not an HT channel\n"

	.comm	_LINK_QUAL_MAX_RETRY_NUM,4,2    ; @LINK_QUAL_MAX_RETRY_NUM
	.comm	_RATE_MCS_HT_MSK,4,2            ; @RATE_MCS_HT_MSK
l_.str.1:                               ; @.str.1
	.asciz	"index %d of LQ expects HT channel\n"

	.no_dead_strip	_is_lq_table_valid
.subsections_via_symbols
