	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tinit                          ## -- Begin function tinit
	.p2align	4, 0x90
_tinit:                                 ## @tinit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	_tmpdir@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpb	$0, (%rax)
	jne	LBB0_3
LBB0_2:
	movq	__PATH_TMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_3:
	movq	%rax, %rdi
	callq	_strdup
	movq	%rax, %rbx
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	movq	(%r14), %rbx
LBB0_5:
	movq	%rbx, %rdi
	callq	_strlen
	addq	%rbx, %rax
	decq	%rax
	cmpq	%rbx, %rax
	jbe	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$47, (%rax)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movb	$0, (%rax)
	decq	%rax
	cmpq	(%r14), %rax
	ja	LBB0_6
LBB0_8:
	movq	_myname@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	callq	_getuserid
	testq	%rax, %rax
	jns	LBB0_15
## %bb.10:
	movq	(%r14), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_15
LBB0_11:
	xorl	%eax, %eax
	callq	_username
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, %rdi
	callq	_savestr
	movq	%rax, (%r14)
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%r14)
	movq	_rcvmode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_15:
	leaq	L_.str.5(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_21
## %bb.16:
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	je	LBB0_21
## %bb.17:
	movq	%rbx, %rdi
	callq	_strlen
	movq	_PATHSIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_21
## %bb.18:
	movq	%rbx, %rdi
	callq	_savestr
	jmp	LBB0_22
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
	movq	_homedir@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_debug@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_24
## %bb.23:
	movq	(%r14), %rsi
	testq	%rax, %rax
	leaq	L_.str.7(%rip), %rdx
	cmovneq	%rax, %rdx
	leaq	L_.str.6(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_24:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TMPDIR"

	.comm	_tmpdir,8,3                     ## @tmpdir
	.comm	__PATH_TMP,8,3                  ## @_PATH_TMP
L_.str.1:                               ## @.str.1
	.asciz	"Out of memory"

	.comm	_myname,8,3                     ## @myname
L_.str.2:                               ## @.str.2
	.asciz	"\"%s\" is not a user of this system"

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

	.comm	_rcvmode,8,3                    ## @rcvmode
L_.str.4:                               ## @.str.4
	.asciz	"Who are you!?"

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

	.comm	_PATHSIZE,8,3                   ## @PATHSIZE
	.comm	_homedir,8,3                    ## @homedir
	.comm	_debug,8,3                      ## @debug
L_.str.6:                               ## @.str.6
	.asciz	"user = %s, homedir = %s\n"

L_.str.7:                               ## @.str.7
	.asciz	"NONE"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tinit                          ; -- Begin function tinit
	.p2align	2
_tinit:                                 ; @tinit
	.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
Lloh2:
	adrp	x20, _tmpdir@GOTPAGE
Lloh3:
	ldr	x20, [x20, _tmpdir@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	ldrb	w8, [x0]
	cbnz	w8, LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, __PATH_TMP@GOTPAGE
Lloh5:
	ldr	x8, [x8, __PATH_TMP@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
	str	x0, [x20]
LBB0_3:
	bl	_strdup
	mov	x19, x0
	str	x0, [x20]
	cbnz	x0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x19, [x20]
LBB0_5:
	mov	x0, x19
	bl	_strlen
	add	x8, x19, x0
	sub	x8, x8, #1
	cmp	x8, x19
	b.ls	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8]
	cmp	w9, #47
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	strb	wzr, [x8], #-1
	ldr	x9, [x20]
	cmp	x8, x9
	b.hi	LBB0_6
LBB0_8:
Lloh9:
	adrp	x20, _myname@GOTPAGE
Lloh10:
	ldr	x20, [x20, _myname@GOTPAGEOFF]
	ldr	x0, [x20]
	cbz	x0, LBB0_11
; %bb.9:
	bl	_getuserid
	tbz	x0, #63, LBB0_16
; %bb.10:
	ldr	x8, [x20]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_11:
	bl	_username
	cbz	x0, LBB0_13
; %bb.12:
	bl	_savestr
	str	x0, [x20]
	b	LBB0_16
LBB0_13:
Lloh13:
	adrp	x8, l_.str.3@PAGE
Lloh14:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x20]
Lloh15:
	adrp	x8, _rcvmode@GOTPAGE
Lloh16:
	ldr	x8, [x8, _rcvmode@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.14:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_15:
	mov	w0, #1
	bl	_errx
LBB0_16:
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_21
; %bb.17:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_20
; %bb.18:
	mov	x0, x19
	bl	_strlen
Lloh22:
	adrp	x8, _PATHSIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PATHSIZE@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_savestr
	b	LBB0_21
LBB0_20:
	mov	x0, #0
LBB0_21:
Lloh25:
	adrp	x8, _homedir@GOTPAGE
Lloh26:
	ldr	x8, [x8, _homedir@GOTPAGEOFF]
Lloh27:
	str	x0, [x8]
Lloh28:
	adrp	x8, _debug@GOTPAGE
Lloh29:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cbz	x8, LBB0_23
; %bb.22:
	ldr	x1, [x20]
Lloh31:
	adrp	x8, l_.str.7@PAGE
Lloh32:
	add	x8, x8, l_.str.7@PAGEOFF
	cmp	x0, #0
	csel	x2, x8, x0, eq
Lloh33:
	adrp	x0, l_.str.6@PAGE
Lloh34:
	add	x0, x0, l_.str.6@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_printf
LBB0_23:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TMPDIR"

	.comm	_tmpdir,8,3                     ; @tmpdir
	.comm	__PATH_TMP,8,3                  ; @_PATH_TMP
l_.str.1:                               ; @.str.1
	.asciz	"Out of memory"

	.comm	_myname,8,3                     ; @myname
l_.str.2:                               ; @.str.2
	.asciz	"\"%s\" is not a user of this system"

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

	.comm	_rcvmode,8,3                    ; @rcvmode
l_.str.4:                               ; @.str.4
	.asciz	"Who are you!?"

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

	.comm	_PATHSIZE,8,3                   ; @PATHSIZE
	.comm	_homedir,8,3                    ; @homedir
	.comm	_debug,8,3                      ; @debug
l_.str.6:                               ; @.str.6
	.asciz	"user = %s, homedir = %s\n"

l_.str.7:                               ; @.str.7
	.asciz	"NONE"

.subsections_via_symbols
