	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_get_headlen
_igb_get_headlen:                       ## @igb_get_headlen
	.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
	movl	%esi, %r13d
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%esi, %ebx
	jbe	LBB0_2
LBB0_1:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %r14
	movq	(%rdi), %r12
	leaq	(%rdi,%rbx), %r15
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___constant_htons
	cmpq	%rax, %r12
	jne	LBB0_5
## %bb.3:
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r13d, %ecx
	subl	%eax, %ecx
	cmpl	%ecx, %ebx
	ja	LBB0_1
## %bb.4:
	movq	(%r15), %r12
	addq	%rax, %r15
LBB0_5:
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___constant_htons
	cmpq	%rax, %r12
	jne	LBB0_9
## %bb.6:
	movq	%r15, %rax
	subq	%r14, %rax
	movl	%r13d, %ecx
	addq	$-8, %rcx
	cmpq	%rcx, %rax
	ja	LBB0_1
## %bb.7:
	movb	(%r15), %r12b
	shlb	$2, %r12b
	andb	$60, %r12b
	cmpb	$7, %r12b
	ja	LBB0_12
## %bb.8:
	movl	%eax, %r13d
	jmp	LBB0_1
LBB0_9:
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___constant_htons
	movq	%r15, %rcx
	subq	%r14, %rcx
	cmpq	%rax, %r12
	jne	LBB0_24
## %bb.10:
	movl	%r13d, %edx
	addq	$-4, %rdx
	movb	$4, %r12b
	movq	%r15, %rax
	cmpq	%rdx, %rcx
	jbe	LBB0_14
	jmp	LBB0_1
LBB0_12:
	movl	(%r15), %ebx
	movq	_IP_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	xorl	%ecx, %ecx
	testl	%ebx, %eax
	jne	LBB0_15
## %bb.13:
	leaq	4(%r15), %rax
LBB0_14:
	movl	(%rax), %ecx
LBB0_15:
	movzbl	%r12b, %eax
	addq	%rax, %r15
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_19
## %bb.16:
	movq	%r15, %rcx
	subq	%r14, %rcx
	movl	%r13d, %eax
	leaq	-4(%rax), %rdx
	cmpq	%rdx, %rcx
	ja	LBB0_1
## %bb.17:
	movzbl	12(%r15), %edx
	shrq	$2, %rdx
	andq	$60, %rdx
	je	LBB0_24
## %bb.18:
	addq	%rdx, %r15
	jmp	LBB0_23
LBB0_24:
	movl	%ecx, %r13d
	jmp	LBB0_1
LBB0_19:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_22
## %bb.20:
	movq	%r15, %rcx
	subq	%r14, %rcx
	movl	%r13d, %eax
	leaq	-4(%rax), %rdx
	cmpq	%rdx, %rcx
	ja	LBB0_1
## %bb.21:
	addq	$4, %r15
	jmp	LBB0_23
LBB0_22:
	movl	%r13d, %eax
LBB0_23:
	subq	%r14, %r15
	cmpq	%rax, %r15
	cmovll	%r15d, %r13d
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_IP_OFFSET,4,2                  ## @IP_OFFSET
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.no_dead_strip	_igb_get_headlen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_get_headlen
_igb_get_headlen:                       ; @igb_get_headlen
	.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, x1
Lloh0:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	cmp	w23, w1
	b.hi	LBB0_24
; %bb.1:
	mov	x20, x0
	ldr	x22, [x0]
	add	x21, x0, x23
Lloh3:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	___constant_htons
	cmp	x22, x0
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _VLAN_HLEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VLAN_HLEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	sub	w9, w19, w8
	cmp	w23, w9
	b.hi	LBB0_24
; %bb.3:
	ldr	x22, [x21]
	add	x21, x21, x8
LBB0_4:
Lloh9:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	___constant_htons
	cmp	x22, x0
	b.ne	LBB0_9
; %bb.5:
	mov	w8, w19
	sub	x9, x8, #8
	sub	x8, x21, x20
	cmp	x8, x9
	b.hi	LBB0_24
; %bb.6:
	ldrb	w9, [x21]
	ubfiz	w22, w9, #2, #4
	cmp	w22, #7
	b.ls	LBB0_12
; %bb.7:
	ldr	w23, [x21]
Lloh12:
	adrp	x8, _IP_OFFSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IP_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_htons
	tst	w0, w23
	b.eq	LBB0_13
; %bb.8:
	mov	w9, #0
	b	LBB0_15
LBB0_9:
Lloh15:
	adrp	x8, _ETH_P_IPV6@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETH_P_IPV6@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	___constant_htons
	sub	x8, x21, x20
	cmp	x22, x0
	b.ne	LBB0_12
; %bb.10:
	mov	w9, w19
	sub	x9, x9, #4
	cmp	x8, x9
	b.hi	LBB0_24
; %bb.11:
	mov	w22, #4
	mov	x8, x21
	b	LBB0_14
LBB0_12:
	mov	x19, x8
	b	LBB0_24
LBB0_13:
	add	x8, x21, #4
LBB0_14:
	ldr	w9, [x8]
LBB0_15:
	add	x8, x21, w22, uxtw
Lloh18:
	adrp	x10, _IPPROTO_TCP@GOTPAGE
Lloh19:
	ldr	x10, [x10, _IPPROTO_TCP@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_19
; %bb.16:
	mov	w9, w19
	sub	x11, x9, #4
	sub	x10, x8, x20
	cmp	x10, x11
	b.hi	LBB0_24
; %bb.17:
	ldrb	w11, [x8, #12]
	lsr	w11, w11, #2
	ands	w11, w11, #0x3c
	b.eq	LBB0_25
; %bb.18:
	add	x8, x8, w11, uxtw
	b	LBB0_23
LBB0_19:
Lloh21:
	adrp	x10, _IPPROTO_UDP@GOTPAGE
Lloh22:
	ldr	x10, [x10, _IPPROTO_UDP@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_22
; %bb.20:
	mov	w9, w19
	sub	x10, x9, #4
	sub	x11, x8, x20
	cmp	x11, x10
	b.hi	LBB0_24
; %bb.21:
	add	x8, x8, #4
	b	LBB0_23
LBB0_22:
	mov	w9, w19
LBB0_23:
	sub	x8, x8, x20
	cmp	x8, x9
	csel	w19, w8, w19, lt
LBB0_24:
	mov	x0, x19
	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_25:
	mov	x19, x10
	b	LBB0_24
	.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
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_IP_OFFSET,4,2                  ; @IP_OFFSET
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.no_dead_strip	_igb_get_headlen
.subsections_via_symbols
