	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txdma_queue_mapping
_txdma_queue_mapping:                   ## @txdma_queue_mapping
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	callq	_rtw_hci_type
	cmpl	$129, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %eax
	addl	$-2, %eax
	cmpl	$3, %eax
	jae	LBB0_4
## %bb.5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	addq	$2, %rax
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
LBB0_6:
	movq	(%r14), %r13
	leaq	(%rax,%rax,2), %r14
	movl	20(%r13,%r14,8), %edi
	callq	_BIT_TXDMA_HIQ_MAP
	movl	%eax, %r15d
	movl	16(%r13,%r14,8), %edi
	callq	_BIT_TXDMA_MGQ_MAP
	orl	%eax, %r15d
	movl	12(%r13,%r14,8), %edi
	callq	_BIT_TXDMA_BKQ_MAP
	movl	%eax, %r12d
	movl	8(%r13,%r14,8), %edi
	callq	_BIT_TXDMA_BEQ_MAP
	orl	%eax, %r12d
	orl	%r15d, %r12d
	movl	4(%r13,%r14,8), %edi
	callq	_BIT_TXDMA_VIQ_MAP
	movl	%eax, %ebx
	movl	(%r13,%r14,8), %edi
	callq	_BIT_TXDMA_VOQ_MAP
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_REG_TXDMA_PQ_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_rtw_write16
	movq	_REG_CR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rtw_write8
	movl	(%r14), %esi
	movq	_MAC_TRX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_rtw_write8
	movq	_REG_H2CQ_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_H2CQ_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_rtw_write32
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_REG_TXDMA_PQ_MAP,4,2           ## @REG_TXDMA_PQ_MAP
	.comm	_REG_CR,4,2                     ## @REG_CR
	.comm	_MAC_TRX_ENABLE,4,2             ## @MAC_TRX_ENABLE
	.comm	_REG_H2CQ_CSR,4,2               ## @REG_H2CQ_CSR
	.comm	_BIT_H2CQ_FULL,4,2              ## @BIT_H2CQ_FULL
	.no_dead_strip	_txdma_queue_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function txdma_queue_mapping
_txdma_queue_mapping:                   ; @txdma_queue_mapping
	.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, x0
	ldr	x20, [x0, #8]
	bl	_rtw_hci_type
	cmp	w0, #129
	b.eq	LBB0_5
; %bb.1:
	cmp	w0, #128
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19]
	sub	w8, w8, #2
	cmp	w8, #3
	b.hs	LBB0_4
; %bb.3:
	add	x8, x8, #2
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	mov	w8, #1
LBB0_6:
	ldr	x9, [x20]
	mov	w10, #24
	madd	x21, x8, x10, x9
	ldr	w0, [x21, #20]
	bl	_BIT_TXDMA_HIQ_MAP
	mov	x20, x0
	ldr	w0, [x21, #16]
	bl	_BIT_TXDMA_MGQ_MAP
	orr	w20, w0, w20
	ldr	w0, [x21, #12]
	bl	_BIT_TXDMA_BKQ_MAP
	orr	w20, w20, w0
	ldr	w0, [x21, #8]
	bl	_BIT_TXDMA_BEQ_MAP
	orr	w20, w20, w0
	ldr	w0, [x21, #4]
	bl	_BIT_TXDMA_VIQ_MAP
	orr	w20, w20, w0
	ldr	w0, [x21]
	bl	_BIT_TXDMA_VOQ_MAP
	orr	w2, w20, w0
Lloh3:
	adrp	x8, _REG_TXDMA_PQ_MAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_TXDMA_PQ_MAP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtw_write16
Lloh6:
	adrp	x20, _REG_CR@GOTPAGE
Lloh7:
	ldr	x20, [x20, _REG_CR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_rtw_write8
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _MAC_TRX_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAC_TRX_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtw_write8
Lloh11:
	adrp	x8, _REG_H2CQ_CSR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_H2CQ_CSR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _BIT_H2CQ_FULL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BIT_H2CQ_FULL@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtw_write32
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_REG_TXDMA_PQ_MAP,4,2           ; @REG_TXDMA_PQ_MAP
	.comm	_REG_CR,4,2                     ; @REG_CR
	.comm	_MAC_TRX_ENABLE,4,2             ; @MAC_TRX_ENABLE
	.comm	_REG_H2CQ_CSR,4,2               ; @REG_H2CQ_CSR
	.comm	_BIT_H2CQ_FULL,4,2              ; @BIT_H2CQ_FULL
	.no_dead_strip	_txdma_queue_mapping
.subsections_via_symbols
