	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_txq_set_ratid_map
_iwl_pcie_txq_set_ratid_map:            ## @iwl_pcie_txq_set_ratid_map
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	_SCD_QUEUE_RA_TID_MAP_RATID_MSK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_SCD_TRANS_TBL_OFFSET_QUEUE
	addl	%eax, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_iwl_trans_read_mem32
	movl	%r15d, %ecx
	shll	$16, %ecx
	testb	$1, %r12b
	movl	$-65536, %esi                   ## imm = 0xFFFF0000
	movl	$65535, %edx                    ## imm = 0xFFFF
	cmovel	%esi, %edx
	cmovel	%r15d, %ecx
	andl	%eax, %edx
	orl	%ecx, %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_iwl_trans_write_mem32
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCD_QUEUE_RA_TID_MAP_RATID_MSK,4,2 ## @SCD_QUEUE_RA_TID_MAP_RATID_MSK
	.no_dead_strip	_iwl_pcie_txq_set_ratid_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_pcie_txq_set_ratid_map
_iwl_pcie_txq_set_ratid_map:            ; @iwl_pcie_txq_set_ratid_map
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
Lloh0:
	adrp	x8, _SCD_QUEUE_RA_TID_MAP_RATID_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCD_QUEUE_RA_TID_MAP_RATID_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w22, w8, w20
	ldr	w20, [x0]
	mov	x0, x19
	bl	_SCD_TRANS_TBL_OFFSET_QUEUE
	add	w20, w0, w20
	mov	x0, x21
	mov	x1, x20
	bl	_iwl_trans_read_mem32
	lsl	w8, w22, #16
	tst	w19, #0x1
	mov	w9, #-65536
	cinv	w9, w9, ne
	csel	w8, w22, w8, eq
	and	w9, w0, w9
	orr	w2, w9, w8
	mov	x0, x21
	mov	x1, x20
	bl	_iwl_trans_write_mem32
	mov	w0, #0
	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	_SCD_QUEUE_RA_TID_MAP_RATID_MSK,4,2 ; @SCD_QUEUE_RA_TID_MAP_RATID_MSK
	.no_dead_strip	_iwl_pcie_txq_set_ratid_map
.subsections_via_symbols
