	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_ddp_load                  ## -- Begin function i40e_ddp_load
	.p2align	4, 0x90
_i40e_ddp_load:                         ## @i40e_ddp_load
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_i40e_ddp_is_pkg_hdr_valid
	testl	%eax, %eax
	je	LBB0_23
## %bb.1:
	cmpq	$15, %rbx
	ja	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_22
LBB0_4:
	movq	_SEGMENT_TYPE_METADATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_i40e_find_segment_in_package
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	(%rax), %ebx
	movq	_SEGMENT_TYPE_I40E@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_i40e_find_segment_in_package
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %r13
	movl	%ebx, -140(%rbp)
	movl	4(%rax), %eax
	movl	%eax, -144(%rbp)
	testl	%r15d, %r15d
	movl	%ebx, -132(%rbp)                ## 4-byte Spill
	jne	LBB0_10
## %bb.7:
	movq	_I40E_DDP_REMOVE_TRACKID@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_22
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_22
LBB0_10:
	movq	_I40E_DDP_ADD_TRACKID@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, -148(%rbp)
	movl	(%r13), %esi
	movq	_I40E_DDP_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	leaq	-152(%rbp), %rsi
	movq	%r14, %rdi
	callq	_i40e_ddp_does_profile_exist
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.12:
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.13:
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_22
LBB0_15:
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.16:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	-132(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %edx
	callq	_i40e_rollback_profile
	testq	%rax, %rax
	je	LBB0_27
## %bb.17:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_38
LBB0_18:
	leaq	-152(%rbp), %rsi
	movq	%r14, %rdi
	callq	_i40e_ddp_does_profile_overlap
	testl	%eax, %eax
	js	LBB0_29
## %bb.19:
	je	LBB0_31
## %bb.20:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_22
LBB0_21:
	leaq	L_.str.6(%rip), %rsi
LBB0_22:
	movq	%r12, %rdi
	callq	_netdev_err
LBB0_23:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_24:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_40
## %bb.26:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	leaq	-128(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %ecx
	callq	_i40e_del_pinfo
	testq	%rax, %rax
	je	LBB0_39
## %bb.28:
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_38
LBB0_29:
	movl	%eax, %ebx
LBB0_30:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_err
	jmp	LBB0_25
LBB0_31:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	-132(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %edx
	callq	_i40e_write_profile
	testq	%rax, %rax
	je	LBB0_35
## %bb.32:
	movq	_I40E_ERR_DEVICE_NOT_SUPPORTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_37
## %bb.33:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_err
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_35:
	leaq	-128(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %ecx
	callq	_i40e_add_pinfo
	testq	%rax, %rax
	je	LBB0_39
## %bb.36:
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_38
LBB0_39:
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_37:
	leaq	L_.str.8(%rip), %rsi
LBB0_38:
	movq	%r12, %rdi
	callq	_netdev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_40:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid DDP recipe size."

	.comm	_SEGMENT_TYPE_METADATA,4,2      ## @SEGMENT_TYPE_METADATA
L_.str.1:                               ## @.str.1
	.asciz	"Failed to find metadata segment in DDP recipe."

	.comm	_SEGMENT_TYPE_I40E,4,2          ## @SEGMENT_TYPE_I40E
L_.str.2:                               ## @.str.2
	.asciz	"Failed to find profile segment in DDP recipe."

	.comm	_I40E_DDP_ADD_TRACKID,4,2       ## @I40E_DDP_ADD_TRACKID
	.comm	_I40E_DDP_REMOVE_TRACKID,4,2    ## @I40E_DDP_REMOVE_TRACKID
	.comm	_I40E_DDP_NAME_SIZE,4,2         ## @I40E_DDP_NAME_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"Failed to fetch loaded profiles."

L_.str.4:                               ## @.str.4
	.asciz	"DDP profile already loaded."

L_.str.5:                               ## @.str.5
	.asciz	"DDP profile overlaps with existing one."

L_.str.6:                               ## @.str.6
	.asciz	"DDP profile for deletion does not exist."

	.comm	_I40E_ERR_DEVICE_NOT_SUPPORTED,8,3 ## @I40E_ERR_DEVICE_NOT_SUPPORTED
L_.str.7:                               ## @.str.7
	.asciz	"Profile is not supported by the device."

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.8:                               ## @.str.8
	.asciz	"Failed to write DDP profile."

	.comm	_EIO,4,2                        ## @EIO
L_.str.9:                               ## @.str.9
	.asciz	"Failed to remove DDP profile."

L_.str.10:                              ## @.str.10
	.asciz	"Failed to add DDP profile info."

L_.str.11:                              ## @.str.11
	.asciz	"Failed to restore DDP profile info."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_ddp_load                  ; -- Begin function i40e_ddp_load
	.p2align	2
_i40e_ddp_load:                         ; @i40e_ddp_load
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x20, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_i40e_ddp_is_pkg_hdr_valid
	cbz	w0, LBB0_12
; %bb.1:
	cmp	x21, #15
	b.hi	LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_3:
Lloh5:
	adrp	x8, _SEGMENT_TYPE_METADATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEGMENT_TYPE_METADATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_i40e_find_segment_in_package
	cbz	x0, LBB0_9
; %bb.4:
	ldr	w21, [x0]
Lloh8:
	adrp	x8, _SEGMENT_TYPE_I40E@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEGMENT_TYPE_I40E@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_i40e_find_segment_in_package
	cbz	x0, LBB0_10
; %bb.5:
	mov	x23, x0
	str	w21, [sp, #20]
	ldr	w8, [x0, #4]
	str	w8, [sp, #16]
Lloh11:
	adrp	x8, _I40E_DDP_REMOVE_TRACKID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40E_DDP_REMOVE_TRACKID@GOTPAGEOFF]
Lloh13:
	adrp	x9, _I40E_DDP_ADD_TRACKID@GOTPAGE
Lloh14:
	ldr	x9, [x9, _I40E_DDP_ADD_TRACKID@GOTPAGEOFF]
	cmp	w24, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w1, [x0]
Lloh15:
	adrp	x8, _I40E_DDP_NAME_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I40E_DDP_NAME_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_memcpy
	add	x1, sp, #8
	mov	x0, x20
	bl	_i40e_ddp_does_profile_exist
	mov	x22, x0
	tbnz	w0, #31, LBB0_22
; %bb.6:
	cbz	w24, LBB0_16
; %bb.7:
	cbz	w22, LBB0_19
; %bb.8:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_netdev_err
LBB0_12:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.15:
	mov	x0, x22
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_16:
	cbz	w22, LBB0_23
; %bb.17:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_i40e_rollback_profile
	cbz	x0, LBB0_24
; %bb.18:
Lloh29:
	adrp	x1, l_.str.9@PAGE
Lloh30:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_33
LBB0_19:
	add	x1, sp, #8
	mov	x0, x20
	bl	_i40e_ddp_does_profile_overlap
	mov	x22, x0
	tbnz	w0, #31, LBB0_22
; %bb.20:
	cbz	w22, LBB0_26
; %bb.21:
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_22:
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_14
LBB0_23:
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_11
LBB0_24:
	add	x2, sp, #24
	mov	x0, x20
	mov	x1, x23
	mov	x3, x21
	bl	_i40e_del_pinfo
	cbz	x0, LBB0_31
; %bb.25:
Lloh37:
	adrp	x1, l_.str.11@PAGE
Lloh38:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_33
LBB0_26:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_i40e_write_profile
	cbz	x0, LBB0_29
; %bb.27:
Lloh39:
	adrp	x8, _I40E_ERR_DEVICE_NOT_SUPPORTED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _I40E_ERR_DEVICE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_32
; %bb.28:
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
Lloh44:
	adrp	x8, _EPERM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_13
LBB0_29:
	add	x2, sp, #24
	mov	x0, x20
	mov	x1, x23
	mov	x3, x21
	bl	_i40e_add_pinfo
	cbz	x0, LBB0_31
; %bb.30:
Lloh46:
	adrp	x1, l_.str.10@PAGE
Lloh47:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_33
LBB0_31:
	mov	w22, #0
	b	LBB0_14
LBB0_32:
Lloh48:
	adrp	x1, l_.str.8@PAGE
Lloh49:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_33:
	mov	x0, x19
	bl	_netdev_err
Lloh50:
	adrp	x8, _EIO@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_13
LBB0_34:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid DDP recipe size."

	.comm	_SEGMENT_TYPE_METADATA,4,2      ; @SEGMENT_TYPE_METADATA
l_.str.1:                               ; @.str.1
	.asciz	"Failed to find metadata segment in DDP recipe."

	.comm	_SEGMENT_TYPE_I40E,4,2          ; @SEGMENT_TYPE_I40E
l_.str.2:                               ; @.str.2
	.asciz	"Failed to find profile segment in DDP recipe."

	.comm	_I40E_DDP_ADD_TRACKID,4,2       ; @I40E_DDP_ADD_TRACKID
	.comm	_I40E_DDP_REMOVE_TRACKID,4,2    ; @I40E_DDP_REMOVE_TRACKID
	.comm	_I40E_DDP_NAME_SIZE,4,2         ; @I40E_DDP_NAME_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"Failed to fetch loaded profiles."

l_.str.4:                               ; @.str.4
	.asciz	"DDP profile already loaded."

l_.str.5:                               ; @.str.5
	.asciz	"DDP profile overlaps with existing one."

l_.str.6:                               ; @.str.6
	.asciz	"DDP profile for deletion does not exist."

	.comm	_I40E_ERR_DEVICE_NOT_SUPPORTED,8,3 ; @I40E_ERR_DEVICE_NOT_SUPPORTED
l_.str.7:                               ; @.str.7
	.asciz	"Profile is not supported by the device."

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.8:                               ; @.str.8
	.asciz	"Failed to write DDP profile."

	.comm	_EIO,4,2                        ; @EIO
l_.str.9:                               ; @.str.9
	.asciz	"Failed to remove DDP profile."

l_.str.10:                              ; @.str.10
	.asciz	"Failed to add DDP profile info."

l_.str.11:                              ; @.str.11
	.asciz	"Failed to restore DDP profile info."

.subsections_via_symbols
