	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_ddp_is_pkg_hdr_valid
_i40e_ddp_is_pkg_hdr_valid:             ## @i40e_ddp_is_pkg_hdr_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	16(%rsi), %rax
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:
	movl	24(%rsi), %r9d
	movl	28(%rsi), %r8d
	movl	32(%rsi), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_19
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_4:
	movq	%rdx, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_7:
	movl	%edx, %eax
	cmpl	$59, %eax
	ja	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_9:
	movslq	(%rsi), %r8
	leal	2(%r8), %ecx
	shlq	$3, %rcx
	cmpq	%rcx, %rax
	jae	LBB0_10
## %bb.20:
	leaq	L_.str.3(%rip), %rsi
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	movl	$1, %ebx
	testl	%r8d, %r8d
	je	LBB0_19
## %bb.11:
	movq	8(%rsi), %r9
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rdx,8), %rsi
	testb	$15, %sil
	jne	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%rsi, %rcx
	ja	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%rax, %rsi
	jae	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_12
	jmp	LBB0_19
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_14
LBB0_17:
	leaq	L_.str.5(%rip), %rsi
LBB0_14:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported DDP profile version %u.%u.%u.%u"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid DDP profile - size is bigger than 4G"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid DDP profile - size is too small."

L_.str.3:                               ## @.str.3
	.asciz	"Invalid DDP profile - too many segments"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid DDP profile %u segment alignment"

L_.str.5:                               ## @.str.5
	.asciz	"Invalid DDP profile %u segment offset"

	.no_dead_strip	_i40e_ddp_is_pkg_hdr_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_ddp_is_pkg_hdr_valid
_i40e_ddp_is_pkg_hdr_valid:             ; @i40e_ddp_is_pkg_hdr_valid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	cbz	x1, LBB0_10
; %bb.1:
	ldr	x8, [x1, #16]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.2:
	ldp	w10, w9, [x1, #28]
	ldr	w11, [x1, #24]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_3:
	lsr	x8, x2, #32
	cbz	x8, LBB0_5
; %bb.4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_5:
	and	x9, x2, #0xffffffff
	cmp	x9, #59
	b.hi	LBB0_7
; %bb.6:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldrsw	x10, [x1]
	add	w8, w10, #2
	lsl	x11, x8, #3
	cmp	x9, x11
	b.hs	LBB0_12
; %bb.8:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	bl	_netdev_err
LBB0_10:
	mov	w8, #0
LBB0_11:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_12:
	cbz	w10, LBB0_17
; %bb.13:
	mov	x12, #0
	ldr	x13, [x1, #8]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x13, x12, lsl #3]
	tst	x8, #0xf
	b.ne	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	x11, x8
	ccmp	x8, x9, #2, ls
	b.hs	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x12, x12, #1
	mov	w8, #1
	cmp	x10, x12
	b.ne	LBB0_14
	b	LBB0_11
LBB0_17:
	mov	w8, #1
	b	LBB0_11
LBB0_18:
	str	x12, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_19:
	str	x12, [sp]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported DDP profile version %u.%u.%u.%u"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid DDP profile - size is bigger than 4G"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid DDP profile - size is too small."

l_.str.3:                               ; @.str.3
	.asciz	"Invalid DDP profile - too many segments"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid DDP profile %u segment alignment"

l_.str.5:                               ; @.str.5
	.asciz	"Invalid DDP profile %u segment offset"

	.no_dead_strip	_i40e_ddp_is_pkg_hdr_valid
.subsections_via_symbols
