	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_alloc_txq_buffers
_fec_enet_alloc_txq_buffers:            ## @fec_enet_alloc_txq_buffers
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%rax), %rax
	movl	%r14d, %ecx
	movq	(%rax,%rcx,8), %r12
	movq	8(%r12), %r13
	cmpl	$0, (%r12)
	je	LBB0_6
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_fec_enet_get_nextdesc
	movq	%rax, %r13
	incq	%rbx
	movl	(%r12), %eax
	cmpq	%rax, %rbx
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_FEC_ENET_TX_FRSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_kmalloc
	movq	16(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_cpu_to_fec16
	movl	%eax, (%r13)
	xorl	%edi, %edi
	callq	_cpu_to_fec32
	movq	%rax, 8(%r13)
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BD_ENET_TX_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_fec32
	movq	%rax, (%r13)
	jmp	LBB0_5
LBB0_6:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_fec_enet_get_prevdesc
	movq	%rax, %rbx
	movq	_BD_SC_WRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_fec16
	orl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_fec_enet_free_buffers
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FEC_ENET_TX_FRSIZE,4,2         ## @FEC_ENET_TX_FRSIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_BD_ENET_TX_INT,4,2             ## @BD_ENET_TX_INT
	.comm	_BD_SC_WRAP,4,2                 ## @BD_SC_WRAP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_fec_enet_alloc_txq_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_alloc_txq_buffers
_fec_enet_alloc_txq_buffers:            ; @fec_enet_alloc_txq_buffers
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x0, #8]
	ldr	x20, [x8, w20, uxtw #3]
	ldr	x22, [x20, #8]
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x21, x0
	mov	x23, #0
Lloh0:
	adrp	x24, _FEC_ENET_TX_FRSIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FEC_ENET_TX_FRSIZE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	adrp	x26, _BD_ENET_TX_INT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _BD_ENET_TX_INT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_fec_enet_get_nextdesc
	mov	x22, x0
	add	x23, x23, #1
	ldr	w8, [x20]
	cmp	x23, x8
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	w1, [x25]
	bl	_kmalloc
	ldr	x8, [x20, #16]
	str	w0, [x8, x23, lsl #2]
	cbz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	bl	_cpu_to_fec16
	str	w0, [x22]
	mov	w0, #0
	bl	_cpu_to_fec32
	str	x0, [x22, #8]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x26]
	bl	_cpu_to_fec32
	str	x0, [x22]
	b	LBB0_2
LBB0_6:
	mov	x0, x22
	mov	x1, x20
	bl	_fec_enet_get_prevdesc
	mov	x19, x0
Lloh6:
	adrp	x8, _BD_SC_WRAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BD_SC_WRAP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_fec16
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_fec_enet_free_buffers
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FEC_ENET_TX_FRSIZE,4,2         ; @FEC_ENET_TX_FRSIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_BD_ENET_TX_INT,4,2             ; @BD_ENET_TX_INT
	.comm	_BD_SC_WRAP,4,2                 ; @BD_SC_WRAP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_fec_enet_alloc_txq_buffers
.subsections_via_symbols
