	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_create_skb
_xlgmac_create_skb:                     ## @xlgmac_create_skb
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rdi, %r12
	movl	40(%rdx), %esi
	movq	%rax, %rdi
	callq	_napi_alloc_skb
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%r12), %edi
	movl	56(%rbx), %esi
	movl	40(%rbx), %ecx
	movl	52(%rbx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_dma_sync_single_range_for_cpu
	movl	48(%rbx), %edi
	callq	_page_address
	movslq	44(%rbx), %rcx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx,4), %r14
	movl	(%rbx), %esi
	movl	40(%rbx), %edi
	testl	%esi, %esi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	cmovel	%r12d, %esi
	callq	_min
	movl	%eax, %r13d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_skb_copy_to_linear_data
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	cmpl	%r12d, %r13d
	je	LBB0_3
## %bb.2:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	subl	%r13d, %r12d
	movl	(%r14), %edi
	movl	32(%rbx), %esi
	movl	24(%rbx), %ecx
	movl	28(%rbx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_dma_sync_single_range_for_cpu
	movq	%r15, %rdi
	callq	_skb_shinfo
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movl	16(%rbx), %ecx
	movl	24(%rbx), %r9d
	movq	%r15, %rdi
	movl	%r12d, %r8d
	callq	_skb_add_rx_frag
	movq	$0, 8(%rbx)
LBB0_3:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_xlgmac_create_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_create_skb
_xlgmac_create_skb:                     ; @xlgmac_create_skb
	.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	x21, x3
	mov	x19, x2
	mov	x8, x1
	mov	x22, x0
	ldr	w1, [x2, #40]
	mov	x0, x8
	bl	_napi_alloc_skb
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x22]
	ldp	w2, w1, [x19, #52]
	ldr	w3, [x19, #40]
Lloh0:
	adrp	x25, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w4, [x25]
	bl	_dma_sync_single_range_for_cpu
	ldr	w0, [x19, #48]
	bl	_page_address
	ldp	w8, w9, [x19, #40]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x24, x0, x9, lsl #2
	ldr	w9, [x19]
	cmp	w9, #0
	csel	w1, w21, w9, eq
	mov	x0, x8
	bl	_min
	mov	x23, x0
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_skb_copy_to_linear_data
	mov	x0, x20
	mov	x1, x23
	bl	_skb_put
	cmp	w23, w21
	b.eq	LBB0_3
; %bb.2:
	sub	w21, w21, w23
	ldr	w0, [x22]
	ldp	w2, w1, [x19, #28]
	ldr	w3, [x19, #24]
	ldr	w4, [x25]
	bl	_dma_sync_single_range_for_cpu
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w1, [x0]
	ldr	x2, [x19, #8]
	ldr	w3, [x19, #16]
	ldr	w5, [x19, #24]
	mov	x0, x20
	mov	x4, x21
	bl	_skb_add_rx_frag
	str	xzr, [x19, #8]
LBB0_3:
	mov	x0, x20
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_xlgmac_create_skb
.subsections_via_symbols
