	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_initialize_lq
_rs_initialize_lq:                      ## @rs_initialize_lq
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rdx, %rbx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpl	$0, 24(%rbx)
	movq	(%rbx), %r12
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movl	%ecx, %r12d
	callq	_rs_search_tbl
	movl	%r12d, %ecx
	movq	%rax, %r12
LBB0_4:
	movq	16(%rbx), %r13
	shlq	$4, %r12
	leaq	(%r12,%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r13), %r8
	addq	$8, %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	_rs_get_initial_rate
	movq	%r14, %rdi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_rs_init_optimal_rate
	movq	8(%r13,%r12), %rdx
	movq	_ANT_A@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	setne	%al
	movq	_ANT_B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	movl	12(%rbx), %ecx
	movq	(%r14), %rax
	movq	8(%r14), %rsi
	movl	(%rsi), %r8d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_ANT_INVALID@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rsi
	callq	_WARN_ONCE
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_rs_get_column_from_rate
	movl	%eax, (%r13,%r12)
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_rs_set_expected_tpt_table
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_rs_fill_lq_cmd
	addq	$8, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_mvm_send_lq_cmd            ## TAILCALL
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ANT_A,8,3                      ## @ANT_A
	.comm	_ANT_B,8,3                      ## @ANT_B
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ant: 0x%x, chains 0x%x, fw tx ant: 0x%x, nvm tx ant: 0x%x\n"

	.comm	_ANT_INVALID,4,2                ## @ANT_INVALID
	.no_dead_strip	_rs_initialize_lq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_initialize_lq
_rs_initialize_lq:                      ; @rs_initialize_lq
	.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
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x2
	cbz	x2, LBB0_5
; %bb.2:
	mov	x22, x3
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x19, #24]
	ldr	x0, [x19]
	cbz	w8, LBB0_4
; %bb.3:
	bl	_rs_search_tbl
LBB0_4:
	ldr	x8, [x19, #16]
	add	x23, x8, x0, lsl #4
	add	x24, x23, #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	mov	x4, x24
	bl	_rs_get_initial_rate
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_rs_init_optimal_rate
	ldr	x2, [x23, #8]
Lloh0:
	adrp	x8, _ANT_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ANT_A@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
Lloh3:
	adrp	x8, _ANT_B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ANT_B@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ccmp	x2, x8, #4, ne
	cset	w0, ne
	ldr	w3, [x19, #12]
	ldp	x9, x8, [x20]
	ldr	w4, [x8]
Lloh6:
	adrp	x8, _ANT_INVALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ANT_INVALID@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x9, eq
	ldr	w5, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN_ONCE
	mov	x0, x24
	bl	_rs_get_column_from_rate
	str	w0, [x23]
	mov	x0, x19
	mov	x1, x23
	bl	_rs_set_expected_tpt_table
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x24
	bl	_rs_fill_lq_cmd
	add	x1, x19, #8
	mov	x0, x20
	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	_iwl_mvm_send_lq_cmd
LBB0_5:
	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
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ANT_A,8,3                      ; @ANT_A
	.comm	_ANT_B,8,3                      ; @ANT_B
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ant: 0x%x, chains 0x%x, fw tx ant: 0x%x, nvm tx ant: 0x%x\n"

	.comm	_ANT_INVALID,4,2                ; @ANT_INVALID
	.no_dead_strip	_rs_initialize_lq
.subsections_via_symbols
