	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_process_filename           ## -- Begin function get_process_filename
	.p2align	4, 0x90
_get_process_filename:                  ## @get_process_filename
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	cmpq	$0, _get_process_filename.dir(%rip)
	je	LBB0_1
LBB0_10:
	movq	_get_process_filename.dir(%rip), %rbx
	xorl	%eax, %eax
	callq	_getpid
	leaq	L_.str.8(%rip), %rsi
	leaq	-24(%rbp), %rdi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_sasprintf
	movq	-24(%rbp), %rax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, _get_process_filename.dir(%rip)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-24(%rbp), %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_sasprintf
	movq	-24(%rbp), %rdi
	movq	%rdi, _get_process_filename.dir(%rip)
	leaq	-32(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	_get_process_filename.dir(%rip), %rdi
	movl	$448, %esi                      ## imm = 0x1C0
	callq	_mkdir
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.4:
	leaq	-32(%rbp), %rdi
	leaq	-24(%rbp), %rsi
	callq	_get_process_filename.cold.1
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_5:
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %edi
	callq	_getpwuid
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%rax), %rdx
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.5(%rip), %rdx
LBB0_8:
	leaq	_get_process_filename.dir(%rip), %rdi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_sasprintf
	movq	_get_process_filename.dir(%rip), %rdi
	callq	_mkdtemp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.7(%rip), %rdi
	callq	_perror
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function get_process_filename.cold.1
_get_process_filename.cold.1:           ## @get_process_filename.cold.1
	.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	_get_process_filename.dir(%rip), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_warn
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_errx
	leaq	L_.str.4(%rip), %rdi
	callq	_perror
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_process_filename.dir,8,3 ## @get_process_filename.dir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XDG_RUNTIME_DIR"

L_.str.1:                               ## @.str.1
	.asciz	"%s/i3"

L_.str.2:                               ## @.str.2
	.asciz	"Could not mkdir(%s)"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"Check permissions of $XDG_RUNTIME_DIR = '%s'"

L_.str.4:                               ## @.str.4
	.asciz	"mkdir()"

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

L_.str.6:                               ## @.str.6
	.asciz	"/tmp/i3-%s.XXXXXX"

L_.str.7:                               ## @.str.7
	.asciz	"mkdtemp()"

L_.str.8:                               ## @.str.8
	.asciz	"%s/%s.%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_process_filename           ; -- Begin function get_process_filename
	.p2align	2
_get_process_filename:                  ; @get_process_filename
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	adrp	x21, _get_process_filename.dir@PAGE
	ldr	x8, [x21, _get_process_filename.dir@PAGEOFF]
	cbz	x8, LBB0_3
LBB0_1:
	ldr	x20, [x21, _get_process_filename.dir@PAGEOFF]
	bl	_getpid
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh0:
	adrp	x1, l_.str.8@PAGE
Lloh1:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x0, sp, #24
	mov	x2, x20
	bl	_sasprintf
	ldr	x0, [sp, #24]
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	str	x0, [x21, _get_process_filename.dir@PAGEOFF]
	cbz	x0, LBB0_7
; %bb.4:
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #24
	bl	_sasprintf
	ldr	x0, [sp, #24]
	str	x0, [x21, _get_process_filename.dir@PAGEOFF]
	add	x1, sp, #16
	bl	_stat
	cbz	x0, LBB0_1
; %bb.5:
	ldr	x0, [x21, _get_process_filename.dir@PAGEOFF]
	mov	w1, #448
	bl	_mkdir
	cmn	w0, #1
	b.ne	LBB0_1
; %bb.6:
	add	x0, sp, #16
	add	x1, sp, #24
	bl	_get_process_filename.cold.1
	mov	x0, #0
	b	LBB0_2
LBB0_7:
	bl	_getuid
	bl	_getpwuid
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x2, [x0]
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x2, l_.str.5@PAGE
Lloh7:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_10:
Lloh8:
	adrp	x20, _get_process_filename.dir@PAGE
Lloh9:
	add	x20, x20, _get_process_filename.dir@PAGEOFF
Lloh10:
	adrp	x1, l_.str.6@PAGE
Lloh11:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_sasprintf
	ldr	x0, [x20]
	bl	_mkdtemp
	cbnz	x0, LBB0_1
; %bb.11:
Lloh12:
	adrp	x0, l_.str.7@PAGE
Lloh13:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_perror
	mov	x0, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function get_process_filename.cold.1
_get_process_filename.cold.1:           ; @get_process_filename.cold.1
	.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
Lloh14:
	adrp	x8, _get_process_filename.dir@PAGE
Lloh15:
	ldr	x1, [x8, _get_process_filename.dir@PAGEOFF]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warn
Lloh18:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh20:
	ldr	w19, [x8]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x2, x0
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_errx
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_perror
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdr	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_process_filename.dir,8,3 ; @get_process_filename.dir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XDG_RUNTIME_DIR"

l_.str.1:                               ; @.str.1
	.asciz	"%s/i3"

l_.str.2:                               ; @.str.2
	.asciz	"Could not mkdir(%s)"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"Check permissions of $XDG_RUNTIME_DIR = '%s'"

l_.str.4:                               ; @.str.4
	.asciz	"mkdir()"

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

l_.str.6:                               ; @.str.6
	.asciz	"/tmp/i3-%s.XXXXXX"

l_.str.7:                               ; @.str.7
	.asciz	"mkdtemp()"

l_.str.8:                               ; @.str.8
	.asciz	"%s/%s.%d"

.subsections_via_symbols
