	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macvtap_skb_to_vnet_hdr
_macvtap_skb_to_vnet_hdr:               ## @macvtap_skb_to_vnet_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r14, %rdi
	callq	_skb_is_gso
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_skb_headlen
	movl	%eax, 24(%r12)
	movl	4(%r15), %eax
	movl	%eax, 20(%r12)
	movl	(%r15), %eax
	movq	_SKB_GSO_TCPV4@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_VIRTIO_NET_HDR_GSO_TCPV4@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_11:
	movq	_VIRTIO_NET_HDR_GSO_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	jmp	LBB0_12
LBB0_4:
	movq	_SKB_GSO_TCPV6@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_VIRTIO_NET_HDR_GSO_TCPV6@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_6:
	movq	_SKB_GSO_UDP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_VIRTIO_NET_HDR_GSO_UDP@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r12)
LBB0_9:
	movq	_SKB_GSO_TCP_ECN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.10:
	movq	_VIRTIO_NET_HDR_GSO_ECN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r12)
LBB0_12:
	movq	(%r14), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	_VIRTIO_NET_HDR_F_NEEDS_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	16(%r14), %rbx
	movq	%r14, %rdi
	callq	_skb_headroom
	subq	%rax, %rbx
	movq	%rbx, 8(%r12)
	movl	8(%r14), %eax
	movl	%eax, 4(%r12)
	jmp	LBB0_16
LBB0_14:
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	_VIRTIO_NET_HDR_F_DATA_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_16:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	callq	_BUG
	movl	(%r15), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SKB_GSO_TCPV4,4,2              ## @SKB_GSO_TCPV4
	.comm	_VIRTIO_NET_HDR_GSO_TCPV4,4,2   ## @VIRTIO_NET_HDR_GSO_TCPV4
	.comm	_SKB_GSO_TCPV6,4,2              ## @SKB_GSO_TCPV6
	.comm	_VIRTIO_NET_HDR_GSO_TCPV6,4,2   ## @VIRTIO_NET_HDR_GSO_TCPV6
	.comm	_SKB_GSO_UDP,4,2                ## @SKB_GSO_UDP
	.comm	_VIRTIO_NET_HDR_GSO_UDP,4,2     ## @VIRTIO_NET_HDR_GSO_UDP
	.comm	_SKB_GSO_TCP_ECN,4,2            ## @SKB_GSO_TCP_ECN
	.comm	_VIRTIO_NET_HDR_GSO_ECN,4,2     ## @VIRTIO_NET_HDR_GSO_ECN
	.comm	_VIRTIO_NET_HDR_GSO_NONE,4,2    ## @VIRTIO_NET_HDR_GSO_NONE
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_VIRTIO_NET_HDR_F_NEEDS_CSUM,4,2 ## @VIRTIO_NET_HDR_F_NEEDS_CSUM
	.comm	_CHECKSUM_UNNECESSARY,8,3       ## @CHECKSUM_UNNECESSARY
	.comm	_VIRTIO_NET_HDR_F_DATA_VALID,4,2 ## @VIRTIO_NET_HDR_F_DATA_VALID
	.no_dead_strip	_macvtap_skb_to_vnet_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macvtap_skb_to_vnet_hdr
_macvtap_skb_to_vnet_hdr:               ; @macvtap_skb_to_vnet_hdr
	.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
	mov	x0, x1
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x20
	bl	_skb_is_gso
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_skb_shinfo
	mov	x21, x0
	mov	x0, x20
	bl	_skb_headlen
	ldp	w8, w9, [x21]
	st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EOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
Lloh21:
	adrp	x8, _VIRTIO_NET_HDR_GSO_ECN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VIRTIO_NET_HDR_GSO_ECN@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
LBB0_11:
	str	w8, [x19, #16]
LBB0_12:
	ldr	x8, [x20]
Lloh24:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
Lloh27:
	adrp	x8, _VIRTIO_NET_HDR_F_NEEDS_CSUM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VIRTIO_NET_HDR_F_NEEDS_CSUM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x21, [x20, #16]
	mov	x0, x20
	bl	_skb_headroom
	sub	x8, x21, x0
	str	x8, [x19, #8]
	ldr	w8, [x20, #8]
	str	w8, [x19, #4]
	b	LBB0_16
LBB0_14:
Lloh30:
	adrp	x9, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
Lloh33:
	adrp	x8, _VIRTIO_NET_HDR_F_DATA_VALID@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VIRTIO_NET_HDR_F_DATA_VALID@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_16:
	mov	w0, #0
	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
LBB0_17:
	bl	_BUG
	ldr	w8, [x21]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_SKB_GSO_TCPV4,4,2              ; @SKB_GSO_TCPV4
	.comm	_VIRTIO_NET_HDR_GSO_TCPV4,4,2   ; @VIRTIO_NET_HDR_GSO_TCPV4
	.comm	_SKB_GSO_TCPV6,4,2              ; @SKB_GSO_TCPV6
	.comm	_VIRTIO_NET_HDR_GSO_TCPV6,4,2   ; @VIRTIO_NET_HDR_GSO_TCPV6
	.comm	_SKB_GSO_UDP,4,2                ; @SKB_GSO_UDP
	.comm	_VIRTIO_NET_HDR_GSO_UDP,4,2     ; @VIRTIO_NET_HDR_GSO_UDP
	.comm	_SKB_GSO_TCP_ECN,4,2            ; @SKB_GSO_TCP_ECN
	.comm	_VIRTIO_NET_HDR_GSO_ECN,4,2     ; @VIRTIO_NET_HDR_GSO_ECN
	.comm	_VIRTIO_NET_HDR_GSO_NONE,4,2    ; @VIRTIO_NET_HDR_GSO_NONE
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_VIRTIO_NET_HDR_F_NEEDS_CSUM,4,2 ; @VIRTIO_NET_HDR_F_NEEDS_CSUM
	.comm	_CHECKSUM_UNNECESSARY,8,3       ; @CHECKSUM_UNNECESSARY
	.comm	_VIRTIO_NET_HDR_F_DATA_VALID,4,2 ; @VIRTIO_NET_HDR_F_DATA_VALID
	.no_dead_strip	_macvtap_skb_to_vnet_hdr
.subsections_via_symbols
