	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function makemask
_makemask:                              ## @makemask
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$99, %esi
	callq	_strchr
	xorl	%r12d, %r12d
	movl	$0, %r13d
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_LUA_MASKCALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_2:
	movq	%r15, %rdi
	movl	$114, %esi
	callq	_strchr
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_LUA_MASKRET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	movq	%r15, %rdi
	movl	$108, %esi
	callq	_strchr
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_LUA_MASKLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_6:
	orl	%r13d, %ebx
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.7:
	movq	_LUA_MASKCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_8:
	orl	%r12d, %ecx
	orl	%ecx, %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_MASKCALL,4,2               ## @LUA_MASKCALL
	.comm	_LUA_MASKRET,4,2                ## @LUA_MASKRET
	.comm	_LUA_MASKLINE,4,2               ## @LUA_MASKLINE
	.comm	_LUA_MASKCOUNT,4,2              ## @LUA_MASKCOUNT
	.no_dead_strip	_makemask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function makemask
_makemask:                              ; @makemask
	.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	x19, x1
	mov	x20, x0
	mov	w1, #99
	bl	_strchr
Lloh0:
	adrp	x8, _LUA_MASKCALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LUA_MASKCALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w21, wzr, w8, eq
	mov	x0, x20
	mov	w1, #114
	bl	_strchr
Lloh3:
	adrp	x8, _LUA_MASKRET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LUA_MASKRET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w21, w8, w21
	mov	x0, x20
	mov	w1, #108
	bl	_strchr
Lloh6:
	adrp	x8, _LUA_MASKLINE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LUA_MASKLINE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
Lloh9:
	adrp	x9, _LUA_MASKCOUNT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LUA_MASKCOUNT@GOTPAGEOFF]
	orr	w8, w21, w8
Lloh11:
	ldr	w9, [x9]
	cmp	w19, #0
	csel	w9, w9, wzr, gt
	orr	w0, w8, w9
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_MASKCALL,4,2               ; @LUA_MASKCALL
	.comm	_LUA_MASKRET,4,2                ; @LUA_MASKRET
	.comm	_LUA_MASKLINE,4,2               ; @LUA_MASKLINE
	.comm	_LUA_MASKCOUNT,4,2              ; @LUA_MASKCOUNT
	.no_dead_strip	_makemask
.subsections_via_symbols
