	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pch_gbe_setup_tx_resources     ## -- Begin function pch_gbe_setup_tx_resources
	.p2align	4, 0x90
_pch_gbe_setup_tx_resources:            ## @pch_gbe_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movl	(%rsi), %edi
	shll	$2, %edi
	callq	_vzalloc
	movl	%eax, 36(%r13)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r13), %esi
	shll	$2, %esi
	movl	%esi, 4(%r13)
	leaq	24(%r13), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_dma_alloc_coherent
	movl	%eax, 32(%r13)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r13)
	xorl	%r15d, %r15d
	cmpl	$0, (%r13)
	jle	LBB0_5
## %bb.6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_DSC_INIT16@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rax
	movq	%rax, 32(%rsp)
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	%ebx, %edi
	callq	_PCH_GBE_TX_DESC
	movl	(%r12), %ecx
	movl	%ecx, (%rax)
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_7
## %bb.8:
	movl	32(%r13), %eax
	movq	8(%r13), %r9
	movq	16(%r13), %r8
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_3:
	movl	36(%r13), %edi
	callq	_vfree
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_5:
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
LBB0_9:
	movl	(%r14), %edi
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_dbg
LBB0_10:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DSC_INIT16,4,2                 ## @DSC_INIT16
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx_ring->desc = 0x%p  tx_ring->dma = 0x%08llx next_to_clean = 0x%08x  next_to_use = 0x%08x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pch_gbe_setup_tx_resources     ; -- Begin function pch_gbe_setup_tx_resources
	.p2align	2
_pch_gbe_setup_tx_resources:            ; @pch_gbe_setup_tx_resources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	w8, [x1]
	lsl	w0, w8, #2
	bl	_vzalloc
	str	w0, [x20, #36]
	cbz	w0, LBB0_7
; %bb.1:
	ldr	w8, [x20]
	lsl	w1, w8, #2
	str	w1, [x20, #4]
	add	x21, x20, #24
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x2, x21
	bl	_dma_alloc_coherent
	str	w0, [x20, #32]
	cbz	w0, LBB0_6
; %bb.2:
	stp	xzr, xzr, [x20, #8]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	w22, #0
Lloh3:
	adrp	x23, _DSC_INIT16@GOTPAGE
Lloh4:
	ldr	x23, [x23, _DSC_INIT16@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x20]
	stp	q0, q1, [sp]
	ldr	x8, [x20, #32]
	str	x8, [sp, #32]
	mov	x0, sp
	mov	x1, x22
	bl	_PCH_GBE_TX_DESC
	ldr	w8, [x23]
	str	w8, [x0]
	add	w22, w22, #1
	ldr	w8, [x20]
	cmp	w22, w8
	b.lt	LBB0_4
; %bb.5:
	ldr	w2, [x20, #32]
	ldp	x5, x4, [x20, #8]
	b	LBB0_9
LBB0_6:
	ldr	w0, [x20, #36]
	bl	_vfree
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	mov	x2, x0
	mov	x5, #0
	mov	x4, #0
LBB0_9:
	ldr	w0, [x19]
	ldr	x3, [x21]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DSC_INIT16,4,2                 ; @DSC_INIT16
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx_ring->desc = 0x%p  tx_ring->dma = 0x%08llx next_to_clean = 0x%08x  next_to_use = 0x%08x\n"

.subsections_via_symbols
