	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_get_l4_protocol
_hns3_get_l4_protocol:                  ## @hns3_get_l4_protocol
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	callq	_skb_network_header
	movq	%rax, %rbx
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_skb_transport_header
	movq	%rax, %r13
	movq	(%r12), %r15
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r15
	jne	LBB0_3
## %bb.1:
	addq	$8, %rbx
	movl	4(%r14), %eax
	movl	%eax, -44(%rbp)
	cmpq	%rbx, %r13
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_5
## %bb.2:
	movslq	8(%r12), %rax
	subq	%rax, %rbx
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ipv6_skip_exthdr
	movl	-44(%rbp), %eax
	jmp	LBB0_5
LBB0_3:
	movq	(%r12), %rbx
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	jne	LBB0_15
## %bb.4:
	movl	4(%r14), %eax
	movl	%eax, -44(%rbp)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_5:
	movl	%eax, (%r15)
	cmpl	$0, 12(%r12)
	je	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	callq	_skb_inner_network_header
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_skb_inner_transport_header
	movl	(%rbx), %ecx
	cmpl	$4, %ecx
	je	LBB0_11
## %bb.8:
	cmpl	$6, %ecx
	jne	LBB0_12
## %bb.9:
	movq	%rbx, %rsi
	addq	$8, %rsi
	movl	4(%rbx), %ecx
	movl	%ecx, -44(%rbp)
	cmpq	%rsi, %rax
	je	LBB0_12
## %bb.10:
	movslq	8(%r12), %rax
	subq	%rax, %rsi
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	callq	_ipv6_skip_exthdr
	jmp	LBB0_12
LBB0_6:
	movl	$0, (%r14)
	jmp	LBB0_13
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_11:
	movl	4(%rbx), %eax
	movl	%eax, -44(%rbp)
LBB0_12:
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hns3_get_l4_protocol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_get_l4_protocol
_hns3_get_l4_protocol:                  ; @hns3_get_l4_protocol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x21, x1
	mov	x20, x0
	bl	_skb_network_header
	mov	x22, x0
	mov	x0, x20
	bl	_skb_transport_header
	mov	x23, x0
	ldr	x24, [x20]
Lloh0:
	adrp	x8, _ETH_P_IPV6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_IPV6@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	x24, x0
	b.ne	LBB0_3
; %bb.1:
	add	x9, x22, #8
	ldr	w8, [x22, #4]
	str	w8, [sp, #12]
	cmp	x23, x9
	b.eq	LBB0_5
; %bb.2:
	ldrsw	x8, [x20, #8]
	sub	x1, x9, x8
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x20
	bl	_ipv6_skip_exthdr
	ldr	w8, [sp, #12]
	b	LBB0_5
LBB0_3:
	ldr	x23, [x20]
Lloh3:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	cmp	x23, x0
	b.ne	LBB0_11
; %bb.4:
	ldr	w8, [x22, #4]
	str	w8, [sp, #12]
LBB0_5:
	str	w8, [x21]
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_10
; %bb.6:
	mov	x0, x20
	bl	_skb_inner_network_header
	mov	x21, x0
	mov	x0, x20
	bl	_skb_inner_transport_header
	ldr	w8, [x21]
	cmp	w8, #4
	b.eq	LBB0_12
; %bb.7:
	cmp	w8, #6
	b.ne	LBB0_13
; %bb.8:
	add	x8, x21, #8
	ldr	w9, [x21, #4]
	str	w9, [sp, #12]
	cmp	x0, x8
	b.eq	LBB0_13
; %bb.9:
	ldrsw	x9, [x20, #8]
	sub	x1, x8, x9
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x20
	bl	_ipv6_skip_exthdr
	b	LBB0_13
LBB0_10:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_14
LBB0_11:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_12:
	ldr	w8, [x21, #4]
	str	w8, [sp, #12]
LBB0_13:
	mov	w0, #0
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hns3_get_l4_protocol
.subsections_via_symbols
