	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nx842_crypto_init              ## -- Begin function nx842_crypto_init
	.p2align	4, 0x90
_nx842_crypto_init:                     ## @nx842_crypto_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_crypto_tfm_ctx
	movq	%rax, %rbx
	leaq	32(%rax), %rdi
	callq	_spin_lock_init
	movq	%r14, 24(%rbx)
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_kmalloc
	movl	%eax, 16(%rbx)
	movl	(%r14), %edi
	movq	_BOUNCE_BUFFER_ORDER@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	___get_free_pages
	movq	%rax, 8(%rbx)
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	___get_free_pages
	movq	%rax, (%rbx)
	movl	16(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_4
LBB0_3:
	callq	_kfree
	movq	8(%rbx), %rdi
	callq	_free_page
	movq	(%rbx), %rdi
	callq	_free_page
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_4:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_BOUNCE_BUFFER_ORDER,4,2        ## @BOUNCE_BUFFER_ORDER
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nx842_crypto_init              ; -- Begin function nx842_crypto_init
	.p2align	2
_nx842_crypto_init:                     ; @nx842_crypto_init
	.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
	bl	_crypto_tfm_ctx
	mov	x19, x0
	add	x0, x0, #32
	bl	_spin_lock_init
	str	x20, [x19, #24]
	ldr	w0, [x20]
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_kmalloc
	str	w0, [x19, #16]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _BOUNCE_BUFFER_ORDER@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BOUNCE_BUFFER_ORDER@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	___get_free_pages
	str	x0, [x19, #8]
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	___get_free_pages
	mov	x8, x0
	str	x0, [x19]
	ldr	w0, [x19, #16]
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_4
; %bb.2:
	cbz	x8, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	bl	_kfree
	ldr	x0, [x19, #8]
	bl	_free_page
	ldr	x0, [x19]
	bl	_free_page
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_BOUNCE_BUFFER_ORDER,4,2        ; @BOUNCE_BUFFER_ORDER
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
