	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chassis_frontend_init_lua_paths
_chassis_frontend_init_lua_paths:       ## @chassis_frontend_init_lua_paths
	.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	%rcx, %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	testq	%rcx, %rcx
	jne	LBB0_1
## %bb.2:
	movq	_LUA_CPATH@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_LUA_PATH@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %r12
	movq	%r12, %rdi
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rsi
	callq	_chassis_frontend_lua_setenv
	testq	%rax, %rax
	je	LBB0_23
## %bb.5:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_g_strerror
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_g_critical
	jmp	LBB0_23
LBB0_6:
	callq	_g_getenv
	testl	%eax, %eax
	jne	LBB0_23
## %bb.7:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_g_string_new
	movq	%rax, %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_g_string_append
	movq	%r14, %rdi
	callq	_g_free
	incq	%r12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r13, %r13
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testq	%r12, %r12
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	testq	%r13, %r13
	jne	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	testq	%r15, %r15
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_chassis_frontend_get_default_lua_path
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_chassis_frontend_get_default_lua_cpath
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r14
	cmpq	$0, (%rbx)
	jle	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_LUA_PATHSEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_C
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_g_string_append_len
	jmp	LBB0_18
LBB0_19:
	cmpq	$0, (%rbx)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_22
## %bb.20:
	movq	8(%rbx), %rsi
	movq	%r12, %rdi
	callq	_chassis_frontend_lua_setenv
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	8(%rbx), %r15
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_g_strerror
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movl	%eax, %r8d
	callq	_g_critical
LBB0_22:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_g_string_free
LBB0_23:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_PATH,8,3                   ## @LUA_PATH
	.comm	_LUA_CPATH,8,3                  ## @LUA_CPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: setting %s = %s failed: %s"

	.comm	_G_STRLOC,4,2                   ## @G_STRLOC
	.comm	_errno,4,2                      ## @errno
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_LUA_PATHSEP,4,2                ## @LUA_PATHSEP
	.comm	_TRUE,8,3                       ## @TRUE
	.no_dead_strip	_chassis_frontend_init_lua_paths
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chassis_frontend_init_lua_paths
_chassis_frontend_init_lua_paths:       ; @chassis_frontend_init_lua_paths
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _LUA_PATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LUA_PATH@GOTPAGEOFF]
Lloh2:
	adrp	x9, _LUA_CPATH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LUA_CPATH@GOTPAGEOFF]
	cmp	x3, #0
	csel	x8, x9, x8, eq
	ldr	x19, [x8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_chassis_frontend_lua_setenv
	cbz	x0, LBB0_20
; %bb.2:
Lloh4:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_g_strerror
	mov	x4, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_g_critical
	b	LBB0_20
LBB0_3:
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x0, x19
	bl	_g_getenv
	cbnz	w0, LBB0_20
; %bb.4:
	mov	x0, #0
	bl	_g_string_new
	mov	x20, x0
	mov	x25, #0
Lloh12:
	adrp	x8, _FALSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh14:
	ldr	x26, [x8]
Lloh15:
	adrp	x27, _LUA_PATHSEP@GOTPAGE
Lloh16:
	ldr	x27, [x27, _LUA_PATHSEP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_g_string_append
	mov	x0, x24
	bl	_g_free
	add	x25, x25, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x26, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	x25, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, #0
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	cbnz	x26, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x22, x25, lsl #3]
	cbz	x1, LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	cbz	x21, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_chassis_frontend_get_default_lua_path
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_chassis_frontend_get_default_lua_cpath
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x0
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x27]
	bl	_C
	mov	x1, x0
	mov	x0, x20
	bl	_g_string_append_len
	b	LBB0_5
LBB0_16:
	ldr	x8, [x20]
	cbz	x8, LBB0_19
; %bb.17:
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_chassis_frontend_lua_setenv
	cbz	x0, LBB0_19
; %bb.18:
Lloh17:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
	ldr	x22, [x20, #8]
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_g_strerror
	mov	x4, x0
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	bl	_g_critical
LBB0_19:
Lloh25:
	adrp	x8, _TRUE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh27:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_g_string_free
LBB0_20:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_PATH,8,3                   ; @LUA_PATH
	.comm	_LUA_CPATH,8,3                  ; @LUA_CPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: setting %s = %s failed: %s"

	.comm	_G_STRLOC,4,2                   ; @G_STRLOC
	.comm	_errno,4,2                      ; @errno
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_LUA_PATHSEP,4,2                ; @LUA_PATHSEP
	.comm	_TRUE,8,3                       ; @TRUE
	.no_dead_strip	_chassis_frontend_init_lua_paths
.subsections_via_symbols
