	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_pci_init_trx_ring
_rtw_pci_init_trx_ring:                 ## @rtw_pci_init_trx_ring
	.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
	movq	%rdi, %r15
	movq	(%rdi), %rcx
	movq	8(%rdi), %r12
	movq	_RTK_MAX_TX_QUEUE_NUM@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	$0, (%rdx)
	movl	$0, %r13d
	jle	LBB0_5
## %bb.1:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rbx
	addq	%r14, %rbx
	movl	%r13d, %edi
	callq	_max_num_of_tx_queue
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_rtw_pci_init_tx_ring
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	_RTK_MAX_TX_QUEUE_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r14
	cmpq	%rax, %r13
	jl	LBB0_2
## %bb.4:
	xorl	%eax, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_5:
	movq	_RTK_MAX_RX_QUEUE_NUM@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	jle	LBB0_18
## %bb.6:
	movl	4(%rcx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	_RTK_MAX_RX_DESC_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_rtw_pci_init_rx_ring
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movq	_RTK_MAX_RX_QUEUE_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_7
## %bb.9:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.12:
	movl	%r13d, %r13d
	shlq	$2, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_rtw_pci_free_tx_ring
	addq	$4, %rbx
	cmpq	%rbx, %r13
	jne	LBB0_13
LBB0_14:
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.15:
	movl	%r14d, %r14d
	shlq	$2, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_rtw_pci_free_rx_ring
	addq	$4, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_16
LBB0_17:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTK_MAX_TX_QUEUE_NUM,4,2       ## @RTK_MAX_TX_QUEUE_NUM
	.comm	_RTK_MAX_RX_QUEUE_NUM,4,2       ## @RTK_MAX_RX_QUEUE_NUM
	.comm	_RTK_MAX_RX_DESC_NUM,4,2        ## @RTK_MAX_RX_DESC_NUM
	.no_dead_strip	_rtw_pci_init_trx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_pci_init_trx_ring
_rtw_pci_init_trx_ring:                 ; @rtw_pci_init_trx_ring
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	x25, x23, [x0]
Lloh0:
	adrp	x24, _RTK_MAX_TX_QUEUE_NUM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RTK_MAX_TX_QUEUE_NUM@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x26, #0
	mov	x20, #0
	ldr	w22, [x25]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	add	x21, x8, x26
	mov	x0, x20
	bl	_max_num_of_tx_queue
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_rtw_pci_init_tx_ring
	cbnz	w0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x24]
	add	x26, x26, #4
	cmp	x20, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
Lloh2:
	adrp	x26, _RTK_MAX_RX_QUEUE_NUM@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RTK_MAX_RX_QUEUE_NUM@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x27, #0
	mov	x24, #0
	ldr	w22, [x25, #4]
Lloh4:
	adrp	x25, _RTK_MAX_RX_DESC_NUM@GOTPAGE
Lloh5:
	ldr	x25, [x25, _RTK_MAX_RX_DESC_NUM@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x8, x27
	ldr	w3, [x25]
	mov	x0, x19
	mov	x2, x22
	bl	_rtw_pci_init_rx_ring
	cbnz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x26]
	add	x27, x27, #4
	cmp	x24, x8
	b.lt	LBB0_7
LBB0_9:
	mov	w21, #0
	b	LBB0_17
LBB0_10:
	mov	x21, x0
	mov	w24, #0
	cbnz	w20, LBB0_12
	b	LBB0_14
LBB0_11:
	mov	x21, x0
	cbz	w20, LBB0_14
LBB0_12:
	mov	x22, #0
	mov	w8, w20
	lsl	x20, x8, #2
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	add	x1, x8, x22
	mov	x0, x19
	bl	_rtw_pci_free_tx_ring
	add	x22, x22, #4
	cmp	x20, x22
	b.ne	LBB0_13
LBB0_14:
	cbz	w24, LBB0_17
; %bb.15:
	mov	x20, #0
	mov	w8, w24
	lsl	x22, x8, #2
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x8, x20
	mov	x0, x19
	bl	_rtw_pci_free_rx_ring
	add	x20, x20, #4
	cmp	x22, x20
	b.ne	LBB0_16
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RTK_MAX_TX_QUEUE_NUM,4,2       ; @RTK_MAX_TX_QUEUE_NUM
	.comm	_RTK_MAX_RX_QUEUE_NUM,4,2       ; @RTK_MAX_RX_QUEUE_NUM
	.comm	_RTK_MAX_RX_DESC_NUM,4,2        ; @RTK_MAX_RX_DESC_NUM
	.no_dead_strip	_rtw_pci_init_trx_ring
.subsections_via_symbols
