	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function finishCcall
_finishCcall:                           ## @finishCcall
	.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, %r15d
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	cmpq	$0, 8(%r14)
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_lua_assert
	movq	_CIST_YPCALL@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	(%r14), %eax
	setne	%al
	movq	_LUA_YIELD@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_lua_assert
	movl	(%r14), %eax
	movl	(%r12), %ecx
	testl	%eax, %ecx
	je	LBB0_5
## %bb.4:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r14)
	movl	20(%r14), %eax
	movl	%eax, 16(%rbx)
LBB0_5:
	movl	24(%r14), %esi
	movq	%rbx, %rdi
	callq	_adjustresults
	movq	%rbx, %rdi
	callq	_lua_unlock
	movl	16(%r14), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	*8(%r14)
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_lua_lock
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_api_checknelems
	movq	8(%rbx), %rdx
	movslq	%r15d, %rcx
	subq	%rcx, %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_luaD_poscall                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CIST_YPCALL,4,2                ## @CIST_YPCALL
	.comm	_LUA_YIELD,4,2                  ## @LUA_YIELD
	.no_dead_strip	_finishCcall
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function finishCcall
_finishCcall:                           ; @finishCcall
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #24]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_lua_assert
	ldr	w8, [x19]
Lloh0:
	adrp	x22, _CIST_YPCALL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CIST_YPCALL@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
Lloh2:
	adrp	x8, _LUA_YIELD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LUA_YIELD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ccmp	w8, w21, #4, eq
	cset	w0, eq
	bl	_lua_assert
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	bic	w8, w8, w9
	str	w8, [x19]
	ldr	w8, [x19, #20]
	str	w8, [x20, #16]
LBB0_5:
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_adjustresults
	mov	x0, x20
	bl	_lua_unlock
	ldr	x8, [x19, #8]
	ldr	w2, [x19, #16]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	mov	x21, x0
	mov	x0, x20
	bl	_lua_lock
	mov	x0, x20
	mov	x1, x21
	bl	_api_checknelems
	ldr	x8, [x20, #8]
	sub	x2, x8, w21, sxtw
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	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
	b	_luaD_poscall
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CIST_YPCALL,4,2                ; @CIST_YPCALL
	.comm	_LUA_YIELD,4,2                  ; @LUA_YIELD
	.no_dead_strip	_finishCcall
.subsections_via_symbols
