	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_rx_sg_append
_emac_rx_sg_append:                     ## @emac_rx_sg_append
	.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, %ebx
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	setne	%dil
	callq	_likely
	movl	$-1, %r15d
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	8(%r14), %rax
	movq	32(%r14), %rcx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %rbx
	movslq	(%rcx,%rbx,4), %r13
	movslq	(%rax), %rax
	addq	%r13, %rax
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	incl	24(%r14)
	movq	8(%r14), %rdi
	callq	_dev_kfree_skb
	movq	$0, 8(%r14)
	jmp	LBB0_4
LBB0_3:
	movq	8(%r14), %rdi
	callq	_skb_tail_pointer
	movq	16(%r14), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	%r13d, %edx
	callq	_memcpy
	movq	8(%r14), %rdi
	movl	%r13d, %esi
	callq	_skb_put
	xorl	%r15d, %r15d
	movl	%r13d, %r12d
LBB0_4:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_emac_recycle_rx_skb
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NET_IP_ALIGN,8,3               ## @NET_IP_ALIGN
	.no_dead_strip	_emac_rx_sg_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_rx_sg_append
_emac_rx_sg_append:                     ; @emac_rx_sg_append
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #32]
	ldrsw	x21, [x8, w19, sxtw #2]
Lloh0:
	adrp	x8, _NET_IP_ALIGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NET_IP_ALIGN@GOTPAGEOFF]
	ldp	x10, x9, [x20]
	ldrsw	x9, [x9]
Lloh2:
	ldr	x8, [x8]
	add	x9, x9, x21
	add	x8, x8, x9
	cmp	x8, x10
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
	ldr	x0, [x20, #8]
	bl	_dev_kfree_skb
	mov	w21, #0
	str	xzr, [x20, #8]
	mov	w22, #-1
	b	LBB0_5
LBB0_3:
	mov	w21, #0
	mov	w22, #-1
	b	LBB0_5
LBB0_4:
	sxtw	x22, w19
	ldr	x0, [x20, #8]
	bl	_skb_tail_pointer
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w1, [x8]
	mov	x2, x21
	bl	_memcpy
	ldr	x0, [x20, #8]
	mov	x1, x21
	bl	_skb_put
	mov	w22, #0
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_emac_recycle_rx_skb
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NET_IP_ALIGN,8,3               ; @NET_IP_ALIGN
	.no_dead_strip	_emac_rx_sg_append
.subsections_via_symbols
