	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_tempdir
_get_tempdir:                           ## @get_tempdir
	.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
	leaq	L_.str.1(%rip), %rsi
	cmovneq	%rax, %rsi
	movq	%rbx, %rdi
	callq	_archive_strcpy
	movq	(%rbx), %rax
	movslq	8(%rbx), %rcx
	cmpb	$47, -1(%rcx,%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_archive_strappend_char
LBB0_2:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	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"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	__PATH_TMP,8,3                  ## @_PATH_TMP
	.no_dead_strip	_get_tempdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_tempdir
_get_tempdir:                           ; @get_tempdir
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x1, x8, x0, eq
	mov	x0, x19
	bl	_archive_strcpy
	ldr	x8, [x19]
	ldrsw	x9, [x19, #8]
	add	x8, x9, x8
	ldurb	w8, [x8, #-1]
	cmp	w8, #47
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #47
	bl	_archive_strappend_char
LBB0_2:
Lloh4:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TMPDIR"

l_.str.1:                               ; @.str.1
	.asciz	"/tmp"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	__PATH_TMP,8,3                  ; @_PATH_TMP
	.no_dead_strip	_get_tempdir
.subsections_via_symbols
