	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_environment_variables    ## -- Begin function setup_environment_variables
	.p2align	4, 0x90
_setup_environment_variables:           ## @setup_environment_variables
	.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
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	leaq	-16(%rbp), %rdi
	movq	%rax, %rdx
	callq	_hc_asprintf
	movq	-16(%rbp), %rdi
	callq	_putenv
	movq	-16(%rbp), %rdi
	callq	_free
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	callq	_putenv
LBB0_4:
	leaq	L_.str.4(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	$0, -16(%rbp)
	movq	(%rbx), %rdx
	leaq	L_.str.5(%rip), %rsi
	leaq	-16(%rbp), %rdi
	callq	_hc_asprintf
	movq	-16(%rbp), %rdi
	callq	_putenv
LBB0_6:
	leaq	L_.str.6(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.7(%rip), %rdi
	callq	_putenv
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"COMPUTE"

L_.str.1:                               ## @.str.1
	.asciz	"DISPLAY=%s"

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

L_.str.3:                               ## @.str.3
	.asciz	"DISPLAY=:0"

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

L_.str.5:                               ## @.str.5
	.asciz	"TMPDIR=%s"

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

L_.str.7:                               ## @.str.7
	.asciz	"CL_CONFIG_USE_VECTORIZER=False"

	.comm	_CW_SYNC_WINENV,4,2             ## @CW_SYNC_WINENV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_environment_variables    ; -- Begin function setup_environment_variables
	.p2align	2
_setup_environment_variables:           ; @setup_environment_variables
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_hc_asprintf
	ldr	x0, [sp, #8]
	bl	_putenv
	ldr	x0, [sp, #8]
	bl	_free
	b	LBB0_4
LBB0_2:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_putenv
LBB0_4:
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_6
; %bb.5:
	str	xzr, [sp, #8]
	ldr	x2, [x19]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #8
	bl	_hc_asprintf
	ldr	x0, [sp, #8]
	bl	_putenv
LBB0_6:
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_8
; %bb.7:
Lloh14:
	adrp	x0, l_.str.7@PAGE
Lloh15:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_putenv
LBB0_8:
	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	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"COMPUTE"

l_.str.1:                               ; @.str.1
	.asciz	"DISPLAY=%s"

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

l_.str.3:                               ; @.str.3
	.asciz	"DISPLAY=:0"

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

l_.str.5:                               ; @.str.5
	.asciz	"TMPDIR=%s"

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

l_.str.7:                               ; @.str.7
	.asciz	"CL_CONFIG_USE_VECTORIZER=False"

	.comm	_CW_SYNC_WINENV,4,2             ; @CW_SYNC_WINENV
.subsections_via_symbols
