	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_platform_gen_path              ## -- Begin function platform_gen_path
	.p2align	4, 0x90
_platform_gen_path:                     ## @platform_gen_path
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.1:
	movq	%rdx, %r12
	movq	%rdi, %r14
	movq	_CC_SLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CC_PRINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rsi, %rdi
	movl	%eax, %esi
	movl	$95, %ecx
	movq	%r12, %r8
	callq	_string_mod_const
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %r13d
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %ebx
LBB0_6:
	leal	(%rbx,%r13), %eax
	addl	$16, %eax
	movslq	%eax, %rdi
	movq	%r12, %rsi
	callq	_alloc_buf_gc
	movl	%eax, -48(%rbp)
	movq	_OS_SPECIFIC_DIRSEP@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -42(%rbp)
	movb	$0, -41(%rbp)
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdi
	leaq	-42(%rbp), %rcx
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_buf_printf
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_buf_printf
	movq	%rbx, %rdi
	callq	_BSTR
	movq	%rax, %rbx
	jmp	LBB0_12
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CC_SLASH,4,2                   ## @CC_SLASH
	.comm	_CC_PRINT,4,2                   ## @CC_PRINT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

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

	.comm	_OS_SPECIFIC_DIRSEP,1,0         ## @OS_SPECIFIC_DIRSEP
L_.str.2:                               ## @.str.2
	.asciz	"%s%s"

L_.str.3:                               ## @.str.3
	.asciz	"%s"

	.comm	_CC_ASTERISK,4,2                ## @CC_ASTERISK
	.comm	_CC_BACKSLASH,4,2               ## @CC_BACKSLASH
	.comm	_CC_COLON,4,2                   ## @CC_COLON
	.comm	_CC_DOUBLE_QUOTE,4,2            ## @CC_DOUBLE_QUOTE
	.comm	_CC_GREATER_THAN,4,2            ## @CC_GREATER_THAN
	.comm	_CC_LESS_THAN,4,2               ## @CC_LESS_THAN
	.comm	_CC_PIPE,4,2                    ## @CC_PIPE
	.comm	_CC_QUESTION_MARK,4,2           ## @CC_QUESTION_MARK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_platform_gen_path              ; -- Begin function platform_gen_path
	.p2align	2
_platform_gen_path:                     ; @platform_gen_path
	.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
	cbz	x2, LBB0_6
; %bb.1:
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _CC_SLASH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CC_SLASH@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _CC_PRINT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CC_PRINT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x0, x1
	mov	x1, x8
	mov	w3, #95
	mov	x4, x21
	bl	_string_mod_const
	cbz	x0, LBB0_11
; %bb.2:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.4:
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
	cbz	x19, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_strlen
	b	LBB0_8
LBB0_6:
	mov	x0, #0
	b	LBB0_11
LBB0_7:
	mov	w0, #0
LBB0_8:
	add	w8, w22, w0
	add	w8, w8, #16
	sxtw	x0, w8
	mov	x1, x21
	bl	_alloc_buf_gc
	str	w0, [sp, #24]
Lloh10:
	adrp	x8, _OS_SPECIFIC_DIRSEP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OS_SPECIFIC_DIRSEP@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #22]
	strb	wzr, [sp, #23]
	cbz	x19, LBB0_10
; %bb.9:
	add	x8, sp, #22
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	mov	x2, x19
	bl	_buf_printf
LBB0_10:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #24
	mov	x2, x20
	bl	_buf_printf
	add	x0, sp, #24
	bl	_BSTR
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CC_SLASH,4,2                   ; @CC_SLASH
	.comm	_CC_PRINT,4,2                   ; @CC_PRINT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

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

	.comm	_OS_SPECIFIC_DIRSEP,1,0         ; @OS_SPECIFIC_DIRSEP
l_.str.2:                               ; @.str.2
	.asciz	"%s%s"

l_.str.3:                               ; @.str.3
	.asciz	"%s"

	.comm	_CC_ASTERISK,4,2                ; @CC_ASTERISK
	.comm	_CC_BACKSLASH,4,2               ; @CC_BACKSLASH
	.comm	_CC_COLON,4,2                   ; @CC_COLON
	.comm	_CC_DOUBLE_QUOTE,4,2            ; @CC_DOUBLE_QUOTE
	.comm	_CC_GREATER_THAN,4,2            ; @CC_GREATER_THAN
	.comm	_CC_LESS_THAN,4,2               ; @CC_LESS_THAN
	.comm	_CC_PIPE,4,2                    ; @CC_PIPE
	.comm	_CC_QUESTION_MARK,4,2           ; @CC_QUESTION_MARK
.subsections_via_symbols
