	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl_pci_init_trx_ring
__rtl_pci_init_trx_ring:                ## @_rtl_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	movq	%rax, %r14
	movq	_RTL_PCI_MAX_RX_QUEUE@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	__rtl_pci_init_rx_ring
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_2
LBB0_4:
	movq	_RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_10
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	__rtl_pci_init_tx_ring
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_10:
	xorl	%r12d, %r12d
	jmp	LBB0_20
LBB0_9:
	movl	%eax, %r12d
	jmp	LBB0_20
LBB0_11:
	cmpl	$0, (%r13)
	jle	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	__rtl_pci_free_rx_ring
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_13
LBB0_14:
	movl	(%r12), %eax
	movl	$1, %r12d
	testl	%eax, %eax
	jle	LBB0_20
## %bb.15:
	movl	$8, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	__rtl_pci_free_tx_ring
	movq	_RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$16, %r13
	cmpq	%rcx, %rbx
	jge	LBB0_20
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	cmpq	$0, (%rcx,%r13)
	jne	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpq	$0, -8(%rcx,%r13)
	jne	LBB0_16
	jmp	LBB0_17
LBB0_20:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL_PCI_MAX_RX_QUEUE,4,2       ## @RTL_PCI_MAX_RX_QUEUE
	.comm	_RTL_PCI_MAX_TX_QUEUE_COUNT,4,2 ## @RTL_PCI_MAX_TX_QUEUE_COUNT
	.no_dead_strip	__rtl_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 _rtl_pci_init_trx_ring
__rtl_pci_init_trx_ring:                ; @_rtl_pci_init_trx_ring
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	mov	x20, x0
Lloh0:
	adrp	x23, _RTL_PCI_MAX_RX_QUEUE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RTL_PCI_MAX_RX_QUEUE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	__rtl_pci_init_rx_ring
	cbnz	w0, LBB0_19
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	ldr	w8, [x23]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_4:
Lloh2:
	adrp	x22, _RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x19
	mov	x1, x21
	bl	__rtl_pci_init_tx_ring
	cbnz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_6
LBB0_8:
	mov	w0, #0
	b	LBB0_19
LBB0_9:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	w21, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	__rtl_pci_free_rx_ring
	add	w21, w21, #1
	ldr	w8, [x23]
	cmp	w21, w8
	b.lt	LBB0_11
LBB0_12:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.13:
	mov	x23, #0
	mov	x21, #0
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	__rtl_pci_free_tx_ring
	ldr	w8, [x22]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x21, x21, #1
	add	x23, x23, #16
	cmp	x21, w8, sxtw
	b.ge	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	add	x10, x9, x23
	ldr	x10, [x10, #8]
	cbnz	x10, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x9, [x9, x23]
	cbnz	x9, LBB0_14
	b	LBB0_15
LBB0_18:
	mov	w0, #1
LBB0_19:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL_PCI_MAX_RX_QUEUE,4,2       ; @RTL_PCI_MAX_RX_QUEUE
	.comm	_RTL_PCI_MAX_TX_QUEUE_COUNT,4,2 ; @RTL_PCI_MAX_TX_QUEUE_COUNT
	.no_dead_strip	__rtl_pci_init_trx_ring
.subsections_via_symbols
