	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_alloc_rings
_xlgmac_alloc_rings:                    ## @xlgmac_alloc_rings
	.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
	cmpl	$0, (%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r13
	movq	16(%rdi), %r14
	addq	$8, %r14
	xorl	%r12d, %r12d
	movq	_drv@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movl	4(%r13), %edx
	movl	-4(%r14), %r8d
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rcx
	callq	_netif_dbg
	movl	(%r14), %esi
	movl	12(%r13), %edx
	movq	%r13, %rdi
	callq	_xlgmac_init_ring
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	movl	4(%r13), %edx
	movl	-4(%r14), %r8d
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rcx
	callq	_netif_dbg
	movl	-8(%r14), %esi
	movl	8(%r13), %edx
	movq	%r13, %rdi
	callq	_xlgmac_init_ring
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	addq	$12, %r14
	cmpl	(%r13), %r12d
	jb	LBB0_2
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_4:
	movl	4(%r13), %edi
	callq	_netdev_alert
	movq	%r13, %rdi
	callq	_xlgmac_free_rings
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s - Tx ring:\n"

L_.str.1:                               ## @.str.1
	.asciz	"error initializing Tx ring"

L_.str.2:                               ## @.str.2
	.asciz	"%s - Rx ring:\n"

L_.str.3:                               ## @.str.3
	.asciz	"error initializing Rx ring\n"

	.no_dead_strip	_xlgmac_alloc_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_alloc_rings
_xlgmac_alloc_rings:                    ; @xlgmac_alloc_rings
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	w24, #0
	ldr	x8, [x0, #16]
	add	x25, x8, #4
Lloh0:
	adrp	x26, _drv@GOTPAGE
Lloh1:
	ldr	x26, [x26, _drv@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x20, l_.str.1@PAGE
Lloh5:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh8:
	adrp	x27, l_.str.3@PAGE
Lloh9:
	add	x27, x27, l_.str.3@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	ldr	w2, [x19, #4]
	ldr	w4, [x25]
	mov	x0, x19
	mov	x3, x21
	bl	_netif_dbg
	ldr	w1, [x25, #4]
	ldr	w2, [x19, #12]
	mov	x0, x19
	bl	_xlgmac_init_ring
	cbnz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x26]
	ldr	w2, [x19, #4]
	ldr	w4, [x25]
	mov	x0, x19
	mov	x3, x22
	bl	_netif_dbg
	ldur	w1, [x25, #-4]
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_xlgmac_init_ring
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, #1
	ldr	w8, [x19]
	add	x25, x25, #12
	cmp	w24, w8
	b.lo	LBB0_2
LBB0_5:
	mov	w23, #0
	b	LBB0_9
LBB0_6:
	mov	x23, x0
	b	LBB0_8
LBB0_7:
	mov	x23, x0
	mov	x20, x27
LBB0_8:
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_netdev_alert
	mov	x0, x19
	bl	_xlgmac_free_rings
LBB0_9:
	mov	x0, x23
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s - Tx ring:\n"

l_.str.1:                               ; @.str.1
	.asciz	"error initializing Tx ring"

l_.str.2:                               ; @.str.2
	.asciz	"%s - Rx ring:\n"

l_.str.3:                               ; @.str.3
	.asciz	"error initializing Rx ring\n"

	.no_dead_strip	_xlgmac_alloc_rings
.subsections_via_symbols
