	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nx_gca
_nx_gca:                                ## @nx_gca
	.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	24(%rdi), %rax
	movl	(%rsi), %r8d
	cmpl	4(%rax), %r8d
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %r13
	cmpl	(%r13), %r8d
	jle	LBB0_3
## %bb.4:
	movq	%rdi, %r12
	movq	32(%rdi), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rdi
	movl	(%rax), %esi
	movl	8(%r15), %edx
	xorl	%ecx, %ecx
	callq	_nx_walk_and_build
	movl	16(%r12), %ecx
	subl	%eax, %ecx
	leaq	8(%r12), %rsi
	movl	%ecx, 8(%r12)
	movq	_CRYPTO_TFM_REQ_MAY_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	4(%r15), %edx
	movq	%r12, %rdi
	callq	_nx_hcall_sync
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%r12), %rdi
	addq	$4, %rdi
	callq	_atomic_inc
	movl	(%r15), %edi
	movq	(%r12), %rsi
	callq	_atomic64_add
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_memcpy
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	movl	8(%r15), %esi
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	callq	_scatterwalk_start
	movl	(%r15), %edx
	movq	_SCATTERWALK_FROM_SG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_scatterwalk_copychunks
	movl	(%rbx), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_scatterwalk_done
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.comm	_SCATTERWALK_FROM_SG,4,2        ## @SCATTERWALK_FROM_SG
	.comm	_CRYPTO_TFM_REQ_MAY_SLEEP,4,2   ## @CRYPTO_TFM_REQ_MAY_SLEEP
	.no_dead_strip	_nx_gca
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nx_gca
_nx_gca:                                ; @nx_gca
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w4, [x1]
	ldr	x8, [x0, #24]
	ldr	w9, [x8, #4]
	cmp	w4, w9
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	mov	x19, x2
	mov	x20, x1
Lloh3:
	adrp	x22, _AES_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AES_BLOCK_SIZE@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w4, w9
	b.le	LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	x23, [x0, #32]
	ldr	x0, [x0, #16]
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	w3, #0
	bl	_nx_walk_and_build
	ldr	w8, [x21, #16]
	sub	w8, w8, w0
	mov	x1, x21
	str	w8, [x1, #8]!
	ldr	w8, [x20, #4]
Lloh5:
	adrp	x9, _CRYPTO_TFM_REQ_MAY_SLEEP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CRYPTO_TFM_REQ_MAY_SLEEP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	x0, x21
	bl	_nx_hcall_sync
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	x8, [x21]
	add	x0, x8, #4
	bl	_atomic_inc
	ldr	w0, [x20]
	ldr	x1, [x21]
	bl	_atomic64_add
	ldr	w1, [x23]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_memcpy
	b	LBB0_6
LBB0_5:
	ldr	w1, [x20, #8]
	add	x0, sp, #8
	bl	_scatterwalk_start
	ldr	w2, [x20]
Lloh8:
	adrp	x20, _SCATTERWALK_FROM_SG@GOTPAGE
Lloh9:
	ldr	x20, [x20, _SCATTERWALK_FROM_SG@GOTPAGEOFF]
	ldr	w3, [x20]
	add	x1, sp, #8
	mov	x0, x19
	bl	_scatterwalk_copychunks
	ldr	w1, [x20]
	add	x0, sp, #8
	mov	w2, #0
	bl	_scatterwalk_done
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.comm	_SCATTERWALK_FROM_SG,4,2        ; @SCATTERWALK_FROM_SG
	.comm	_CRYPTO_TFM_REQ_MAY_SLEEP,4,2   ; @CRYPTO_TFM_REQ_MAY_SLEEP
	.no_dead_strip	_nx_gca
.subsections_via_symbols
