	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_hbh_len
_check_hbh_len:                         ## @check_hbh_len
	.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	%rdi, %r14
	callq	_ipv6_hdr
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_skb_network_header
	movq	%rax, %r15
	movzbl	5(%rbx), %r12d
	leaq	(%rbx,%r12,8), %r13
	addq	$4, %r13
	subq	(%r14), %r13
	addq	$8, %r13
	movq	%r14, %rdi
	callq	_skb_headlen
	cltq
	cmpq	%rax, %r13
	jg	LBB0_17
## %bb.1:
	addq	$4, %rbx
	shlq	$3, %r12
	subl	%r15d, %ebx
	addl	$2, %ebx
	orl	$6, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r13d
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%r13d, %ebx
	subl	%r13d, %r12d
	jle	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rax
	movzbl	1(%r15,%rax), %ecx
	leal	2(%rcx), %r13d
	movzbl	(%r15,%rax), %edx
	cmpb	$-128, %dl
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$-126, %dl
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$-127, %dl
	je	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, %r13d
	jbe	LBB0_14
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$4, %cl
	jne	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %ecx
	andl	$3, %ecx
	cmpl	$2, %ecx
	jne	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	2(%r15,%rax), %edi
	callq	_ntohl
	movl	%eax, %r15d
	movq	_IPV6_MAXPLEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jle	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_ipv6_hdr
	cmpl	$0, (%rax)
	jne	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %rax
	movslq	8(%r14), %rcx
	addq	$-4, %rcx
	cmpq	%rax, %rcx
	jb	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	$4, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_pskb_trim_rcsum
	testl	%eax, %eax
	jne	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_skb_network_header
	movq	%rax, %r15
	jmp	LBB0_14
LBB0_15:
	je	LBB0_16
LBB0_17:
	movl	$-1, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_IPV6_MAXPLEN,4,2               ## @IPV6_MAXPLEN
	.no_dead_strip	_check_hbh_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_hbh_len
_check_hbh_len:                         ; @check_hbh_len
	.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	x19, x0
	bl	_ipv6_hdr
	mov	x21, x0
	add	x22, x0, #4
	mov	x0, x19
	bl	_skb_network_header
	mov	x20, x0
	ldrb	w8, [x21, #5]
	lsl	x23, x8, #3
	ldr	x8, [x19]
	add	x9, x23, x22
	sub	x8, x9, x8
	add	x21, x8, #8
	mov	x0, x19
	bl	_skb_headlen
	cmp	x21, w0, sxtw
	b.gt	LBB0_15
; %bb.1:
	sub	w8, w22, w20
	add	w21, w8, #2
	orr	w22, w23, #0x6
Lloh0:
	adrp	x23, _IPV6_MAXPLEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IPV6_MAXPLEN@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w24, w21
	sub	w22, w22, w24
	cmp	w22, #0
	b.le	LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x20, w21, sxtw
	ldrb	w9, [x8, #1]
	add	w24, w9, #2
	ldrb	w10, [x8]
	cmp	w10, #128
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w10, #130
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w10, #129
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w24, w22
	b.ls	LBB0_3
	b	LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w10, w21, #0x3
	cmp	w9, #4
	ccmp	w10, #2, #0, eq
	b.ne	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w0, [x8, #2]
	bl	_ntohl
	ldr	w8, [x23]
	cmp	w0, w8
	b.le	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	mov	x0, x19
	bl	_ipv6_hdr
	ldr	w8, [x0]
	cbnz	w8, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x19, #8]
	sub	x8, x8, #4
	cmp	x8, w20, sxtw
	b.lo	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w1, w20, #4
	mov	x0, x19
	bl	_pskb_trim_rcsum
	cbnz	w0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_skb_network_header
	mov	x20, x0
	b	LBB0_3
LBB0_14:
	cbz	w22, LBB0_17
LBB0_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:
	mov	w0, #0
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IPV6_MAXPLEN,4,2               ; @IPV6_MAXPLEN
	.no_dead_strip	_check_hbh_len
.subsections_via_symbols
