	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_extension_script_filename
_get_extension_script_filename:         ## @get_extension_script_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_get_extension_script_directory
	movq	%rax, %r14
	movq	_MAXPGPATH@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_palloc
	movq	%rax, %r12
	movl	(%r15), %esi
	movq	(%rbx), %r8
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	%r14, %rcx
	movq	%r13, %r9
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movq	%r14, %rcx
	movq	-48(%rbp), %r9                  ## 8-byte Reload
LBB0_3:
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r14, %rdi
	callq	_pfree
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s--%s--%s.sql"

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

	.no_dead_strip	_get_extension_script_filename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_extension_script_filename
_get_extension_script_filename:         ; @get_extension_script_filename
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_get_extension_script_directory
	mov	x19, x0
Lloh0:
	adrp	x24, _MAXPGPATH@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAXPGPATH@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_palloc
	mov	x20, x0
	ldr	w1, [x24]
	ldr	x4, [x23]
	cbz	x22, LBB0_2
; %bb.1:
	str	x21, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	mov	x5, x22
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	mov	x5, x21
LBB0_3:
	bl	_snprintf
	mov	x0, x19
	bl	_pfree
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s--%s--%s.sql"

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

	.no_dead_strip	_get_extension_script_filename
.subsections_via_symbols
