	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_tx_resources
_alloc_tx_resources:                    ## @alloc_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_SGE_CMDQ_N@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_7
## %bb.1:
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$24, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r15
	leaq	(%r15,%r13), %rbx
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -24(%r15,%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, -16(%r15,%r13)
	movl	$0, -12(%r15,%r13)
	leaq	4(%r15,%r13), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15,%r13)
	movups	%xmm0, 24(%r15,%r13)
	callq	_spin_lock_init
	movl	-16(%r15,%r13), %esi
	shll	$2, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_pci_alloc_consistent
	movl	%eax, -4(%r15,%r13)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-16(%r15,%r13), %edi
	shll	$2, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movl	%eax, -8(%r15,%r13)
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	_SGE_CMDQ_N@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$64, %r13
	cmpq	%rax, %r14
	jb	LBB0_3
## %bb.6:
	movq	(%r12), %rax
LBB0_7:
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	incl	%ecx
	imull	(%rax), %ecx
	movq	8(%r12), %rax
	movl	%ecx, 12(%rax)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	%r12, %rdi
	callq	_free_tx_resources
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SGE_CMDQ_N,4,2                 ## @SGE_CMDQ_N
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alloc_tx_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_tx_resources
_alloc_tx_resources:                    ; @alloc_tx_resources
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _SGE_CMDQ_N@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SGE_CMDQ_N@GOTPAGEOFF]
	ldr	w9, [x22]
	cbz	w9, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x23, #0
	ldr	x21, [x8, #8]
	mov	w24, #32
	movi.2s	v8, #1
Lloh2:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x26, x8, x24
	stur	d8, [x26, #-32]
	ldr	x8, [x20]
	ldr	w8, [x8, x23, lsl #2]
	stp	w8, wzr, [x26, #-24]
	sub	x0, x26, #4
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x26]
	bl	_spin_lock_init
	ldur	w8, [x26, #-24]
	lsl	w1, w8, #2
	sub	x2, x26, #8
	mov	x0, x21
	bl	_pci_alloc_consistent
	stur	w0, [x26, #-12]
	cbz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	w8, [x26, #-24]
	lsl	w0, w8, #2
	ldr	w1, [x25]
	bl	_kzalloc
	stur	w0, [x26, #-16]
	cbz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	ldr	w8, [x22]
	add	x24, x24, #64
	cmp	x23, x8
	b.lo	LBB0_2
; %bb.5:
	ldr	x8, [x19]
LBB0_6:
	mov	w0, #0
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _MAX_SKB_FRAGS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	madd	w8, w8, w9, w8
	ldr	x9, [x19, #8]
	str	w8, [x9, #12]
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_free_tx_resources
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SGE_CMDQ_N,4,2                 ; @SGE_CMDQ_N
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alloc_tx_resources
.subsections_via_symbols
