	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl_pci_init_trx_var
__rtl_pci_init_trx_var:                 ## @_rtl_pci_init_trx_var
	.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	%rdi, %r14
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	(%rax), %rax
	movq	_HARDWARE_TYPE_RTL8192EE@GOTPCREL(%rip), %rcx
	movq	_HARDWARE_TYPE_RTL8822BE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_TX_DESC_NUM_8822B@GOTPCREL(%rip), %rdx
	cmpq	(%rcx), %rax
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_RT_TXDESC_NUM@GOTPCREL(%rip), %rdx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	movq	_TX_DESC_NUM_92E@GOTPCREL(%rip), %rdx
LBB0_5:
	movq	_RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%r15), %rax
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.6:
	movl	(%rdx), %edx
	cmpq	$8, %rcx
	jae	LBB0_9
## %bb.7:
	xorl	%esi, %esi
	jmp	LBB0_8
LBB0_9:
	movq	%rcx, %rsi
	andq	$-8, %rsi
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rsi), %rbx
	movq	%rbx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$7, %r8d
	cmpq	$56, %rbx
	jae	LBB0_11
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_11:
	andq	$-8, %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rax,%rbx,4)
	movdqu	%xmm0, 16(%rax,%rbx,4)
	movdqu	%xmm0, 32(%rax,%rbx,4)
	movdqu	%xmm0, 48(%rax,%rbx,4)
	movdqu	%xmm0, 64(%rax,%rbx,4)
	movdqu	%xmm0, 80(%rax,%rbx,4)
	movdqu	%xmm0, 96(%rax,%rbx,4)
	movdqu	%xmm0, 112(%rax,%rbx,4)
	movdqu	%xmm0, 128(%rax,%rbx,4)
	movdqu	%xmm0, 144(%rax,%rbx,4)
	movdqu	%xmm0, 160(%rax,%rbx,4)
	movdqu	%xmm0, 176(%rax,%rbx,4)
	movdqu	%xmm0, 192(%rax,%rbx,4)
	movdqu	%xmm0, 208(%rax,%rbx,4)
	movdqu	%xmm0, 224(%rax,%rbx,4)
	movdqu	%xmm0, 240(%rax,%rbx,4)
	addq	$64, %rbx
	addq	$-8, %rdi
	jne	LBB0_12
LBB0_13:
	testq	%r8, %r8
	je	LBB0_16
## %bb.14:
	leaq	(%rax,%rbx,4), %rdi
	addq	$16, %rdi
	shlq	$5, %r8
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rdi,%rbx)
	movdqu	%xmm0, (%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r8
	jne	LBB0_15
	jmp	LBB0_16
LBB0_8:
	movl	%edx, (%rax,%rsi,4)
	incq	%rsi
LBB0_16:
	cmpq	%rsi, %rcx
	jne	LBB0_8
LBB0_17:
	movq	_BEACON_QUEUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$2, (%rax,%rcx,4)
	movq	%r14, %rdi
	callq	_rtl_priv
	cmpl	$0, (%rax)
	jne	LBB0_19
## %bb.18:
	movq	_RT_TXDESC_NUM_BE_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movq	_BE_QUEUE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
LBB0_19:
	movl	$9100, 8(%r15)                  ## imm = 0x238C
	movq	_RTL_PCI_MAX_RX_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HARDWARE_TYPE_RTL8192EE,8,3    ## @HARDWARE_TYPE_RTL8192EE
	.comm	_TX_DESC_NUM_92E,4,2            ## @TX_DESC_NUM_92E
	.comm	_HARDWARE_TYPE_RTL8822BE,8,3    ## @HARDWARE_TYPE_RTL8822BE
	.comm	_TX_DESC_NUM_8822B,4,2          ## @TX_DESC_NUM_8822B
	.comm	_RT_TXDESC_NUM,4,2              ## @RT_TXDESC_NUM
	.comm	_RTL_PCI_MAX_TX_QUEUE_COUNT,8,3 ## @RTL_PCI_MAX_TX_QUEUE_COUNT
	.comm	_BEACON_QUEUE,8,3               ## @BEACON_QUEUE
	.comm	_RT_TXDESC_NUM_BE_QUEUE,4,2     ## @RT_TXDESC_NUM_BE_QUEUE
	.comm	_BE_QUEUE,8,3                   ## @BE_QUEUE
	.comm	_RTL_PCI_MAX_RX_COUNT,4,2       ## @RTL_PCI_MAX_RX_COUNT
	.no_dead_strip	__rtl_pci_init_trx_var
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl_pci_init_trx_var
__rtl_pci_init_trx_var:                 ; @_rtl_pci_init_trx_var
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_hal
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HARDWARE_TYPE_RTL8192EE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HARDWARE_TYPE_RTL8192EE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _HARDWARE_TYPE_RTL8822BE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HARDWARE_TYPE_RTL8822BE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _TX_DESC_NUM_92E@GOTPAGE
Lloh7:
	ldr	x11, [x11, _TX_DESC_NUM_92E@GOTPAGEOFF]
Lloh8:
	adrp	x12, _TX_DESC_NUM_8822B@GOTPAGE
Lloh9:
	ldr	x12, [x12, _TX_DESC_NUM_8822B@GOTPAGEOFF]
Lloh10:
	adrp	x13, _RT_TXDESC_NUM@GOTPAGE
Lloh11:
	ldr	x13, [x13, _RT_TXDESC_NUM@GOTPAGEOFF]
	cmp	x8, x10
	csel	x10, x12, x13, eq
	cmp	x8, x9
	csel	x9, x11, x10, eq
Lloh12:
	adrp	x8, _RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x8]
	ldr	x8, [x19]
	cbz	x10, LBB0_8
; %bb.1:
	ldr	w9, [x9]
	cmp	x10, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x11, #0
	b	LBB0_6
LBB0_3:
	and	x11, x10, #0xfffffffffffffff0
	dup.4s	v0, w9
	add	x12, x8, #32
	mov	x13, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	subs	x13, x13, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x11
	b.eq	LBB0_8
LBB0_6:
	sub	x10, x10, x11
	add	x11, x8, x11, lsl #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	w9, [x11], #4
	subs	x10, x10, #1
	b.ne	LBB0_7
LBB0_8:
Lloh15:
	adrp	x9, _BEACON_QUEUE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BEACON_QUEUE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	mov	w10, #2
	str	w10, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_rtl_priv
	ldr	w8, [x0]
	cbnz	w8, LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _RT_TXDESC_NUM_BE_QUEUE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RT_TXDESC_NUM_BE_QUEUE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	x9, [x19]
Lloh21:
	adrp	x10, _BE_QUEUE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _BE_QUEUE@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
LBB0_10:
	mov	w8, #9100
Lloh24:
	adrp	x9, _RTL_PCI_MAX_RX_COUNT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RTL_PCI_MAX_RX_COUNT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_HARDWARE_TYPE_RTL8192EE,8,3    ; @HARDWARE_TYPE_RTL8192EE
	.comm	_TX_DESC_NUM_92E,4,2            ; @TX_DESC_NUM_92E
	.comm	_HARDWARE_TYPE_RTL8822BE,8,3    ; @HARDWARE_TYPE_RTL8822BE
	.comm	_TX_DESC_NUM_8822B,4,2          ; @TX_DESC_NUM_8822B
	.comm	_RT_TXDESC_NUM,4,2              ; @RT_TXDESC_NUM
	.comm	_RTL_PCI_MAX_TX_QUEUE_COUNT,8,3 ; @RTL_PCI_MAX_TX_QUEUE_COUNT
	.comm	_BEACON_QUEUE,8,3               ; @BEACON_QUEUE
	.comm	_RT_TXDESC_NUM_BE_QUEUE,4,2     ; @RT_TXDESC_NUM_BE_QUEUE
	.comm	_BE_QUEUE,8,3                   ; @BE_QUEUE
	.comm	_RTL_PCI_MAX_RX_COUNT,4,2       ; @RTL_PCI_MAX_RX_COUNT
	.no_dead_strip	__rtl_pci_init_trx_var
.subsections_via_symbols
