	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookforfunc
_lookforfunc:                           ## @lookforfunc
	.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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_checkclib
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpb	$42, (%r14)
	jne	LBB0_5
LBB0_2:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_lua_pushboolean
	jmp	LBB0_7
LBB0_3:
	xorl	%edx, %edx
	cmpb	$42, (%r14)
	sete	%dl
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_lsys_load
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_addtoclib
	cmpb	$42, (%r14)
	je	LBB0_2
LBB0_5:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_lsys_sym
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_lua_pushcfunction
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_8:
	movq	_ERRFUNC@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ERRLIB@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERRLIB,4,2                     ## @ERRLIB
	.comm	_ERRFUNC,4,2                    ## @ERRFUNC
	.no_dead_strip	_lookforfunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookforfunc
_lookforfunc:                           ; @lookforfunc
	.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, x2
	mov	x21, x1
	mov	x19, x0
	bl	_checkclib
	mov	x22, x0
	cbnz	x0, LBB0_3
; %bb.1:
	ldrb	w8, [x20]
	cmp	w8, #42
	cset	w2, eq
	mov	x0, x19
	mov	x1, x21
	bl	_lsys_load
	cbz	x0, LBB0_9
; %bb.2:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_addtoclib
LBB0_3:
	ldrb	w8, [x20]
	cmp	w8, #42
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pushboolean
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_lsys_sym
	cbz	x0, LBB0_8
; %bb.6:
	mov	x1, x0
	mov	x0, x19
	bl	_lua_pushcfunction
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh0:
	adrp	x8, _ERRFUNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERRFUNC@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh2:
	adrp	x8, _ERRLIB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERRLIB@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
	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 AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ERRLIB,4,2                     ; @ERRLIB
	.comm	_ERRFUNC,4,2                    ; @ERRFUNC
	.no_dead_strip	_lookforfunc
.subsections_via_symbols
