	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_ipv6_exthdr_check
_be_ipv6_exthdr_check:                  ## @be_ipv6_exthdr_check
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movq	(%rax), %r15
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %r15
	jne	LBB0_5
## %bb.1:
	movq	(%rbx), %rcx
	movq	(%rcx,%r14), %rax
	movq	_NEXTHDR_TCP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_4
## %bb.2:
	movq	_NEXTHDR_UDP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_4
## %bb.3:
	movl	$1, %eax
	cmpl	$255, 8(%r14,%rcx)
	je	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.comm	_NEXTHDR_TCP,8,3                ## @NEXTHDR_TCP
	.comm	_NEXTHDR_UDP,8,3                ## @NEXTHDR_UDP
	.no_dead_strip	_be_ipv6_exthdr_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_ipv6_exthdr_check
_be_ipv6_exthdr_check:                  ; @be_ipv6_exthdr_check
	.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, x0
Lloh0:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x20, [x8]
	ldr	x21, [x9]
Lloh3:
	adrp	x8, _ETH_P_IPV6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_IPV6@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	cmp	x21, x0
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19]
	add	x8, x8, x20
	ldr	x9, [x8]
Lloh6:
	adrp	x10, _NEXTHDR_TCP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NEXTHDR_TCP@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _NEXTHDR_UDP@GOTPAGE
Lloh10:
	ldr	x11, [x11, _NEXTHDR_UDP@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x8, #8]
	cmp	w8, #255
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.comm	_NEXTHDR_TCP,8,3                ; @NEXTHDR_TCP
	.comm	_NEXTHDR_UDP,8,3                ; @NEXTHDR_UDP
	.no_dead_strip	_be_ipv6_exthdr_check
.subsections_via_symbols
