	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmxnet3_parse_and_copy_hdr
_vmxnet3_parse_and_copy_hdr:            ## @vmxnet3_parse_and_copy_hdr
	.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
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	cmpq	$0, 24(%rdx)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_skb_transport_offset
	movl	%eax, (%rbx)
	movq	%r12, %rdi
	callq	_tcp_hdrlen
	movl	%eax, 4(%rbx)
	addl	(%rbx), %eax
	movl	%eax, 8(%rbx)
LBB0_13:
	movq	_VMXNET3_HDR_COPY_SIZE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	seta	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	incl	16(%r14)
	movl	$0, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_2:
	movq	(%r12), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.3:
	movq	%r12, %rdi
	callq	_skb_checksum_start_offset
	movl	%eax, (%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.4:
	movq	%r12, %rdi
	callq	_ip_hdr
	movq	(%rax), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_tcp_hdrlen
	movq	%rax, %rdi
	movl	%edi, 4(%rbx)
	jmp	LBB0_9
LBB0_15:
	movq	8(%r14), %rax
	movslq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	8(%r12), %esi
	movl	8(%rbx), %edx
	callq	_memcpy
	movl	(%r15), %edi
	movl	8(%rbx), %edx
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_netdev_dbg
	movl	$1, %eax
	jmp	LBB0_16
LBB0_10:
	movq	$0, (%rbx)
	movq	_VMXNET3_HDR_COPY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_skb_headlen
	movl	%r13d, %edi
	movl	%eax, %esi
	jmp	LBB0_11
LBB0_6:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movl	$4, 4(%rbx)
	movl	$4, %edi
	jmp	LBB0_9
LBB0_8:
	movl	$0, 4(%rbx)
	xorl	%edi, %edi
LBB0_9:
	addl	(%rbx), %edi
	movl	12(%r12), %esi
                                        ## kill: def $edi killed $edi killed $rdi
LBB0_11:
	callq	_min
	movl	%eax, 8(%rbx)
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_pskb_may_pull
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	je	LBB0_12
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	8(%rbx), %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.comm	_VMXNET3_HDR_COPY_SIZE,4,2      ## @VMXNET3_HDR_COPY_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"copy %u bytes to dataRing[%u]\n"

	.no_dead_strip	_vmxnet3_parse_and_copy_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_parse_and_copy_hdr
_vmxnet3_parse_and_copy_hdr:            ; @vmxnet3_parse_and_copy_hdr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x8, [x2, #24]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x0, x22
	bl	_skb_transport_offset
	str	w0, [x19]
	mov	x0, x22
	bl	_tcp_hdrlen
	ldr	w8, [x19]
	add	w8, w8, w0
	stp	w0, w8, [x19, #4]
LBB0_2:
Lloh0:
	adrp	x9, _VMXNET3_HDR_COPY_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VMXNET3_HDR_COPY_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, hi
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.3:
	mov	w0, #0
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	str	wzr, [x19, #8]
	b	LBB0_16
LBB0_4:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x22
	bl	_skb_checksum_start_offset
	str	w0, [x19]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.6:
	mov	x0, x22
	bl	_ip_hdr
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	mov	x0, x22
	bl	_tcp_hdrlen
	str	w0, [x19, #4]
	b	LBB0_13
LBB0_8:
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x22, #8]
	ldr	w2, [x19, #8]
	bl	_memcpy
	ldr	w0, [x21]
	ldr	w2, [x19, #8]
	ldr	w3, [x20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	mov	w0, #1
	b	LBB0_16
LBB0_9:
	str	xzr, [x19]
Lloh11:
	adrp	x8, _VMXNET3_HDR_COPY_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VMXNET3_HDR_COPY_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_skb_headlen
	mov	x1, x0
	mov	x0, x23
	b	LBB0_14
LBB0_10:
Lloh14:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #4
	str	w0, [x19, #4]
	b	LBB0_13
LBB0_12:
	mov	w0, #0
	str	wzr, [x19, #4]
LBB0_13:
	ldr	w8, [x19]
	add	w0, w0, w8
	ldr	w1, [x22, #12]
LBB0_14:
	bl	_min
	mov	x1, x0
	str	w1, [x19, #8]
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_pskb_may_pull
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_17
; %bb.15:
	mov	w0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldr	w8, [x19, #8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.comm	_VMXNET3_HDR_COPY_SIZE,4,2      ; @VMXNET3_HDR_COPY_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"copy %u bytes to dataRing[%u]\n"

	.no_dead_strip	_vmxnet3_parse_and_copy_hdr
.subsections_via_symbols
