	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_file_splitpath             ## -- Begin function isc_file_splitpath
	.p2align	4, 0x90
_isc_file_splitpath:                    ## @isc_file_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	%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	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	%rax, %rbx
	movq	%r12, %rdi
	movl	$92, %esi
	callq	_strrchr
	testq	%rax, %rax
	movq	%rbx, %rcx
	cmovneq	%rax, %rcx
	testq	%rbx, %rbx
	cmovneq	%rbx, %rcx
	cmpq	%rbx, %rax
	movq	%rcx, %r15
	cmovaq	%rax, %r15
	testq	%rax, %rax
	cmoveq	%rcx, %r15
	testq	%rbx, %rbx
	cmoveq	%rcx, %r15
	movq	%r13, %rbx
	cmpq	%r12, %r15
	je	LBB0_4
## %bb.1:
	testq	%r15, %r15
	je	LBB0_5
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	incq	%r15
	movl	%r15d, %r14d
	subl	%r12d, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_isc_mem_allocate
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_strlcpy
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_4:
	incq	%r12
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_isc_mem_strdup
	movq	%rax, %r13
	movq	%r12, %r15
	testq	%rax, %rax
	je	LBB0_11
LBB0_7:
	cmpb	$0, (%r15)
	je	LBB0_10
## %bb.8:
	movq	%r13, (%rbx)
	movq	%r15, (%r14)
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_ISC_R_NOMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_isc_mem_free
	movq	_ISC_R_INVALIDFILE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

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

	.comm	_ISC_R_NOMEMORY,4,2             ## @ISC_R_NOMEMORY
	.comm	_ISC_R_INVALIDFILE,4,2          ## @ISC_R_INVALIDFILE
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_file_splitpath             ; -- Begin function isc_file_splitpath
	.p2align	2
_isc_file_splitpath:                    ; @isc_file_splitpath
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	mov	w1, #47
	bl	_strrchr
	mov	x23, x0
	mov	x0, x22
	mov	w1, #92
	bl	_strrchr
	cmp	x0, #0
	cset	w8, ne
	cmp	x0, x23
	cset	w9, hi
	cmp	x23, #0
	cset	w10, ne
	and	w10, w10, w8
	and	w9, w10, w9
	cset	w10, eq
	and	w8, w10, w8
	orr	w8, w9, w8
	cmp	w8, #0
	csel	x8, x0, x23, ne
	cmp	x8, x22
	b.eq	LBB0_4
; %bb.1:
	cbz	x8, LBB0_5
; %bb.2:
	add	x25, x8, #1
	sub	w24, w25, w22
	mov	x0, x21
	mov	x1, x24
	bl	_isc_mem_allocate
	cbz	x0, LBB0_9
; %bb.3:
	mov	x23, x0
	mov	x1, x22
	mov	x2, x24
	bl	_strlcpy
	mov	x22, x25
	b	LBB0_7
LBB0_4:
	add	x22, x22, #1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x21
	bl	_isc_mem_strdup
	mov	x23, x0
	cbz	x0, LBB0_9
LBB0_7:
	ldrb	w8, [x22]
	cbz	w8, LBB0_10
; %bb.8:
	str	x23, [x20]
	str	x22, [x19]
Lloh4:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh6:
	adrp	x8, _ISC_R_NOMEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISC_R_NOMEMORY@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	x0, x21
	mov	x1, x23
	bl	_isc_mem_free
Lloh8:
	adrp	x8, _ISC_R_INVALIDFILE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ISC_R_INVALIDFILE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

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

	.comm	_ISC_R_NOMEMORY,4,2             ; @ISC_R_NOMEMORY
	.comm	_ISC_R_INVALIDFILE,4,2          ; @ISC_R_INVALIDFILE
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
.subsections_via_symbols
