	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function assign_pgstat_temp_directory
_assign_pgstat_temp_directory:          ## @assign_pgstat_temp_directory
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ERROR@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	callq	_strlen
	leaq	1(%rax), %rsi
	movl	%r14d, %edi
	callq	_guc_malloc
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movl	(%r12), %r15d
	movq	%rbx, %rdi
	callq	_strlen
	leaq	12(%rax), %rsi
	movl	%r15d, %edi
	callq	_guc_malloc
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_sprintf
	movl	(%r12), %r12d
	movq	%rbx, %rdi
	callq	_strlen
	leaq	13(%rax), %rsi
	movl	%r12d, %edi
	callq	_guc_malloc
	movq	%rax, %r12
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_sprintf
	movq	_pgstat_stat_directory@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free
LBB0_2:
	movq	%r14, (%rbx)
	movq	_pgstat_stat_tmpname@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_free
LBB0_4:
	movq	%r15, (%rbx)
	movq	_pgstat_stat_filename@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_free
LBB0_6:
	movq	%r12, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"%s/global.tmp"

L_.str.2:                               ## @.str.2
	.asciz	"%s/global.stat"

	.comm	_pgstat_stat_directory,8,3      ## @pgstat_stat_directory
	.comm	_pgstat_stat_tmpname,8,3        ## @pgstat_stat_tmpname
	.comm	_pgstat_stat_filename,8,3       ## @pgstat_stat_filename
	.no_dead_strip	_assign_pgstat_temp_directory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function assign_pgstat_temp_directory
_assign_pgstat_temp_directory:          ; @assign_pgstat_temp_directory
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x0
Lloh0:
	adrp	x21, _ERROR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ERROR@GOTPAGEOFF]
	ldr	w19, [x21]
	bl	_strlen
	add	x1, x0, #1
	mov	x0, x19
	bl	_guc_malloc
	mov	x19, x0
	mov	x1, x22
	bl	_strcpy
	ldr	w20, [x21]
	mov	x0, x22
	bl	_strlen
	add	x1, x0, #12
	mov	x0, x20
	bl	_guc_malloc
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_sprintf
	ldr	w21, [x21]
	mov	x0, x22
	bl	_strlen
	add	x1, x0, #13
	mov	x0, x21
	bl	_guc_malloc
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_sprintf
Lloh6:
	adrp	x22, _pgstat_stat_directory@GOTPAGE
Lloh7:
	ldr	x22, [x22, _pgstat_stat_directory@GOTPAGEOFF]
	ldr	x0, [x22]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free
LBB0_2:
	str	x19, [x22]
Lloh8:
	adrp	x19, _pgstat_stat_tmpname@GOTPAGE
Lloh9:
	ldr	x19, [x19, _pgstat_stat_tmpname@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_free
LBB0_4:
	str	x20, [x19]
Lloh10:
	adrp	x19, _pgstat_stat_filename@GOTPAGE
Lloh11:
	ldr	x19, [x19, _pgstat_stat_filename@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_free
LBB0_6:
	str	x21, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"%s/global.tmp"

l_.str.2:                               ; @.str.2
	.asciz	"%s/global.stat"

	.comm	_pgstat_stat_directory,8,3      ; @pgstat_stat_directory
	.comm	_pgstat_stat_tmpname,8,3        ; @pgstat_stat_tmpname
	.comm	_pgstat_stat_filename,8,3       ; @pgstat_stat_filename
	.no_dead_strip	_assign_pgstat_temp_directory
.subsections_via_symbols
