	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_check_alternate
_elf_check_alternate:                   ## @elf_check_alternate
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_SHT_NULL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rcx
	callq	_elf_find_section
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	-56(%rbp), %rdi
	callq	_image_map_section
	movq	_IMAGE_NO_MAP@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_5
## %bb.3:
	movl	8(%rax), %ecx
	movq	_NT_GNU_BUILD_ID@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_5
## %bb.4:
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	addl	$3, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %rsi
	addq	$12, %rsi
	movq	%r15, %rdi
	callq	_elf_locate_build_id_target
	movq	%rax, %rbx
LBB0_5:
	leaq	-56(%rbp), %rdi
	callq	_image_unmap_section
	testq	%rbx, %rbx
	jne	LBB0_14
	jmp	LBB0_7
LBB0_1:
	movq	%rbx, %r12
	testq	%rbx, %rbx
	jne	LBB0_14
LBB0_7:
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	callq	_elf_find_section
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	-48(%rbp), %rdi
	callq	_image_map_section
	movq	%rax, %rbx
	movq	_IMAGE_NO_MAP@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	callq	_strlen
	addl	$4, %eax
	cltq
	andq	$-4, %rax
	movl	(%rbx,%rax), %ecx
	movl	4(%r14), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_elf_locate_debug_link
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movl	(%r14), %edi
	callq	_debugstr_w
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_WARN
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	leaq	-48(%rbp), %rdi
	callq	_image_unmap_section
LBB0_14:
	testq	%r12, %r12
	jne	LBB0_16
LBB0_15:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_16:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	testq	%r12, %r12
	je	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".note.gnu.build-id"

	.comm	_SHT_NULL,4,2                   ## @SHT_NULL
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_IMAGE_NO_MAP,8,3               ## @IMAGE_NO_MAP
	.comm	_NT_GNU_BUILD_ID,4,2            ## @NT_GNU_BUILD_ID
L_.str.1:                               ## @.str.1
	.asciz	".gnu_debuglink"

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't load linked debug file for %s\n"

	.no_dead_strip	_elf_check_alternate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_check_alternate
_elf_check_alternate:                   ; @elf_check_alternate
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x24, _SHT_NULL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _SHT_NULL@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	bl	_elf_find_section
Lloh7:
	adrp	x23, _TRUE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x25, [x23]
	add	x0, sp, #8
	bl	_image_map_section
Lloh9:
	adrp	x8, _IMAGE_NO_MAP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IMAGE_NO_MAP@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x0, #8]
Lloh12:
	adrp	x9, _NT_GNU_BUILD_ID@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NT_GNU_BUILD_ID@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldp	w8, w2, [x0]
	add	w8, w8, #3
	asr	w8, w8, #2
	add	x8, x0, w8, sxtw #2
	add	x1, x8, #12
	mov	x0, x21
	bl	_elf_locate_build_id_target
	mov	x19, x0
LBB0_4:
	mov	x22, x19
	add	x0, sp, #8
	bl	_image_unmap_section
	mov	x19, x25
	cbnz	x22, LBB0_13
	b	LBB0_6
LBB0_5:
	mov	x22, x19
	cbnz	x22, LBB0_13
LBB0_6:
	ldr	w2, [x24]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, sp
	mov	x0, x21
	bl	_elf_find_section
	cbz	x0, LBB0_10
; %bb.7:
	ldr	x19, [x23]
	mov	x0, sp
	bl	_image_map_section
Lloh17:
	adrp	x8, _IMAGE_NO_MAP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IMAGE_NO_MAP@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_11
; %bb.8:
	mov	x22, x0
	bl	_strlen
	add	w8, w0, #4
	sxtw	x8, w8
	and	x8, x8, #0xfffffffffffffffc
	ldr	w3, [x22, x8]
	ldr	w2, [x20, #4]
	mov	x0, x21
	mov	x1, x22
	bl	_elf_locate_debug_link
	mov	x22, x0
	cbnz	x0, LBB0_12
; %bb.9:
	ldr	w0, [x20]
	bl	_debugstr_w
	mov	x1, x0
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_WARN
	b	LBB0_12
LBB0_10:
	mov	x22, #0
	b	LBB0_13
LBB0_11:
	mov	x22, #0
LBB0_12:
	mov	x0, sp
	bl	_image_unmap_section
LBB0_13:
	ldr	x8, [x23]
	cmp	x19, #0
	csel	x0, x8, x22, eq
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".note.gnu.build-id"

	.comm	_SHT_NULL,4,2                   ; @SHT_NULL
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_IMAGE_NO_MAP,8,3               ; @IMAGE_NO_MAP
	.comm	_NT_GNU_BUILD_ID,4,2            ; @NT_GNU_BUILD_ID
l_.str.1:                               ; @.str.1
	.asciz	".gnu_debuglink"

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't load linked debug file for %s\n"

	.no_dead_strip	_elf_check_alternate
.subsections_via_symbols
