	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_init_ring
_xgbe_init_ring:                        ## @xgbe_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
	xorl	%r15d, %r15d
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	%edx, %r13d
	shlq	$2, %r13
	movl	%edx, (%rsi)
	movl	4(%rdi), %edi
	leaq	12(%rsi), %r12
	movl	4(%rsi), %ecx
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_xgbe_dma_alloc_node
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	4(%rbx), %esi
	movq	%r13, %rdi
	callq	_xgbe_alloc_node
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	_drv@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	movl	4(%rbx), %r10d
	movl	16(%rbx), %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movq	%r12, %r9
	pushq	%r10
	pushq	%rax
	callq	_netif_dbg
	addq	$16, %rsp
	jmp	LBB0_5
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rdesc=%p, rdesc_dma=%pad, rdata=%p, node=%d\n"

	.no_dead_strip	_xgbe_init_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_init_ring
_xgbe_init_ring:                        ; @xgbe_init_ring
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w8, w2
	lsl	x22, x8, #2
	str	w2, [x1]
	ldr	w0, [x0, #4]
	add	x21, x1, #12
	ldr	w3, [x1, #4]
	mov	x1, x22
	mov	x2, x21
	bl	_xgbe_dma_alloc_node
	str	w0, [x20, #16]
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w1, [x20, #4]
	mov	x0, x22
	bl	_xgbe_alloc_node
	str	w0, [x20, #8]
	cbz	w0, LBB0_5
; %bb.3:
	mov	x6, x0
Lloh0:
	adrp	x8, _drv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19]
	ldr	w4, [x20, #16]
	ldr	w7, [x20, #4]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x5, x21
	bl	_netif_dbg
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rdesc=%p, rdesc_dma=%pad, rdata=%p, node=%d\n"

	.no_dead_strip	_xgbe_init_ring
.subsections_via_symbols
