	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_setup_tx_descriptors      ## -- Begin function i40e_setup_tx_descriptors
	.p2align	4, 0x90
_i40e_setup_tx_descriptors:             ## @i40e_setup_tx_descriptors
	.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	56(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_WARN_ON
	movl	(%rbx), %edi
	shll	$2, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_kzalloc
	movq	%rax, 8(%rbx)
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	48(%rbx), %rdi
	callq	_u64_stats_init
	movl	(%rbx), %eax
	leal	4(,%rax,4), %edi
	movl	%edi, 4(%rbx)
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_ALIGN
	movl	%eax, 4(%rbx)
	leaq	44(%rbx), %rdx
	movl	(%r12), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_alloc_coherent
	movl	%eax, 40(%rbx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.9:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movl	$-1, 16(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_3:
	xorl	%edi, %edi
	jmp	LBB0_6
LBB0_5:
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movq	8(%rbx), %rdi
LBB0_6:
	callq	_kfree
	movq	$0, 8(%rbx)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate memory for the Tx descriptor ring, size=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_setup_tx_descriptors      ; -- Begin function i40e_setup_tx_descriptors
	.p2align	2
_i40e_setup_tx_descriptors:             ; @i40e_setup_tx_descriptors
	.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
	ldr	x20, [x0, #56]
	cbz	x20, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_WARN_ON
	ldr	w8, [x19]
	lsl	w0, w8, #2
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.2:
	add	x0, x19, #48
	bl	_u64_stats_init
	ldr	w8, [x19]
	lsl	w8, w8, #2
	add	w0, w8, #4
	str	w0, [x19, #4]
	mov	w1, #4096
	bl	_ALIGN
	mov	x1, x0
	str	w0, [x19, #4]
	add	x2, x19, #44
	ldr	w3, [x21]
	mov	x0, x20
	bl	_dma_alloc_coherent
	str	w0, [x19, #40]
	cbz	w0, LBB0_4
; %bb.3:
	mov	w0, #0
	stp	xzr, xzr, [x19, #24]
	mov	w8, #-1
	str	w8, [x19, #16]
	b	LBB0_7
LBB0_4:
	ldr	w2, [x19, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	x0, [x19, #8]
LBB0_5:
	bl	_kfree
	str	xzr, [x19, #8]
LBB0_6:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate memory for the Tx descriptor ring, size=%d\n"

.subsections_via_symbols
