	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto4xx_alloc_sa             ## -- Begin function crypto4xx_alloc_sa
	.p2align	4, 0x90
_crypto4xx_alloc_sa:                    ## @crypto4xx_alloc_sa
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leal	(,%r14,4), %r15d
	leaq	24(%rbx), %rdx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	%r15d, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	40(%rbx), %rdx
	movl	(%r12), %ecx
	movl	%r15d, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	16(%rbx), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	movq	8(%rbx), %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	movl	%r14d, (%rbx)
	jmp	LBB0_5
LBB0_3:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	shll	$2, %esi
	movq	16(%rbx), %rdx
	movl	24(%rbx), %ecx
	callq	_dma_free_coherent
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto4xx_alloc_sa             ; -- Begin function crypto4xx_alloc_sa
	.p2align	2
_crypto4xx_alloc_sa:                    ; @crypto4xx_alloc_sa
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
	ldr	w0, [x8]
	lsl	w21, w1, #2
	add	x2, x19, #24
Lloh0:
	adrp	x22, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x1, x21
	bl	_dma_alloc_coherent
	str	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	w0, [x8]
	add	x2, x19, #40
	ldr	w3, [x22]
	mov	x1, x21
	bl	_dma_alloc_coherent
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	mov	w0, #0
	str	w20, [x19]
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	w8, [x19]
	lsl	w1, w8, #2
	ldr	x2, [x19, #16]
	ldr	w3, [x19, #24]
	bl	_dma_free_coherent
LBB0_4:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
