	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto4xx_build_pdr
_crypto4xx_build_pdr:                   ## @crypto4xx_build_pdr
	.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	%rdi, %rbx
	movq	40(%rdi), %rax
	movl	(%rax), %edi
	movq	_PPC4XX_NUM_PD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	shll	$2, %esi
	leaq	56(%rbx), %rdx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	(%r15), %edi
	shll	$5, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	48(%rbx), %rdi
	movl	(%r15), %edx
	shll	$2, %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_memset
	movq	40(%rbx), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	shll	$8, %esi
	leaq	16(%rbx), %rdx
	movl	(%r12), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	40(%rbx), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	shll	$2, %esi
	movl	(%r12), %ecx
	movq	%rbx, %rdx
	callq	_dma_alloc_coherent
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movl	(%r15), %r10d
	testl	%r10d, %r10d
	jle	LBB0_12
## %bb.5:
	movq	32(%rbx), %rdi
	movq	24(%rbx), %r12
	movq	(%rbx), %rsi
	movq	16(%rbx), %r15
	xorl	%r14d, %r14d
	cmpl	$1, %r10d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_13
## %bb.6:
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_7:
	movq	40(%rbx), %rax
	movq	48(%rbx), %rdx
	movl	(%rax), %edi
	movl	(%r15), %esi
	shll	$2, %esi
	movq	56(%rbx), %rcx
	callq	_dma_free_coherent
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_9:
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_12:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_13:
	movl	%r10d, %r11d
	andl	$-2, %r11d
	movl	$256, %r9d                      ## imm = 0x100
	xorl	%r13d, %r13d
	movq	%rax, %rdx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leal	-256(%r9), %ebx
	andl	$-512, %ebx                     ## imm = 0xFE00
	leaq	(%r12,%rbx), %r8
	movq	%r8, 24(%rdi)
	addq	%r15, %rbx
	movq	%rbx, 16(%rdi)
	movq	%rdx, 8(%rdi)
	movq	%rsi, (%rdi)
	movl	%r9d, %ecx
	andl	$-256, %ecx
	leaq	(%r12,%rcx), %rbx
	movq	%rbx, 56(%rdi)
	addq	%r15, %rcx
	movq	%rcx, 48(%rdi)
	leaq	4(%rdx), %rcx
	movq	%rcx, 40(%rdi)
	leaq	4(%rsi), %rcx
	movq	%rcx, 32(%rdi)
	addq	$2, %r13
	addq	$64, %rdi
	addq	$512, %r9                       ## imm = 0x200
	addq	$8, %rsi
	addq	$8, %rdx
	cmpq	%r13, %r11
	jne	LBB0_14
LBB0_15:
	testb	$1, %r10b
	je	LBB0_10
## %bb.16:
	movq	%r13, %rcx
	shlq	$5, %rcx
	movl	%r13d, %edx
	shll	$8, %edx
	addq	%rdx, %r12
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, 24(%rsi,%rcx)
	addq	%rdx, %r15
	movq	%r15, 16(%rsi,%rcx)
	leaq	(%rax,%r13,4), %rax
	movq	%rax, 8(%rsi,%rcx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13,4), %rax
	movq	%rax, (%rsi,%rcx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_PPC4XX_NUM_PD,4,2              ## @PPC4XX_NUM_PD
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_crypto4xx_build_pdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto4xx_build_pdr
_crypto4xx_build_pdr:                   ; @crypto4xx_build_pdr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0, #40]
	ldr	w0, [x8]
Lloh0:
	adrp	x20, _PPC4XX_NUM_PD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PPC4XX_NUM_PD@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	w1, w8, #2
	add	x2, x19, #56
Lloh2:
	adrp	x21, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w3, [x21]
	bl	_dma_alloc_coherent
	str	x0, [x19, #48]
	cbz	x0, LBB0_8
; %bb.1:
	ldr	w8, [x20]
	lsl	w0, w8, #5
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x0, [x19, #48]
	ldr	w8, [x20]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	ldr	w8, [x20]
	lsl	w1, w8, #8
	add	x2, x19, #16
	ldr	w3, [x21]
	bl	_dma_alloc_coherent
	str	x0, [x19, #24]
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	ldr	w8, [x20]
	lsl	w1, w8, #2
	ldr	w3, [x21]
	mov	x2, x19
	bl	_dma_alloc_coherent
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w10, [x20]
	cmp	w10, #1
	b.lt	LBB0_15
; %bb.5:
	ldp	x8, x11, [x19, #24]
	ldr	x9, [x19, #16]
	ldr	x12, [x19]
	cmp	w10, #4
	b.hs	LBB0_10
; %bb.6:
	mov	x13, #0
	b	LBB0_13
LBB0_7:
	ldp	x8, x2, [x19, #40]
	ldr	w0, [x8]
	ldr	w8, [x20]
	lsl	w1, w8, #2
	ldr	x3, [x19, #56]
	bl	_dma_free_coherent
LBB0_8:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x14, #0
	and	x13, x10, #0xfffffffc
	lsl	x15, x10, #2
	and	x15, x15, #0x3fffffff0
	mov	w16, #768
	mov	w17, #-768
	mov	x1, x11
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	w2, w16, #768
	and	x2, x2, #0xfffffc00
	add	x3, x8, x2
	add	x2, x9, x2
	stp	x2, x3, [x1, #16]
	sub	w2, w16, #512
	and	x2, x2, x17
	add	x3, x8, x2
	add	x2, x9, x2
	stp	x2, x3, [x1, #48]
	sub	w2, w16, #256
	and	x2, x2, #0xfffffe00
	add	x3, x8, x2
	add	x2, x9, x2
	stp	x2, x3, [x1, #80]
	and	x2, x16, #0xffffff00
	add	x3, x8, x2
	add	x2, x9, x2
	stp	x2, x3, [x1, #112]
	add	x2, x0, x14
	add	x3, x2, #4
	add	x4, x2, #8
	add	x5, x12, x14
	stp	x5, x2, [x1]
	add	x2, x2, #12
	add	x6, x5, #4
	add	x7, x5, #8
	add	x5, x5, #12
	stp	x6, x3, [x1, #32]
	stp	x7, x4, [x1, #64]
	stp	x5, x2, [x1, #96]
	add	x1, x1, #128
	add	x16, x16, #1024
	add	x14, x14, #16
	cmp	x15, x14
	b.ne	LBB0_11
; %bb.12:
	cmp	x13, x10
	b.eq	LBB0_15
LBB0_13:
	lsl	x14, x13, #8
	lsl	x16, x13, #2
	add	x15, x0, x16
	add	x12, x12, x16
	add	x11, x11, x13, lsl #5
	sub	x10, x10, x13
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	and	x13, x14, #0xffffff00
	add	x16, x8, x13
	add	x13, x9, x13
	stp	x13, x16, [x11, #16]
	add	x14, x14, #256
	stp	x12, x15, [x11], #32
	add	x15, x15, #4
	add	x12, x12, #4
	subs	x10, x10, #1
	b.ne	LBB0_14
LBB0_15:
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PPC4XX_NUM_PD,4,2              ; @PPC4XX_NUM_PD
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_crypto4xx_build_pdr
.subsections_via_symbols
