	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chassis_frontend_lua_setenv
_chassis_frontend_lua_setenv:           ## @chassis_frontend_lua_setenv
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	$1, %edx
	callq	_g_setenv
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_getenv
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_getenv
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_g_critical
	jmp	LBB0_5
LBB0_2:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_g_critical
LBB0_5:
	xorl	%eax, %eax
	cmpq	$1, %r15
	sbbl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: setting %s = %s failed: (getenv() == NULL)"

	.comm	_G_STRLOC,4,2                   ## @G_STRLOC
L_.str.1:                               ## @.str.1
	.asciz	"%s: setting %s = %s failed: (getenv() == %s)"

	.no_dead_strip	_chassis_frontend_lua_setenv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chassis_frontend_lua_setenv
_chassis_frontend_lua_setenv:           ; @chassis_frontend_lua_setenv
	.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, x1
	mov	x21, x0
	mov	w2, #1
	bl	_g_setenv
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x21
	bl	_getenv
	cbz	w0, LBB0_4
; %bb.2:
	mov	x1, x19
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_getenv
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	mov	x2, x21
	mov	x3, x19
	bl	_g_critical
LBB0_6:
	cmp	x20, #0
	csetm	w0, eq
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: setting %s = %s failed: (getenv() == NULL)"

	.comm	_G_STRLOC,4,2                   ; @G_STRLOC
l_.str.1:                               ; @.str.1
	.asciz	"%s: setting %s = %s failed: (getenv() == %s)"

	.no_dead_strip	_chassis_frontend_lua_setenv
.subsections_via_symbols
