	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_windows_environment
_setup_windows_environment:             ## @setup_windows_environment
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_setenv
	movq	%rbx, %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	%rax, %rdi
	callq	_convert_slashes
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edx
	callq	_setenv
LBB0_7:
	leaq	L_.str.5(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_14
## %bb.8:
	leaq	L_.str.6(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -16(%rbp)
	leaq	-16(%rbp), %rdi
	movq	%rax, %rsi
	callq	_strbuf_addstr
	leaq	L_.str.7(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	-16(%rbp), %rdi
	movq	%rax, %rsi
	callq	_strbuf_addstr
	movq	-16(%rbp), %rdi
	callq	_is_directory
	testq	%rax, %rax
	je	LBB0_11
## %bb.15:
	movq	-16(%rbp), %rsi
	leaq	L_.str.5(%rip), %rdi
	movl	$1, %edx
	callq	_setenv
	leaq	-16(%rbp), %rdi
	callq	_strbuf_release
	jmp	LBB0_14
LBB0_11:
	leaq	-16(%rbp), %rdi
	callq	_strbuf_release
LBB0_12:
	leaq	L_.str.8(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_setenv
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TMPDIR"

L_.str.1:                               ## @.str.1
	.asciz	"TMP"

L_.str.2:                               ## @.str.2
	.asciz	"TEMP"

L_.str.3:                               ## @.str.3
	.asciz	"TERM"

L_.str.4:                               ## @.str.4
	.asciz	"cygwin"

L_.str.5:                               ## @.str.5
	.asciz	"HOME"

L_.str.6:                               ## @.str.6
	.asciz	"HOMEDRIVE"

	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
L_.str.7:                               ## @.str.7
	.asciz	"HOMEPATH"

L_.str.8:                               ## @.str.8
	.asciz	"USERPROFILE"

	.no_dead_strip	_setup_windows_environment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_windows_environment
_setup_windows_environment:             ; @setup_windows_environment
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	mov	x1, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	mov	x1, x0
	cbz	x0, LBB0_5
LBB0_3:
Lloh6:
	adrp	x19, l_.str@PAGE
Lloh7:
	add	x19, x19, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_setenv
	mov	x0, x19
	bl	_getenv
	cbz	x0, LBB0_5
LBB0_4:
	bl	_convert_slashes
LBB0_5:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_7
; %bb.6:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #1
	bl	_setenv
LBB0_7:
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_15
; %bb.8:
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_13
; %bb.9:
	mov	x1, x0
Lloh18:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	add	x0, sp, #8
	bl	_strbuf_addstr
Lloh21:
	adrp	x0, l_.str.7@PAGE
Lloh22:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_12
; %bb.10:
	mov	x1, x0
	add	x0, sp, #8
	bl	_strbuf_addstr
	ldr	x0, [sp, #8]
	bl	_is_directory
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x1, [sp, #8]
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	w2, #1
	bl	_setenv
	add	x0, sp, #8
	bl	_strbuf_release
	b	LBB0_15
LBB0_12:
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_13:
Lloh25:
	adrp	x0, l_.str.8@PAGE
Lloh26:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_15
; %bb.14:
	mov	x1, x0
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	w2, #1
	bl	_setenv
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TMPDIR"

l_.str.1:                               ; @.str.1
	.asciz	"TMP"

l_.str.2:                               ; @.str.2
	.asciz	"TEMP"

l_.str.3:                               ; @.str.3
	.asciz	"TERM"

l_.str.4:                               ; @.str.4
	.asciz	"cygwin"

l_.str.5:                               ; @.str.5
	.asciz	"HOME"

l_.str.6:                               ; @.str.6
	.asciz	"HOMEDRIVE"

	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
l_.str.7:                               ; @.str.7
	.asciz	"HOMEPATH"

l_.str.8:                               ; @.str.8
	.asciz	"USERPROFILE"

	.no_dead_strip	_setup_windows_environment
.subsections_via_symbols
