	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_rx_descs_alloc
_emac_rx_descs_alloc:                   ## @emac_rx_descs_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	96(%rdi), %rax
	movl	(%rax), %edi
	callq	_dev_to_node
	movslq	8(%rbx), %rdi
	shlq	$2, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	callq	_kzalloc_node
	movl	%eax, 48(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	movl	8(%rbx), %eax
	imull	60(%rbx), %edi
	shll	$2, %edi
	movl	%edi, 56(%rbx)
	imull	4(%rbx), %eax
	shll	$2, %eax
	movl	%eax, 12(%rbx)
	movq	104(%rbx), %rax
	movq	120(%rbx), %rcx
	addq	%rax, %rcx
	movq	%rcx, 88(%rbx)
	addq	112(%rbx), %rax
	movq	%rax, 80(%rbx)
	movl	$8, %esi
	callq	_ALIGN
	addq	104(%rbx), %rax
	movq	%rax, 104(%rbx)
	movdqu	112(%rbx), %xmm0
	movq	%rax, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 32(%rbx)
	movl	12(%rbx), %edi
	movl	$8, %esi
	callq	_ALIGN
	addq	%rax, 104(%rbx)
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 16(%rbx)
	movdqu	%xmm0, 64(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_emac_rx_descs_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_rx_descs_alloc
_emac_rx_descs_alloc:                   ; @emac_rx_descs_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #96]
	ldr	w0, [x8]
	bl	_dev_to_node
	mov	x2, x0
	ldrsw	x8, [x19, #8]
	lsl	x0, x8, #2
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc_node
	str	w0, [x19, #48]
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x19, #60]
	ldp	w9, w10, [x19]
	mul	w8, w9, w8
	ldr	w9, [x19, #8]
	mul	w9, w9, w10
	lsl	w9, w9, #2
	str	w9, [x19, #12]
	ldp	x11, x9, [x19, #112]
	ldr	x10, [x19, #104]
	add	x9, x10, x9
	add	x10, x11, x10
	lsl	w0, w8, #2
	str	w0, [x19, #56]
	stp	x10, x9, [x19, #80]
	mov	w1, #8
	bl	_ALIGN
	ldr	x8, [x19, #104]
	add	x8, x8, x0
	str	x8, [x19, #104]
	ldr	q0, [x19, #112]
	dup.2d	v1, x8
	add.2d	v0, v0, v1
	str	q0, [x19, #32]
	ldr	w0, [x19, #12]
	mov	w1, #8
	bl	_ALIGN
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #104]
	add	x8, x9, x8
	str	x8, [x19, #104]
	stp	xzr, xzr, [x19, #16]
	stp	xzr, xzr, [x19, #64]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_emac_rx_descs_alloc
.subsections_via_symbols
