	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__splitpath                     ## -- Begin function _splitpath
	.p2align	4, 0x90
__splitpath:                            ## @_splitpath
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rsi
	leaq	__splitpath.pathcopy(%rip), %rbx
	movq	%rbx, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_strncpy
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	__splitpath.pathcopy(%rip), %rdi
	movl	$92, %esi
	callq	_strrchr
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movb	$0, (%rbx)
	leaq	__splitpath.pathcopy(%rip), %rsi
	movq	%r15, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_strncpy
	movb	$0, 255(%r15)
	incq	%rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
LBB0_4:
	movl	$128, %edx
	callq	_strncpy
	movb	$0, 128(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movb	$0, (%r15)
	leaq	__splitpath.pathcopy(%rip), %rsi
	movq	%r14, %rdi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,__splitpath.pathcopy,1025,4 ## @_splitpath.pathcopy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__splitpath                     ; -- Begin function _splitpath
	.p2align	2
__splitpath:                            ; @_splitpath
	.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	x19, x2
	mov	x20, x1
	mov	x1, x0
Lloh0:
	adrp	x21, __splitpath.pathcopy@PAGE
Lloh1:
	add	x21, x21, __splitpath.pathcopy@PAGEOFF
	mov	x0, x21
	mov	w2, #1024
	bl	_strncpy
	mov	x0, x21
	mov	w1, #47
	bl	_strrchr
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, __splitpath.pathcopy@PAGE
Lloh3:
	add	x0, x0, __splitpath.pathcopy@PAGEOFF
	mov	w1, #92
	bl	_strrchr
	mov	x21, x0
	cbz	x0, LBB0_4
LBB0_2:
	strb	wzr, [x21], #1
Lloh4:
	adrp	x1, __splitpath.pathcopy@PAGE
Lloh5:
	add	x1, x1, __splitpath.pathcopy@PAGEOFF
	mov	x0, x20
	mov	w2, #1024
	bl	_strncpy
	strb	wzr, [x20, #255]
	mov	x0, x19
	mov	x1, x21
LBB0_3:
	mov	w2, #128
	bl	_strncpy
	strb	wzr, [x19, #128]
	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
LBB0_4:
	strb	wzr, [x20]
Lloh6:
	adrp	x1, __splitpath.pathcopy@PAGE
Lloh7:
	add	x1, x1, __splitpath.pathcopy@PAGEOFF
	mov	x0, x19
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,__splitpath.pathcopy,1025,0 ; @_splitpath.pathcopy
.subsections_via_symbols
