	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GETTEMP
_GETTEMP:                               ## @GETTEMP
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	__DIAGASSERT
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_getpid
                                        ## kill: def $eax killed $eax def $rax
	movq	%r14, %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movl	%ebx, %ecx
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movl	%ecx, %ebx
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12), %edx
	cmpb	$88, %dl
	je	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, %ecx
	testb	%dl, %dl
	jne	LBB0_2
## %bb.5:
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.6:
	movb	_GETTEMP.xtra.0(%rip), %cl
	movb	%cl, -1(%r12)
	leal	-1(%rbx), %edx
	cmpl	$6, %edx
	jb	LBB0_9
## %bb.7:
	movb	_GETTEMP.xtra.1(%rip), %cl
	movb	%cl, -2(%r12)
	addq	$-2, %r12
	addl	$-2, %ebx
	movl	%ebx, %edx
	jmp	LBB0_10
LBB0_8:
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_9:
	decq	%r12
	testl	%edx, %edx
	je	LBB0_12
LBB0_10:
	incl	%edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rcx
	imulq	$1717986919, %rcx, %rax         ## imm = 0x66666667
	movq	%rax, %rsi
	shrq	$63, %rsi
	sarq	$34, %rax
	addl	%esi, %eax
	leal	(%rax,%rax), %esi
	leal	(%rsi,%rsi,4), %esi
	subl	%esi, %ecx
	addb	$48, %cl
	movb	%cl, -1(%r12)
	decq	%r12
	decl	%edx
	cmpl	$1, %edx
	ja	LBB0_11
LBB0_12:
	movb	_GETTEMP.xtra.0(%rip), %al
	cmpb	$122, %al
	jne	LBB0_15
## %bb.13:
	movb	$97, _GETTEMP.xtra.0(%rip)
	movb	_GETTEMP.xtra.1(%rip), %al
	cmpb	$122, %al
	jne	LBB0_16
## %bb.14:
	movb	$97, _GETTEMP.xtra.1(%rip)
	cmpq	%r14, %r12
	ja	LBB0_17
	jmp	LBB0_24
LBB0_15:
	incb	%al
	movb	%al, _GETTEMP.xtra.0(%rip)
	cmpq	%r14, %r12
	ja	LBB0_17
	jmp	LBB0_24
LBB0_16:
	incb	%al
	movb	%al, _GETTEMP.xtra.1(%rip)
	cmpq	%r14, %r12
	jbe	LBB0_24
LBB0_17:
	movq	%r12, %rbx
	cmpb	$47, %cl
	je	LBB0_22
## %bb.18:
	leaq	-1(%r12), %rax
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %rax
	jbe	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	-1(%rax), %rbx
	cmpb	$47, (%rax)
	movq	%rbx, %rax
	jne	LBB0_19
## %bb.21:
	incq	%rbx
LBB0_22:
	movb	$0, (%rbx)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stat
	movb	$47, (%rbx)
	cmpl	$-1, %eax
	je	LBB0_38
## %bb.23:
	movl	-48(%rbp), %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	je	LBB0_37
LBB0_24:
	incq	%r12
	movq	_EEXIST@GOTPCREL(%rip), %rbx
	testq	%r15, %r15
	jne	LBB0_25
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_33:
	movzbl	%al, %edi
	callq	_isdigit
	movb	$97, %cl
	testq	%rax, %rax
	jne	LBB0_35
## %bb.34:
	movb	(%r13), %cl
	incb	%cl
LBB0_35:
	movb	%cl, (%r13)
	testq	%r15, %r15
	je	LBB0_26
LBB0_25:
	movq	_O_EXCL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_28
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_26:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_29
## %bb.27:
	movq	%r14, %rdi
	movl	$448, %esi                      ## imm = 0x1C0
	callq	_mkdir
	testq	%rax, %rax
	jns	LBB0_41
LBB0_28:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r12, %r13
	cmpq	(%rbx), %rax
	je	LBB0_31
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_29:
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	callq	_lstat
	movq	%r12, %r13
	testq	%rax, %rax
	je	LBB0_31
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_31 Depth=1
	movb	$97, (%r13)
	incq	%r13
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13), %eax
	cmpb	$122, %al
	je	LBB0_30
## %bb.32:
	testb	%al, %al
	jne	LBB0_33
LBB0_36:
	xorl	%eax, %eax
	jmp	LBB0_39
LBB0_37:
	movq	_ENOTDIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_38:
	testq	%r15, %r15
	sete	%cl
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	sete	%al
	andb	%cl, %al
LBB0_39:
	movzbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	movb	$1, %al
	jmp	LBB0_39
LBB0_42:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%al
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
_GETTEMP.xtra.0:                        ## @GETTEMP.xtra.0
	.byte	97                              ## 0x61

_GETTEMP.xtra.1:                        ## @GETTEMP.xtra.1
	.byte	97                              ## 0x61

	.comm	_ENOTDIR,8,3                    ## @ENOTDIR
	.comm	_errno,8,3                      ## @errno
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_EXCL,4,2                     ## @O_EXCL
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_EEXIST,8,3                     ## @EEXIST
	.comm	_ENOENT,8,3                     ## @ENOENT
	.no_dead_strip	_GETTEMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GETTEMP
_GETTEMP:                               ; @GETTEMP
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w2, [sp, #4]                    ; 4-byte Folded Spill
	mov	x20, x1
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	__DIAGASSERT
	bl	_getpid
	mov	w10, #0
	mov	x22, x21
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w10, w10, #1
	add	x22, x22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22]
	cmp	w8, #88
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w10, #0
	add	x22, x22, #1
	b	LBB0_2
LBB0_5:
	adrp	x8, _GETTEMP.xtra.0@PAGE
	subs	w11, w10, #1
	b.lt	LBB0_8
; %bb.6:
	ldrb	w9, [x8, _GETTEMP.xtra.0@PAGEOFF]
	mov	x12, x22
	strb	w9, [x12, #-1]!
	cmp	w11, #6
	b.lo	LBB0_9
; %bb.7:
	adrp	x9, _GETTEMP.xtra.1@PAGE
	ldrb	w9, [x9, _GETTEMP.xtra.1@PAGEOFF]
	strb	w9, [x22, #-2]!
	sub	w11, w10, #2
	b	LBB0_10
LBB0_8:
	mov	w9, #0
	b	LBB0_12
LBB0_9:
	mov	x22, x12
	cbz	w11, LBB0_12
LBB0_10:
	add	w10, w11, #1
	mov	w11, #26215
	movk	w11, #26214, lsl #16
	mov	w12, #10
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	smull	x9, w0, w11
	lsr	x13, x9, #63
	asr	x9, x9, #34
	add	w13, w9, w13
	msub	w9, w13, w12, w0
	add	w9, w9, #48
	strb	w9, [x22, #-1]!
	sub	w10, w10, #1
	mov	x0, x13
	cmp	w10, #1
	b.hi	LBB0_11
LBB0_12:
	ldrb	w10, [x8, _GETTEMP.xtra.0@PAGEOFF]
	cmp	w10, #122
	b.ne	LBB0_16
; %bb.13:
	mov	w10, #97
	strb	w10, [x8, _GETTEMP.xtra.0@PAGEOFF]
	adrp	x8, _GETTEMP.xtra.1@PAGE
	ldrb	w11, [x8, _GETTEMP.xtra.1@PAGEOFF]
	cmp	w11, #122
	b.eq	LBB0_15
; %bb.14:
	add	w10, w11, #1
LBB0_15:
	strb	w10, [x8, _GETTEMP.xtra.1@PAGEOFF]
	cmp	x22, x21
	b.hi	LBB0_17
	b	LBB0_24
LBB0_16:
	add	w10, w10, #1
	strb	w10, [x8, _GETTEMP.xtra.0@PAGEOFF]
	cmp	x22, x21
	b.ls	LBB0_24
LBB0_17:
	and	w8, w9, #0xff
	mov	x19, x22
	cmp	w8, #47
	b.eq	LBB0_22
; %bb.18:
	sub	x8, x22, #1
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	cmp	x8, x21
	b.ls	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldrb	w9, [x8], #-1
	cmp	w9, #47
	b.ne	LBB0_19
; %bb.21:
	add	x19, x8, #1
LBB0_22:
	strb	wzr, [x19]
	add	x1, sp, #8
	mov	x0, x21
	bl	_stat
	mov	w8, #47
	strb	w8, [x19]
	cmn	w0, #1
	b.eq	LBB0_39
; %bb.23:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	w0, LBB0_38
LBB0_24:
	add	x19, x22, #1
Lloh0:
	adrp	x23, _errno@GOTPAGE
Lloh1:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x24, _EEXIST@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EEXIST@GOTPAGEOFF]
	mov	w25, #97
Lloh4:
	adrp	x26, _O_CREAT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _O_CREAT@GOTPAGEOFF]
Lloh6:
	adrp	x27, _O_EXCL@GOTPAGE
Lloh7:
	ldr	x27, [x27, _O_EXCL@GOTPAGEOFF]
Lloh8:
	adrp	x28, _O_RDWR@GOTPAGE
Lloh9:
	ldr	x28, [x28, _O_RDWR@GOTPAGEOFF]
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_33 Depth 2
	cbz	x20, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x28]
	orr	w1, w8, w9
	mov	x0, x21
	mov	w2, #384
	bl	_open
	str	w0, [x20]
	tbz	w0, #31, LBB0_42
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	mov	x22, x19
	cmp	x8, x9
	b.eq	LBB0_33
	b	LBB0_43
LBB0_28:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x0, x21
	mov	w1, #448
	bl	_mkdir
	tbz	x0, #63, LBB0_42
; %bb.30:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	mov	x22, x19
	cmp	x8, x9
	b.eq	LBB0_33
	b	LBB0_43
LBB0_31:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_lstat
	mov	x22, x19
	cbz	x0, LBB0_33
	b	LBB0_44
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=2
	strb	w25, [x22], #1
LBB0_33:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w0, [x22]
	cmp	w0, #122
	b.eq	LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_25 Depth=1
	cbz	w0, LBB0_41
; %bb.35:                               ;   in Loop: Header=BB0_25 Depth=1
	bl	_isdigit
	cbz	x0, LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	w8, #97
	strb	w8, [x22]
	b	LBB0_25
LBB0_37:                                ;   in Loop: Header=BB0_25 Depth=1
	ldrb	w8, [x22]
	add	w8, w8, #1
	strb	w8, [x22]
	b	LBB0_25
LBB0_38:
Lloh10:
	adrp	x8, _ENOTDIR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOTDIR@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _errno@GOTPAGE
Lloh14:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh15:
	str	x8, [x9]
LBB0_39:
	cmp	x20, #0
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	ccmp	w8, #0, #0, eq
LBB0_40:
	cset	w0, eq
LBB0_41:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_42:
	mov	w0, #1
	b	LBB0_41
LBB0_43:
	mov	w0, #0
	b	LBB0_41
LBB0_44:
	ldr	x8, [x23]
Lloh16:
	adrp	x9, _ENOENT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b	LBB0_40
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
_GETTEMP.xtra.0:                        ; @GETTEMP.xtra.0
	.byte	97                              ; 0x61

_GETTEMP.xtra.1:                        ; @GETTEMP.xtra.1
	.byte	97                              ; 0x61

	.comm	_ENOTDIR,8,3                    ; @ENOTDIR
	.comm	_errno,8,3                      ; @errno
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_EXCL,4,2                     ; @O_EXCL
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_EEXIST,8,3                     ; @EEXIST
	.comm	_ENOENT,8,3                     ; @ENOENT
	.no_dead_strip	_GETTEMP
.subsections_via_symbols
