	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_print_rel
_elf_print_rel:                         ## @elf_print_rel
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	_SOLARIS_FMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	12(%rsi), %esi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRT
LBB0_3:
	movq	_SHT_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	(%r13), %rax
	xorl	%edi, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_assert
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_ent_count
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	cmpl	$0, -44(%rbp)
	jle	LBB0_10
## %bb.5:
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r12), %r15d
	movl	-56(%rbp), %edi
	callq	_GELF_R_SYM
	movq	%r14, %rdi
	movl	%r15d, %esi
	leaq	-56(%rbp), %r15
	movl	%eax, %edx
	callq	_get_symbol_name
	movl	%eax, -52(%rbp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_elf_print_rel_entry
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	-44(%rbp), %ebx
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_gelf_getrel
	cmpq	%r15, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
	jmp	LBB0_9
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOLARIS_FMT,4,2                ## @SOLARIS_FMT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nRelocation Section:  %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"        type                          offset     section        with respect to\n"

L_.str.2:                               ## @.str.2
	.asciz	"\nrelocation (%s):\n"

	.comm	_SHT_REL,4,2                    ## @SHT_REL
L_.str.3:                               ## @.str.3
	.asciz	"gelf_getrel failed: %s"

	.no_dead_strip	_elf_print_rel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_print_rel
_elf_print_rel:                         ; @elf_print_rel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _SOLARIS_FMT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOLARIS_FMT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	ldr	w8, [x1, #12]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PRT
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_3:
	bl	_PRT
Lloh9:
	adrp	x8, _SHT_REL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SHT_REL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	add	x1, sp, #12
	mov	x0, x20
	bl	_get_ent_count
	cbz	w0, LBB0_10
; %bb.4:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.5:
	mov	w22, #0
	add	x25, sp, #16
Lloh12:
	adrp	x23, l_.str.3@PAGE
Lloh13:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w24, [x20, #8]
	ldr	w0, [sp, #16]
	bl	_GELF_R_SYM
	mov	x2, x0
	mov	x0, x21
	mov	x1, x24
	bl	_get_symbol_name
	str	w0, [sp, #20]
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_elf_print_rel_entry
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w22, w22, #1
	ldr	w8, [sp, #12]
	cmp	w22, w8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x22
	bl	_gelf_getrel
	cmp	x0, x25
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_warnx
	b	LBB0_7
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SOLARIS_FMT,4,2                ; @SOLARIS_FMT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nRelocation Section:  %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"        type                          offset     section        with respect to\n"

l_.str.2:                               ; @.str.2
	.asciz	"\nrelocation (%s):\n"

	.comm	_SHT_REL,4,2                    ; @SHT_REL
l_.str.3:                               ; @.str.3
	.asciz	"gelf_getrel failed: %s"

	.no_dead_strip	_elf_print_rel
.subsections_via_symbols
