	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_check_debug_link
_elf_check_debug_link:                  ## @elf_check_debug_link
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_from_file@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	%rdi, -40(%rbp)
	leaq	-40(%rbp), %rdi
	callq	_elf_map_file
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	callq	_calc_crc32
	movq	%rax, %rcx
	movl	$1, %eax
	cmpq	%r14, %rcx
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_debugstr_w
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_calc_crc32
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movq	%rax, %rdx
	movq	%r14, %rcx
	callq	_WARN
	movq	%rbx, %rdi
	callq	_elf_unmap_file
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_from_file,4,2                  ## @from_file
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad CRC for file %s (got %08x while expecting %08x)\n"

	.no_dead_strip	_elf_check_debug_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_check_debug_link
_elf_check_debug_link:                  ; @elf_check_debug_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _from_file@GOTPAGE
Lloh1:
	ldr	x8, [x8, _from_file@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	x0, [sp]
	mov	x0, sp
	bl	_elf_map_file
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	bl	_calc_crc32
	cmp	x0, x20
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #1
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_debugstr_w
	mov	x21, x0
	ldr	w0, [x19]
	bl	_calc_crc32
	mov	x2, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x3, x20
	bl	_WARN
	mov	x0, x19
	bl	_elf_unmap_file
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_from_file,4,2                  ; @from_file
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad CRC for file %s (got %08x while expecting %08x)\n"

	.no_dead_strip	_elf_check_debug_link
.subsections_via_symbols
