	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function which_tmpdir
_which_tmpdir:                          ## @which_tmpdir
	.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
	subq	$144, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movq	_checked_tmpdir@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_17
## %bb.1:
	movl	$1, (%rax)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movl	%eax, %r15d
	leaq	-176(%rbp), %r12
	leaq	L_.str.3(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	movl	$32, %ecx
	callq	_next
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_strncmp
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	movl	$10, %ecx
	callq	_next
	cmpl	$1, %eax
	je	LBB0_3
	jmp	LBB0_11
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_20
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	addq	$144, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_8:
	leaq	-176(%rbp), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	movl	$32, %ecx
	callq	_next
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.9:
	leaq	L_.str.6(%rip), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	leaq	-176(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	leaq	L_str.9(%rip), %rdi
	jmp	LBB0_15
LBB0_11:
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	jns	LBB0_16
## %bb.13:
	negl	%eax
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_16
LBB0_14:
	leaq	L_str.10(%rip), %rdi
LBB0_15:
	callq	_puts
LBB0_16:
	movl	%r15d, %edi
	callq	_close
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_20
## %bb.18:
	addq	$144, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_default_tmpdir@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	jmp	LBB0_16
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_checked_tmpdir,4,2             ## @checked_tmpdir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Checking for tmpfs mount on /dev/shm..."

L_.str.1:                               ## @.str.1
	.asciz	"/proc/mounts"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.2:                               ## @.str.2
	.asciz	"failed to open /proc/mounts, errno = %d\n"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"/dev/shm"

L_.str.5:                               ## @.str.5
	.asciz	"read returned errno %d\n"

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

	.comm	_default_tmpdir,8,3             ## @default_tmpdir
L_str:                                  ## @str
	.asciz	"OK"

L_str.9:                                ## @str.9
	.asciz	"not tmpfs"

L_str.10:                               ## @str.10
	.asciz	"nothing mounted on /dev/shm"

	.no_dead_strip	_which_tmpdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function which_tmpdir
_which_tmpdir:                          ; @which_tmpdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
Lloh3:
	adrp	x8, _checked_tmpdir@GOTPAGE
Lloh4:
	ldr	x8, [x8, _checked_tmpdir@GOTPAGEOFF]
	ldr	w9, [x8]
	cbnz	w9, LBB0_16
; %bb.1:
	mov	w9, #1
	str	w9, [x8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh7:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_open
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x19, x0
Lloh12:
	adrp	x20, l_.str.3@PAGE
Lloh13:
	add	x20, x20, l_.str.3@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #16
	mov	x0, x19
	mov	w3, #32
	bl	_next
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	add	x0, sp, #16
	mov	x1, x20
	bl	_strncmp
	mov	x21, x0
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #16
	mov	x0, x19
	cbz	x21, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w3, #10
	bl	_next
	cmp	w0, #1
	b.eq	LBB0_3
	b	LBB0_10
LBB0_6:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	b	LBB0_16
LBB0_7:
	mov	w3, #32
	bl	_next
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.8:
Lloh19:
	adrp	x21, l_.str.6@PAGE
Lloh20:
	add	x21, x21, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	add	x0, sp, #16
	mov	x1, x21
	bl	_strncmp
	cbz	x0, LBB0_18
; %bb.9:
Lloh21:
	adrp	x0, l_str.9@PAGE
Lloh22:
	add	x0, x0, l_str.9@PAGEOFF
	b	LBB0_14
LBB0_10:
	cbz	w0, LBB0_13
; %bb.11:
	tbz	w0, #31, LBB0_15
; %bb.12:
	neg	w8, w0
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	b	LBB0_15
LBB0_13:
Lloh25:
	adrp	x0, l_str.10@PAGE
Lloh26:
	add	x0, x0, l_str.10@PAGEOFF
LBB0_14:
	bl	_puts
LBB0_15:
	mov	x0, x19
	bl	_close
LBB0_16:
	ldur	x8, [x29, #-40]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.17:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_18:
Lloh30:
	adrp	x0, l_str@PAGE
Lloh31:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh32:
	adrp	x8, _default_tmpdir@GOTPAGE
Lloh33:
	ldr	x8, [x8, _default_tmpdir@GOTPAGEOFF]
Lloh34:
	str	x20, [x8]
	b	LBB0_15
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_checked_tmpdir,4,2             ; @checked_tmpdir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Checking for tmpfs mount on /dev/shm..."

l_.str.1:                               ; @.str.1
	.asciz	"/proc/mounts"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.2:                               ; @.str.2
	.asciz	"failed to open /proc/mounts, errno = %d\n"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"/dev/shm"

l_.str.5:                               ; @.str.5
	.asciz	"read returned errno %d\n"

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

	.comm	_default_tmpdir,8,3             ; @default_tmpdir
l_str:                                  ; @str
	.asciz	"OK"

l_str.9:                                ; @str.9
	.asciz	"not tmpfs"

l_str.10:                               ; @str.10
	.asciz	"nothing mounted on /dev/shm"

	.no_dead_strip	_which_tmpdir
.subsections_via_symbols
