	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_setup_tx_resources      ## -- Begin function e1000e_setup_tx_resources
	.p2align	4, 0x90
_e1000e_setup_tx_resources:             ## @e1000e_setup_tx_resources
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r15
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movl	(%rdi), %edi
	shll	$2, %edi
	callq	_vzalloc
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %edi
	shll	$2, %edi
	movl	%edi, 4(%rbx)
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_ALIGN
	movl	%eax, 4(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_e1000_alloc_ring_dma
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	%eax, %r14d
	movl	8(%rbx), %r12d
LBB0_3:
	movl	%r12d, %edi
	callq	_vfree
	leaq	L_.str(%rip), %rdi
	callq	_e_err
	jmp	LBB0_4
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate memory for the transmit descriptor ring\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_setup_tx_resources      ; -- Begin function e1000e_setup_tx_resources
	.p2align	2
_e1000e_setup_tx_resources:             ; @e1000e_setup_tx_resources
	.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
	mov	x19, x0
	ldr	x20, [x0, #32]
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w8, [x0]
	lsl	w0, w8, #2
	bl	_vzalloc
	str	w0, [x19, #8]
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x19]
	lsl	w0, w8, #2
	str	w0, [x19, #4]
	mov	w1, #4096
	bl	_ALIGN
	str	w0, [x19, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_e1000_alloc_ring_dma
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x19, #8]
	b	LBB0_4
LBB0_3:
	neg	w20, w21
LBB0_4:
	bl	_vfree
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_err
	b	LBB0_6
LBB0_5:
	stp	xzr, xzr, [x19, #16]
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate memory for the transmit descriptor ring\n"

.subsections_via_symbols
