	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf64_sparc_canonicalize_reloc
_elf64_sparc_canonicalize_reloc:        ## @elf64_sparc_canonicalize_reloc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_get_elf_backend_data
	movq	(%rax), %rax
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	(%r14), %r15
	movq	%r14, %rdi
	callq	_canon_reloc_count
	testq	%rax, %rax
	jle	LBB0_4
## %bb.2:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, (%r13)
	addq	$8, %r13
	addq	$4, %r15
	movl	%ebx, %r12d
	movq	%r14, %rdi
	callq	_canon_reloc_count
	incl	%ebx
	cmpq	%r12, %rax
	jg	LBB0_3
LBB0_4:
	movq	$0, (%r13)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_canon_reloc_count              ## TAILCALL
LBB0_5:
	movq	$-1, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_elf64_sparc_canonicalize_reloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf64_sparc_canonicalize_reloc
_elf64_sparc_canonicalize_reloc:        ; @elf64_sparc_canonicalize_reloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	bl	_get_elf_backend_data
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _FALSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	blr	x8
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x22, [x19]
	mov	x0, x19
	bl	_canon_reloc_count
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w21, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x22, #4
	str	x22, [x20], #8
	mov	x0, x19
	bl	_canon_reloc_count
	cmp	x0, w21, uxtw
	add	w21, w21, #1
	mov	x22, x23
	b.gt	LBB0_3
LBB0_4:
	str	xzr, [x20]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_canon_reloc_count
LBB0_5:
	mov	x0, #-1
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_elf64_sparc_canonicalize_reloc
.subsections_via_symbols
