	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_debug_file
_open_debug_file:                       ## @open_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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_PATH_MAX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_strlcat
	movq	(%rbx), %rdx
	movl	$-1, %r15d
	cmpq	%rdx, %rax
	jae	LBB0_9
## %bb.1:
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_strlcat
	movl	$-1, %r15d
	cmpq	(%rbx), %rax
	jae	LBB0_8
## %bb.2:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_open
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	leaq	-56(%rbp), %rsi
	movl	%r13d, %edi
	callq	_crc32_file
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -56(%rbp)
	jne	LBB0_7
LBB0_6:
	movl	%r13d, %r15d
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_DPRINTFX
	movl	%r13d, %edi
	callq	_close
LBB0_8:
	movb	$0, (%r12,%r14)
LBB0_9:
	movl	%r15d, %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	"/"

	.comm	_PATH_MAX,8,3                   ## @PATH_MAX
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
L_.str.1:                               ## @.str.1
	.asciz	"ERROR: CRC32 mismatch for %s"

	.no_dead_strip	_open_debug_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_debug_file
_open_debug_file:                       ; @open_debug_file
	.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	x19, x0
Lloh0:
	adrp	x23, _PATH_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PATH_MAX@GOTPAGEOFF]
	ldr	x2, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strlcat
	ldr	x2, [x23]
	cmp	x0, x2
	b.hs	LBB0_7
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x22
	bl	_strlcat
	ldr	x8, [x23]
	cmp	x0, x8
	b.hs	LBB0_5
; %bb.2:
Lloh4:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _O_CLOEXEC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _O_CLOEXEC@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_open
	mov	x22, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
	add	x1, sp, #8
	mov	x0, x22
	bl	_crc32_file
	ldr	x8, [sp, #8]
	cmp	x0, #0
	ccmp	x8, x21, #0, eq
	b.eq	LBB0_6
; %bb.4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DPRINTFX
	mov	x0, x22
	bl	_close
LBB0_5:
	mov	w22, #-1
LBB0_6:
	strb	wzr, [x19, x20]
	b	LBB0_8
LBB0_7:
	mov	w22, #-1
LBB0_8:
	mov	x0, x22
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_PATH_MAX,8,3                   ; @PATH_MAX
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
l_.str.1:                               ; @.str.1
	.asciz	"ERROR: CRC32 mismatch for %s"

	.no_dead_strip	_open_debug_file
.subsections_via_symbols
