	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gru_copy_gpa                   ## -- Begin function gru_copy_gpa
	.p2align	4, 0x90
_gru_copy_gpa:                          ## @gru_copy_gpa
	.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	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_copy_gpa@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STAT
	movq	_GRU_NUM_KERNEL_DSR_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	callq	_gru_get_cpu_resources
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MQE_BUG_NO_RESOURCES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movq	-48(%rbp), %r12
	movq	-56(%rbp), %rdi
	callq	_gru_get_tri
	movq	_XTYPE_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_GRU_NUM_KERNEL_DSR_CL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_IMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	movl	%r14d, %r9d
	pushq	%rbx
	pushq	%r10
	callq	_gru_bcopy
	addq	$16, %rsp
	movq	-48(%rbp), %rdi
	callq	_gru_wait
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	movq	-56(%rbp), %rsi
	callq	_gru_free_cpu_resources
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_copy_gpa,4,2                   ## @copy_gpa
	.comm	_GRU_NUM_KERNEL_DSR_BYTES,4,2   ## @GRU_NUM_KERNEL_DSR_BYTES
	.comm	_MQE_BUG_NO_RESOURCES,4,2       ## @MQE_BUG_NO_RESOURCES
	.comm	_XTYPE_B,4,2                    ## @XTYPE_B
	.comm	_GRU_NUM_KERNEL_DSR_CL,4,2      ## @GRU_NUM_KERNEL_DSR_CL
	.comm	_IMA,4,2                        ## @IMA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gru_copy_gpa                   ; -- Begin function gru_copy_gpa
	.p2align	2
_gru_copy_gpa:                          ; @gru_copy_gpa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _copy_gpa@GOTPAGE
Lloh1:
	ldr	x8, [x8, _copy_gpa@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_STAT
Lloh3:
	adrp	x8, _GRU_NUM_KERNEL_DSR_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GRU_NUM_KERNEL_DSR_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, sp
	bl	_gru_get_cpu_resources
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MQE_BUG_NO_RESOURCES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MQE_BUG_NO_RESOURCES@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
	b	LBB0_3
LBB0_2:
	ldp	x0, x22, [sp]
	bl	_gru_get_tri
	mov	x3, x0
Lloh9:
	adrp	x8, _XTYPE_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XTYPE_B@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
Lloh12:
	adrp	x8, _GRU_NUM_KERNEL_DSR_CL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GRU_NUM_KERNEL_DSR_CL@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
Lloh15:
	adrp	x8, _IMA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IMA@GOTPAGEOFF]
Lloh17:
	ldr	w7, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x5, x19
	bl	_gru_bcopy
	ldr	x0, [sp, #8]
	bl	_gru_wait
	mov	x19, x0
	ldp	x1, x0, [sp]
	bl	_gru_free_cpu_resources
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_copy_gpa,4,2                   ; @copy_gpa
	.comm	_GRU_NUM_KERNEL_DSR_BYTES,4,2   ; @GRU_NUM_KERNEL_DSR_BYTES
	.comm	_MQE_BUG_NO_RESOURCES,4,2       ; @MQE_BUG_NO_RESOURCES
	.comm	_XTYPE_B,4,2                    ; @XTYPE_B
	.comm	_GRU_NUM_KERNEL_DSR_CL,4,2      ; @GRU_NUM_KERNEL_DSR_CL
	.comm	_IMA,4,2                        ; @IMA
.subsections_via_symbols
