	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd8111e_init_ring
_amd8111e_init_ring:                    ## @amd8111e_init_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, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%rax)
	movups	%xmm0, 80(%rax)
	cmpq	$0, 56(%rax)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_amd8111e_free_skbs
LBB0_4:
	movq	%r14, %rdi
	callq	_amd8111e_set_rx_buff_len
	movq	_NUM_RX_BUFFERS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_17
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rdi
	callq	_dev_alloc_skb
	movq	48(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	testq	%rax, %rax
	je	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	48(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	$2, %esi
	callq	_skb_reserve
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
## %bb.14:
	testl	%eax, %eax
	jle	LBB0_17
## %bb.15:
	movq	_OWN_BIT@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r13), %edi
	movq	48(%r13), %rax
	movq	(%rax,%rbx,2), %rax
	movl	(%rax), %esi
	movq	32(%r13), %rdx
	addq	$-2, %rdx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movq	40(%r13), %rcx
	movl	%eax, (%rcx,%rbx)
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	24(%r13), %rcx
	movq	%rax, 16(%rcx,%rbx,8)
	movq	32(%r13), %rdi
	addq	$-2, %rdi
	callq	_cpu_to_le16
	movq	24(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	xorl	%eax, %eax
	callq	_wmb
	movq	(%r12), %rdi
	callq	_cpu_to_le16
	movq	24(%r13), %rcx
	movq	%rax, 24(%rcx,%rbx,8)
	incq	%r15
	movslq	(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jl	LBB0_16
LBB0_17:
	movq	_NUM_TX_RING_DR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_18
## %bb.19:
	movq	8(%r13), %rcx
	leaq	-1(%rsi), %rdi
	movl	%esi, %edx
	andl	$7, %edx
	xorl	%eax, %eax
	cmpq	$7, %rdi
	jae	LBB0_21
## %bb.20:
	xorl	%edi, %edi
	jmp	LBB0_23
LBB0_2:
	movl	16(%r13), %edi
	movq	_NUM_TX_RING_DR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movq	%r13, %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movl	16(%r13), %edi
	movq	_NUM_RX_RING_DR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movq	%r13, %rdx
	addq	$20, %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_11
LBB0_7:
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.8:
	incq	%rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r13), %rax
	movq	-16(%rax,%rbx,8), %rdi
	callq	_dev_kfree_skb
	decq	%rbx
	cmpq	$1, %rbx
	jg	LBB0_9
LBB0_10:
	movq	_NUM_RX_RING_DR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movq	24(%r13), %rdx
	movl	16(%r13), %edi
	movl	20(%r13), %ecx
	callq	_pci_free_consistent
LBB0_11:
	movl	16(%r13), %edi
	movq	_NUM_TX_RING_DR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movq	8(%r13), %rdx
	movl	(%r13), %ecx
	callq	_pci_free_consistent
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_26
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_21:
	andl	$-8, %esi
	leaq	224(%rcx), %rbx
	xorl	%edi, %edi
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movups	%xmm0, -224(%rbx)
	movq	$0, -208(%rbx)
	movups	%xmm0, -192(%rbx)
	movq	$0, -176(%rbx)
	movups	%xmm0, -160(%rbx)
	movq	$0, -144(%rbx)
	movups	%xmm0, -128(%rbx)
	movq	$0, -112(%rbx)
	movups	%xmm0, -96(%rbx)
	movq	$0, -80(%rbx)
	movups	%xmm0, -64(%rbx)
	movq	$0, -48(%rbx)
	movups	%xmm0, -32(%rbx)
	movq	$0, -16(%rbx)
	addq	$8, %rdi
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	addq	$256, %rbx                      ## imm = 0x100
	cmpq	%rdi, %rsi
	jne	LBB0_22
LBB0_23:
	testq	%rdx, %rdx
	je	LBB0_26
## %bb.24:
	shlq	$5, %rdi
	addq	%rdi, %rcx
	shlq	$5, %rdx
	xorl	%eax, %eax
	xorps	%xmm0, %xmm0
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movups	%xmm0, (%rcx,%rsi)
	movq	$0, 16(%rcx,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_25
LBB0_26:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_TX_RING_DR,4,2             ## @NUM_TX_RING_DR
	.comm	_NUM_RX_RING_DR,4,2             ## @NUM_RX_RING_DR
	.comm	_NUM_RX_BUFFERS,4,2             ## @NUM_RX_BUFFERS
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_OWN_BIT,8,3                    ## @OWN_BIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_amd8111e_init_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd8111e_init_ring
_amd8111e_init_ring:                    ; @amd8111e_init_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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x0, #64]
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_13
; %bb.1:
	mov	x0, x20
	bl	_amd8111e_free_skbs
LBB0_2:
	mov	x0, x20
	bl	_amd8111e_set_rx_buff_len
Lloh0:
	adrp	x20, _NUM_RX_BUFFERS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NUM_RX_BUFFERS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #32]
	bl	_dev_alloc_skb
	ldr	x8, [x19, #48]
	str	x0, [x8, x21, lsl #3]
	cbz	x0, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #48]
	ldr	x0, [x8, x21, lsl #3]
	mov	w1, #2
	bl	_skb_reserve
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_4
; %bb.6:
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x21, #0
	mov	x22, #0
Lloh2:
	adrp	x23, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh4:
	adrp	x24, _OWN_BIT@GOTPAGE
Lloh5:
	ldr	x24, [x24, _OWN_BIT@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w1, [x8]
	ldr	x8, [x19, #32]
	sub	x2, x8, #2
	ldr	w3, [x23]
	bl	_pci_map_single
	ldr	x8, [x19, #40]
	str	w0, [x8, x22, lsl #2]
	bl	_cpu_to_le32
	ldp	x8, x9, [x19, #24]
	add	x8, x8, x21
	str	x0, [x8, #16]
	sub	x0, x9, #2
	bl	_cpu_to_le16
	ldr	x8, [x19, #24]
	str	x0, [x8, x21]
	bl	_wmb
	ldr	x0, [x24]
	bl	_cpu_to_le16
	ldr	x8, [x19, #24]
	add	x8, x8, x21
	str	x0, [x8, #24]
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #32
	cmp	x22, x8
	b.lt	LBB0_8
LBB0_9:
Lloh6:
	adrp	x8, _NUM_TX_RING_DR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NUM_TX_RING_DR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	ldr	x9, [x19, #8]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	stp	xzr, xzr, [x9]
	str	xzr, [x9, #16]
	add	x9, x9, #32
	subs	x8, x8, #1
	b.ne	LBB0_11
LBB0_12:
	mov	w0, #0
	b	LBB0_21
LBB0_13:
	ldr	w0, [x19, #16]
Lloh9:
	adrp	x8, _NUM_TX_RING_DR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NUM_TX_RING_DR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	mov	x2, x19
	bl	_pci_alloc_consistent
	str	x0, [x19, #8]
	cbz	x0, LBB0_20
; %bb.14:
	ldr	w0, [x19, #16]
Lloh12:
	adrp	x8, _NUM_RX_RING_DR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NUM_RX_RING_DR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	add	x2, x19, #20
	bl	_pci_alloc_consistent
	str	x0, [x19, #24]
	cbnz	x0, LBB0_2
	b	LBB0_19
LBB0_15:
	cbz	w21, LBB0_18
; %bb.16:
	sub	x20, x21, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	ldr	x0, [x8, x20, lsl #3]
	bl	_dev_kfree_skb
	add	x8, x20, #1
	sub	x20, x20, #1
	cmp	x8, #1
	b.gt	LBB0_17
LBB0_18:
Lloh15:
	adrp	x8, _NUM_RX_RING_DR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NUM_RX_RING_DR@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	ldr	x2, [x19, #24]
	ldp	w0, w3, [x19, #16]
	bl	_pci_free_consistent
LBB0_19:
	ldr	w0, [x19, #16]
Lloh18:
	adrp	x8, _NUM_TX_RING_DR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NUM_TX_RING_DR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	ldr	x2, [x19, #8]
	ldr	w3, [x19]
	bl	_pci_free_consistent
LBB0_20:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_TX_RING_DR,4,2             ; @NUM_TX_RING_DR
	.comm	_NUM_RX_RING_DR,4,2             ; @NUM_RX_RING_DR
	.comm	_NUM_RX_BUFFERS,4,2             ; @NUM_RX_BUFFERS
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_OWN_BIT,8,3                    ; @OWN_BIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_amd8111e_init_ring
.subsections_via_symbols
