	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_bt_update_lq
_rs_bt_update_lq:                       ## @rs_bt_update_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	cmpq	$0, 32(%rdi)
	movl	%ecx, %eax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	cmpq	$0, 40(%rbx)
	setne	%al
LBB0_2:
	movq	8(%rbx), %rdx
	cmpq	16(%rbx), %rdx
	jne	LBB0_5
## %bb.3:
	cmpl	%eax, %ecx
	jne	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, (%rbx)
	movq	%rdx, 16(%rbx)
	movq	(%r14), %rax
	movq	16(%r14), %rcx
	movl	(%rcx,%rax,4), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rs_fill_link_cmd
	addq	$8, %r14
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_iwl_send_lq_cmd
	movl	28(%rbx), %edi
	addq	$24, %rbx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
	.no_dead_strip	_rs_bt_update_lq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_bt_update_lq
_rs_bt_update_lq:                       ; @rs_bt_update_lq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	ldr	x9, [x0, #32]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	x9, [x19, #40]
	cmp	x9, #0
	cset	w9, ne
	b	LBB0_3
LBB0_2:
	mov	x9, x8
LBB0_3:
	ldp	x10, x11, [x19, #8]
	cmp	x10, x11
	ccmp	w8, w9, #0, eq
	b.eq	LBB0_5
; %bb.4:
	str	w9, [x19]
	str	x10, [x19, #16]
	ldr	x8, [x21, #16]
	ldr	x9, [x21]
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x1, x21
	bl	_rs_fill_link_cmd
	add	x2, x21, #8
Lloh0:
	adrp	x8, _CMD_ASYNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_ASYNC@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #0
	bl	_iwl_send_lq_cmd
	ldr	w0, [x19, #28]
	add	x1, x19, #24
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_queue_work
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
	.no_dead_strip	_rs_bt_update_lq
.subsections_via_symbols
