	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_inner_l3_l4_type
_get_inner_l3_l4_type:                  ## @get_inner_l3_l4_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	(%rsi), %rax
	movl	(%rax), %eax
	cmpl	$6, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$4, %eax
	jne	LBB0_8
## %bb.2:
	movq	_TX_OFFLOAD_CSUM@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_3
## %bb.4:
	movq	_IPV4_PKT_NO_CHKSUM_OFFLOAD@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_IPV6_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r8)
	movq	(%rsi), %rsi
	movq	(%rsi), %rax
	addq	$64, %rsi
	movq	%rax, (%r9)
	cmpq	(%rdx), %rsi
	je	LBB0_9
## %bb.7:
	subq	(%rdi), %rsi
	shrq	$3, %rsi
	leaq	-4(%rbp), %rcx
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r9, %rdx
	callq	_ipv6_skip_exthdr
	jmp	LBB0_9
LBB0_8:
	movq	_L3TYPE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r8)
	movq	$0, (%r9)
	jmp	LBB0_9
LBB0_3:
	movq	_IPV4_PKT_WITH_CHKSUM_OFFLOAD@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%r8)
	movq	(%rsi), %rax
	movq	8(%rax), %rax
	movq	%rax, (%r9)
LBB0_9:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_OFFLOAD_CSUM,4,2            ## @TX_OFFLOAD_CSUM
	.comm	_IPV4_PKT_NO_CHKSUM_OFFLOAD,4,2 ## @IPV4_PKT_NO_CHKSUM_OFFLOAD
	.comm	_IPV4_PKT_WITH_CHKSUM_OFFLOAD,4,2 ## @IPV4_PKT_WITH_CHKSUM_OFFLOAD
	.comm	_IPV6_PKT,4,2                   ## @IPV6_PKT
	.comm	_L3TYPE_UNKNOWN,4,2             ## @L3TYPE_UNKNOWN
	.no_dead_strip	_get_inner_l3_l4_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_inner_l3_l4_type
_get_inner_l3_l4_type:                  ; @get_inner_l3_l4_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x1]
	ldr	w8, [x8]
	cmp	w8, #6
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #4
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _TX_OFFLOAD_CSUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_OFFLOAD_CSUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IPV4_PKT_NO_CHKSUM_OFFLOAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPV4_PKT_NO_CHKSUM_OFFLOAD@GOTPAGEOFF]
Lloh5:
	adrp	x10, _IPV4_PKT_WITH_CHKSUM_OFFLOAD@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IPV4_PKT_WITH_CHKSUM_OFFLOAD@GOTPAGEOFF]
	cmp	w8, w3
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x4]
	ldr	x8, [x1]
	ldr	x8, [x8, #8]
	str	x8, [x5]
	b	LBB0_6
LBB0_3:
Lloh7:
	adrp	x8, _IPV6_PKT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IPV6_PKT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x4]
	ldr	x8, [x1]
	ldr	x9, [x8], #64
	str	x9, [x5]
	ldr	x9, [x2]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:
	ldr	x9, [x0]
	sub	x8, x8, x9
	lsr	x1, x8, #3
	sub	x3, x29, #4
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x5
	bl	_ipv6_skip_exthdr
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _L3TYPE_UNKNOWN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _L3TYPE_UNKNOWN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x4]
	str	xzr, [x5]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_OFFLOAD_CSUM,4,2            ; @TX_OFFLOAD_CSUM
	.comm	_IPV4_PKT_NO_CHKSUM_OFFLOAD,4,2 ; @IPV4_PKT_NO_CHKSUM_OFFLOAD
	.comm	_IPV4_PKT_WITH_CHKSUM_OFFLOAD,4,2 ; @IPV4_PKT_WITH_CHKSUM_OFFLOAD
	.comm	_IPV6_PKT,4,2                   ; @IPV6_PKT
	.comm	_L3TYPE_UNKNOWN,4,2             ; @L3TYPE_UNKNOWN
	.no_dead_strip	_get_inner_l3_l4_type
.subsections_via_symbols
