	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function path_fill_names
_path_fill_names:                       ## @path_fill_names
	.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
	xorl	%eax, %eax
	callq	_path_init_savefile_internal
	movq	_g_extern@GOTPCREL(%rip), %rbx
	movl	12(%rbx), %edi
	callq	_bsv_movie_set_path
	movq	_path_main_basename@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	8(%rbx), %edi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	movl	$4, %ecx
	callq	_fill_pathname_noext
LBB0_3:
	movl	4(%rbx), %edi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	4(%rbx), %edi
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %ecx
	callq	_fill_pathname_noext
LBB0_5:
	movl	(%rbx), %edi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	(%rbx), %edi
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	$4, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fill_pathname_noext            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_g_extern,16,2                  ## @g_extern
	.comm	_path_main_basename,4,2         ## @path_main_basename
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".ups"

L_.str.1:                               ## @.str.1
	.asciz	".bps"

L_.str.2:                               ## @.str.2
	.asciz	".ips"

	.no_dead_strip	_path_fill_names
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function path_fill_names
_path_fill_names:                       ; @path_fill_names
	.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
	bl	_path_init_savefile_internal
Lloh0:
	adrp	x19, _g_extern@GOTPAGE
Lloh1:
	ldr	x19, [x19, _g_extern@GOTPAGEOFF]
	ldr	w0, [x19, #12]
	bl	_bsv_movie_set_path
Lloh2:
	adrp	x20, _path_main_basename@GOTPAGE
Lloh3:
	ldr	x20, [x20, _path_main_basename@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_string_is_empty
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x19, #8]
	bl	_string_is_empty
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
	ldr	w1, [x20]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	w3, #4
	bl	_fill_pathname_noext
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_string_is_empty
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w3, #4
	bl	_fill_pathname_noext
LBB0_6:
	ldr	w0, [x19]
	bl	_string_is_empty
	cbz	x0, LBB0_1
; %bb.7:
	ldr	w0, [x19]
	ldr	w1, [x20]
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w3, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fill_pathname_noext
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_g_extern,16,2                  ; @g_extern
	.comm	_path_main_basename,4,2         ; @path_main_basename
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".ups"

l_.str.1:                               ; @.str.1
	.asciz	".bps"

l_.str.2:                               ; @.str.2
	.asciz	".ips"

	.no_dead_strip	_path_fill_names
.subsections_via_symbols
