	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_separate_debug_file
_find_separate_debug_file:              ## @find_separate_debug_file
	.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	%rdi, %rbx
	leaq	-48(%rbp), %rsi
	callq	_get_debug_link_info
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	callq	_xstrdup
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movslq	%eax, %rcx
	addq	%r12, %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r14
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movsbl	-1(%r12,%rbx), %edi
	decq	%rbx
	callq	_IS_DIR_SEPARATOR
	leaq	-1(%r14), %rcx
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	%ebx, %eax
	movsbl	(%r12,%rax), %edi
	callq	_IS_DIR_SEPARATOR
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	jmp	LBB0_7
LBB0_6:
	xorl	%edi, %edi
LBB0_7:
	callq	_gdb_assert
	movb	$0, (%r14)
	movq	_debug_file_directory@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strlen
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	_DEBUG_SUBDIRECTORY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strlen
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	addl	%r13d, %ebx
	addl	%r15d, %ebx
	leal	(%rax,%rbx), %edi
	addl	$2, %edi
	callq	_alloca
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_strcpy
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strcat
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_separate_debug_file_exists
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_strcpy
	movq	_DEBUG_SUBDIRECTORY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_strcat
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcat
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strcat
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_separate_debug_file_exists
	testq	%rax, %rax
	je	LBB0_12
LBB0_9:
	movq	%r14, %rdi
	callq	_xfree
	movq	%r12, %rdi
	callq	_xfree
LBB0_10:
	movq	%r15, %rdi
	callq	_xstrdup
	jmp	LBB0_11
LBB0_12:
	movq	_debug_file_directory@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_strcpy
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcat
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_strcat
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strcat
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_separate_debug_file_exists
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_xfree
	movq	%r12, %rdi
	callq	_xfree
	testq	%rbx, %rbx
	jne	LBB0_10
LBB0_5:
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug_file_directory,8,3       ## @debug_file_directory
	.comm	_DEBUG_SUBDIRECTORY,8,3         ## @DEBUG_SUBDIRECTORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

	.no_dead_strip	_find_separate_debug_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_separate_debug_file
_find_separate_debug_file:              ; @find_separate_debug_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
	add	x1, sp, #8
	bl	_get_debug_link_info
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x0, [x20]
	bl	_xstrdup
	mov	x20, x0
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w8, w0
	sxtw	x9, w0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x9
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x22, x8, #1
	add	x8, x20, x8
	ldursb	w0, [x8, #-1]
	bl	_IS_DIR_SEPARATOR
	sub	x9, x21, #1
	mov	x8, x22
	cbz	x0, LBB0_2
; %bb.4:
	ldrsb	w0, [x20, w22, uxtw]
	bl	_IS_DIR_SEPARATOR
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	bl	_gdb_assert
	strb	wzr, [x20, x21]
Lloh0:
	adrp	x25, _debug_file_directory@GOTPAGE
Lloh1:
	ldr	x25, [x25, _debug_file_directory@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_strlen
	mov	x21, x0
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
Lloh2:
	adrp	x26, _DEBUG_SUBDIRECTORY@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DEBUG_SUBDIRECTORY@GOTPAGEOFF]
	ldr	x0, [x26]
	bl	_strlen
	mov	x23, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strlen
	mov	x24, x0
	mov	x0, x19
	bl	_strlen
	add	w8, w21, w22
	add	w8, w8, w23
	add	w8, w8, w24
	add	w8, w8, w0
	add	w0, w8, #2
	bl	_alloca
	mov	x21, x0
	mov	x1, x20
	bl	_strcpy
	mov	x0, x21
	mov	x1, x19
	bl	_strcat
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_separate_debug_file_exists
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	bl	_strcpy
	ldr	x1, [x26]
	mov	x0, x21
	bl	_strcat
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcat
	mov	x0, x21
	mov	x1, x19
	bl	_strcat
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_separate_debug_file_exists
	cbz	x0, LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_xfree
	mov	x0, x20
	bl	_xfree
LBB0_9:
	mov	x0, x21
	bl	_xstrdup
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	ldr	x1, [x25]
	mov	x0, x21
	bl	_strcpy
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcat
	mov	x0, x21
	mov	x1, x20
	bl	_strcat
	mov	x0, x21
	mov	x1, x19
	bl	_strcat
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_separate_debug_file_exists
	mov	x22, x0
	mov	x0, x19
	bl	_xfree
	mov	x0, x20
	bl	_xfree
	cbnz	x22, LBB0_9
; %bb.12:
	mov	x0, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_file_directory,8,3       ; @debug_file_directory
	.comm	_DEBUG_SUBDIRECTORY,8,3         ; @DEBUG_SUBDIRECTORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.no_dead_strip	_find_separate_debug_file
.subsections_via_symbols
