	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Main_SetVarObjdir
_Main_SetVarObjdir:                     ## @Main_SetVarObjdir
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_VAR_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_Var_Value
	movq	%rax, %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	cmpb	$0, (%rbx)
	je	LBB0_7
## %bb.2:
	movq	%rbx, %rdi
	movl	$36, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_VAR_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VARF_WANTRES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_Var_Subst
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_Main_SetObjdir
	cmpq	%rbx, %r15
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_Main_SetObjdir
LBB0_6:
	movq	-32(%rbp), %rdi
	callq	_free
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VAR_CMD,4,2                    ## @VAR_CMD
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_VAR_GLOBAL,4,2                 ## @VAR_GLOBAL
	.comm	_VARF_WANTRES,4,2               ## @VARF_WANTRES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_Main_SetVarObjdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Main_SetVarObjdir
_Main_SetVarObjdir:                     ; @Main_SetVarObjdir
	.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
Lloh0:
	adrp	x8, _VAR_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VAR_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_Var_Value
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x0, x20
	mov	w1, #36
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _VAR_GLOBAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VAR_GLOBAL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _VARF_WANTRES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VARF_WANTRES@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, x20
	bl	_Var_Subst
	mov	x21, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	bl	_Main_SetObjdir
	cmp	x21, x20
	b.eq	LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_free
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _FALSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_Main_SetObjdir
LBB0_7:
	ldr	x0, [sp, #8]
	bl	_free
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_VAR_CMD,4,2                    ; @VAR_CMD
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_VAR_GLOBAL,4,2                 ; @VAR_GLOBAL
	.comm	_VARF_WANTRES,4,2               ; @VARF_WANTRES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_Main_SetVarObjdir
.subsections_via_symbols
