	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_send_lq_cmd                ## -- Begin function iwl_send_lq_cmd
	.p2align	4, 0x90
_iwl_send_lq_cmd:                       ## @iwl_send_lq_cmd
	.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
	movl	%r8d, %ebx
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	%ecx, -64(%rbp)
	movl	%r15d, -60(%rbp)
	movl	$8, -56(%rbp)
	movq	_REPLY_TX_LINK_QUALITY_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	(%rdx), %rax
	movq	_IWL_INVALID_STATION@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	8(%r14), %rax
	movq	(%r15), %rcx
	movq	_IWL_STA_DRIVER_ACTIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	(%rax,%rcx,4), %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_iwl_dump_lq_cmd
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	setne	%al
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	andl	%r12d, %ecx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_is_lq_table_valid
	movq	%rbx, %r13
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_iwl_dvm_send_cmd
	movl	%eax, %ebx
	movl	-64(%rbp), %r12d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_8
	jmp	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
LBB0_8:
	andl	(%r13), %r12d
	jne	LBB0_10
## %bb.9:
	movq	(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_DEBUG_INFO
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	_IWL_STA_UCODE_INPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	8(%r14), %rcx
	movq	(%r15), %rdx
	andl	%eax, (%rcx,%rdx,4)
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_REPLY_TX_LINK_QUALITY_CMD,4,2  ## @REPLY_TX_LINK_QUALITY_CMD
	.comm	_IWL_INVALID_STATION,8,3        ## @IWL_INVALID_STATION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IWL_STA_DRIVER_ACTIVE,4,2      ## @IWL_STA_DRIVER_ACTIVE
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init LQ command complete, clearing sta addition status for sta %d\n"

	.comm	_IWL_STA_UCODE_INPROGRESS,4,2   ## @IWL_STA_UCODE_INPROGRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_send_lq_cmd                ; -- Begin function iwl_send_lq_cmd
	.p2align	2
_iwl_send_lq_cmd:                       ; @iwl_send_lq_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	stp	w3, w20, [sp]
	mov	w8, #8
Lloh0:
	adrp	x9, _REPLY_TX_LINK_QUALITY_CMD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REPLY_TX_LINK_QUALITY_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
	ldr	x8, [x2]
Lloh3:
	adrp	x9, _IWL_INVALID_STATION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_INVALID_STATION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
LBB0_1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_2:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_3:
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	ldr	w8, [x8, x9, lsl #2]
Lloh9:
	adrp	x9, _IWL_STA_DRIVER_ACTIVE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IWL_STA_DRIVER_ACTIVE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w24, w9, w8
	mov	x0, x19
	bl	_spin_unlock_bh
	cbz	w24, LBB0_1
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_dump_lq_cmd
Lloh12:
	adrp	x24, _CMD_ASYNC@GOTPAGE
Lloh13:
	ldr	x24, [x24, _CMD_ASYNC@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w22
	ccmp	w21, #0, #4, ne
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_1
; %bb.5:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	bl	_is_lq_table_valid
	cbz	x0, LBB0_7
; %bb.6:
	mov	x1, sp
	mov	x0, x19
	bl	_iwl_dvm_send_cmd
	mov	x23, x0
	ldr	w22, [sp]
	cbnz	w21, LBB0_8
	b	LBB0_2
LBB0_7:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w23, w8
	cbz	w21, LBB0_2
LBB0_8:
	ldr	w8, [x24]
	and	w8, w8, w22
	cbnz	w8, LBB0_2
; %bb.9:
	ldr	x2, [x20]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_INFO
	mov	x0, x19
	bl	_spin_lock_bh
Lloh19:
	adrp	x8, _IWL_STA_UCODE_INPROGRESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IWL_STA_UCODE_INPROGRESS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	x10, [x20]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	bic	w8, w11, w8
	str	w8, [x9, x10]
	mov	x0, x19
	bl	_spin_unlock_bh
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_REPLY_TX_LINK_QUALITY_CMD,4,2  ; @REPLY_TX_LINK_QUALITY_CMD
	.comm	_IWL_INVALID_STATION,8,3        ; @IWL_INVALID_STATION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IWL_STA_DRIVER_ACTIVE,4,2      ; @IWL_STA_DRIVER_ACTIVE
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init LQ command complete, clearing sta addition status for sta %d\n"

	.comm	_IWL_STA_UCODE_INPROGRESS,4,2   ; @IWL_STA_UCODE_INPROGRESS
.subsections_via_symbols
