	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_hdr_data
_build_hdr_data:                        ## @build_hdr_data
	.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, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movl	%edi, %r12d
	movq	%rsi, %rdi
	callq	_skb_vlan_tagged
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_skb_vlan_tag_present
LBB0_2:
	movl	$4, (%r15)
	movq	(%r13), %rbx
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	jne	LBB0_7
## %bb.3:
	movq	%r13, %rdi
	callq	_ip_hdr
	movl	(%rax), %eax
	shll	$2, %eax
	movl	%eax, 4(%r15)
	movq	%r13, %rdi
	callq	_ip_hdr
	movq	8(%rax), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.5:
	movq	%r13, %rdi
	callq	_ip_hdr
	movq	8(%rax), %rcx
	jmp	LBB0_6
LBB0_7:
	movq	(%r13), %rbx
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	jne	LBB0_10
## %bb.8:
	movl	$4, 4(%r15)
	movq	%r13, %rdi
	callq	_ipv6_hdr
	movq	(%rax), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_4:
	movq	%r13, %rdi
	callq	_tcp_hdrlen
	jmp	LBB0_12
LBB0_10:
	movq	(%r13), %rbx
	movq	_ETH_P_ARP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	jne	LBB0_13
## %bb.11:
	movl	8(%r13), %edi
	callq	_arp_hdr_len
	movl	%eax, 4(%r15)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_9:
	movq	%r13, %rdi
	callq	_ipv6_hdr
	movq	(%rax), %rcx
LBB0_6:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rdx
	movl	$4, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_13
LBB0_12:
	movl	%eax, 8(%r15)
LBB0_13:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$120, %edx
	callq	_memset
	testb	$64, %r12b
	jne	LBB0_14
## %bb.15:
	testb	$32, %r12b
	jne	LBB0_16
LBB0_17:
	testb	$16, %r12b
	je	LBB0_19
LBB0_18:
	movq	%r13, %rdi
	callq	_skb_transport_header
	movslq	%ebx, %rbx
	leaq	(%r14,%rbx,4), %rdi
	movl	8(%r15), %edx
	movq	%rax, %rsi
	callq	_memcpy
	addl	8(%r15), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r13, %rdi
	callq	_skb_mac_header
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_memcpy
	movl	(%r15), %ebx
	testb	$32, %r12b
	je	LBB0_17
LBB0_16:
	movq	%r13, %rdi
	callq	_skb_network_header
	movslq	%ebx, %rbx
	leaq	(%r14,%rbx,4), %rdi
	movl	4(%r15), %edx
	movq	%rax, %rsi
	callq	_memcpy
	addl	4(%r15), %ebx
	testb	$16, %r12b
	jne	LBB0_18
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.comm	_ETH_P_ARP,4,2                  ## @ETH_P_ARP
	.no_dead_strip	_build_hdr_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_hdr_data
_build_hdr_data:                        ; @build_hdr_data
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_skb_vlan_tagged
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_skb_vlan_tag_present
LBB0_2:
	mov	w8, #4
	str	w8, [x19]
	ldr	x23, [x21]
Lloh0:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	x23, x0
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_ip_hdr
	ldr	w8, [x0]
	lsl	w8, w8, #2
	str	w8, [x19, #4]
	mov	x0, x21
	bl	_ip_hdr
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_ip_hdr
	ldr	x8, [x0, #8]
	b	LBB0_11
LBB0_5:
	ldr	x23, [x21]
Lloh6:
	adrp	x8, _ETH_P_IPV6@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_P_IPV6@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htons
	cmp	x23, x0
	b.ne	LBB0_8
; %bb.6:
	mov	w8, #4
	str	w8, [x19, #4]
	mov	x0, x21
	bl	_ipv6_hdr
	ldr	x8, [x0]
Lloh9:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_7:
	mov	x0, x21
	bl	_tcp_hdrlen
	b	LBB0_13
LBB0_8:
	ldr	x23, [x21]
Lloh12:
	adrp	x8, _ETH_P_ARP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_P_ARP@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_htons
	cmp	x23, x0
	b.ne	LBB0_14
; %bb.9:
	ldr	w0, [x21, #8]
	bl	_arp_hdr_len
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #4]
	b	LBB0_13
LBB0_10:
	mov	x0, x21
	bl	_ipv6_hdr
	ldr	x8, [x0]
LBB0_11:
Lloh15:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	mov	w0, #4
LBB0_13:
	str	w0, [x19, #8]
LBB0_14:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #120
	bl	_memset
	mov	w23, #0
	tbnz	w22, #6, LBB0_19
; %bb.15:
	tbnz	w22, #5, LBB0_20
LBB0_16:
	tbz	w22, #4, LBB0_18
LBB0_17:
	mov	x0, x21
	bl	_skb_transport_header
	mov	x1, x0
	add	x0, x20, w23, sxtw #2
	ldr	w2, [x19, #8]
	bl	_memcpy
	ldr	w8, [x19, #8]
	add	w23, w8, w23
LBB0_18:
	mov	x0, x23
	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_19:
	mov	x0, x21
	bl	_skb_mac_header
	mov	x1, x0
	ldr	w2, [x19]
	mov	x0, x20
	bl	_memcpy
	ldr	w23, [x19]
	tbz	w22, #5, LBB0_16
LBB0_20:
	mov	x0, x21
	bl	_skb_network_header
	mov	x1, x0
	add	x0, x20, w23, sxtw #2
	ldr	w2, [x19, #4]
	bl	_memcpy
	ldr	w8, [x19, #4]
	add	w23, w8, w23
	tbnz	w22, #4, LBB0_17
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.comm	_ETH_P_ARP,4,2                  ; @ETH_P_ARP
	.no_dead_strip	_build_hdr_data
.subsections_via_symbols
