	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpni_prepare_key_cfg           ## -- Begin function dpni_prepare_key_cfg
	.p2align	4, 0x90
_dpni_prepare_key_cfg:                  ## @dpni_prepare_key_cfg
	.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
	movl	(%rdi), %eax
	movq	_DPKG_MAX_NUM_OF_EXTRACTS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_2:
	movl	%eax, (%rsi)
	testl	%eax, %eax
	jle	LBB0_14
## %bb.3:
	xorl	%r14d, %r14d
	movq	_DPKG_NUM_OF_MASKS@GOTPCREL(%rip), %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movslq	(%rdi), %rax
	cmpq	%rax, %r14
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jge	LBB0_14
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	8(%rsi), %r12
	movq	8(%rdi), %rax
	movq	%r14, %r13
	shlq	$6, %r13
	movl	(%rax,%r13), %ecx
	cmpl	$128, %ecx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$130, %ecx
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$129, %ecx
	jne	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	56(%rax,%r13), %ecx
	leaq	(%r14,%r14,4), %r15
	movl	%ecx, 36(%r12,%r15,8)
	movl	32(%r12,%r15,8), %edi
	movq	_EFH_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	36(%rax,%r13), %edx
	callq	_dpni_set_field
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	52(%rax,%r13), %ecx
	movl	%ecx, 20(%r12,%r15,8)
	movl	48(%rax,%r13), %ecx
	movl	%ecx, 16(%r12,%r15,8)
	movl	44(%rax,%r13), %edi
	callq	_cpu_to_le32
	movl	%eax, 28(%r12,%r15,8)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	40(%rax,%r13), %ecx
	movl	%ecx, 24(%r12,%r15,8)
	movl	(%rax,%r13), %edx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	24(%rax,%r13), %ecx
	leaq	(%r14,%r14,4), %rdx
	movl	%ecx, 20(%r12,%rdx,8)
	movl	20(%rax,%r13), %ecx
	movl	%ecx, 16(%r12,%rdx,8)
	movl	$128, %edx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	32(%rax,%r13), %ecx
	leaq	(%r14,%r14,4), %rdx
	movl	%ecx, 20(%r12,%rdx,8)
	movl	28(%rax,%r13), %ecx
	movl	%ecx, 16(%r12,%rdx,8)
	movl	$130, %edx
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	16(%rax,%r13), %eax
	leaq	(%r14,%r14,4), %r15
	movl	%eax, 12(%r12,%r15,8)
	movl	8(%r12,%r15,8), %edi
	movq	_EXTRACT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dpni_set_field
	cmpl	$0, (%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rdi), %rax
	movq	8(%rax,%r13), %rax
	movq	(%r12,%r15,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%rax,%rdx,8), %esi
	movl	%esi, 4(%rcx,%rdx,8)
	movl	(%rax,%rdx,8), %esi
	movl	%esi, (%rcx,%rdx,8)
	incq	%rdx
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_12
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPKG_MAX_NUM_OF_EXTRACTS,4,2   ## @DPKG_MAX_NUM_OF_EXTRACTS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFH_TYPE,4,2                   ## @EFH_TYPE
	.comm	_EXTRACT_TYPE,4,2               ## @EXTRACT_TYPE
	.comm	_DPKG_NUM_OF_MASKS,4,2          ## @DPKG_NUM_OF_MASKS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpni_prepare_key_cfg           ; -- Begin function dpni_prepare_key_cfg
	.p2align	2
_dpni_prepare_key_cfg:                  ; @dpni_prepare_key_cfg
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DPKG_MAX_NUM_OF_EXTRACTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DPKG_MAX_NUM_OF_EXTRACTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_2:
	mov	x19, x1
	str	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.3:
	mov	x20, x0
	mov	x21, #0
	mov	w22, #40
Lloh6:
	adrp	x23, _EXTRACT_TYPE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _EXTRACT_TYPE@GOTPAGEOFF]
Lloh8:
	adrp	x24, _DPKG_NUM_OF_MASKS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _DPKG_NUM_OF_MASKS@GOTPAGEOFF]
Lloh10:
	adrp	x25, _EFH_TYPE@GOTPAGE
Lloh11:
	ldr	x25, [x25, _EFH_TYPE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x26, [x19, #8]
	ldr	x8, [x20, #8]
	lsl	x27, x21, #6
	ldr	w9, [x8, x27]
	cmp	w9, #128
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #130
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #129
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, x27
	ldr	w9, [x8, #56]
	madd	x28, x21, x22, x26
	str	w9, [x28, #36]
	ldr	w0, [x28, #32]
	ldr	w1, [x25]
	ldr	w2, [x8, #36]
	bl	_dpni_set_field
	ldr	x8, [x20, #8]
	add	x8, x8, x27
	ldr	d0, [x8, #48]
	str	d0, [x28, #16]
	ldr	w0, [x8, #44]
	bl	_cpu_to_le32
	ldr	x8, [x20, #8]
	add	x9, x8, x27
	ldr	w10, [x9, #40]
	stp	w10, w0, [x28, #24]
	ldr	w2, [x9]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x8, x21, lsl #6
	madd	x10, x21, x22, x26
	ldur	d0, [x9, #20]
	str	d0, [x10, #16]
	mov	w2, #128
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x8, x21, lsl #6
	madd	x10, x21, x22, x26
	ldur	d0, [x9, #28]
	str	d0, [x10, #16]
	mov	w2, #130
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, x21, lsl #6
	ldr	w8, [x8, #16]
	madd	x9, x21, x22, x26
	str	w8, [x9, #12]
	ldr	w0, [x9, #8]
	ldr	w1, [x23]
	bl	_dpni_set_field
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #0
	ldr	x9, [x20, #8]
	add	x9, x9, x21, lsl #6
	ldr	x9, [x9, #8]
	mul	x10, x21, x22
	ldr	x10, [x26, x10]
LBB0_13:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x11, x8, #3
	ldr	d0, [x9, x11]
	str	d0, [x10, x11]
	add	x8, x8, #1
	ldrsw	x11, [x24]
	cmp	x8, x11
	b.lt	LBB0_13
	b	LBB0_4
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DPKG_MAX_NUM_OF_EXTRACTS,4,2   ; @DPKG_MAX_NUM_OF_EXTRACTS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EFH_TYPE,4,2                   ; @EFH_TYPE
	.comm	_EXTRACT_TYPE,4,2               ; @EXTRACT_TYPE
	.comm	_DPKG_NUM_OF_MASKS,4,2          ; @DPKG_NUM_OF_MASKS
.subsections_via_symbols
