	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_gotrel
_find_gotrel:                           ## @find_gotrel
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rdi)
	je	LBB0_23
## %bb.1:
	movq	%rsi, %r13
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	jae	LBB0_23
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r12
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,4), %rbx
	movq	(%r12,%rbx,8), %rax
	movq	_SHT_REL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SHT_RELA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_elf_errno
	movl	32(%r12,%rbx,8), %edi
	xorl	%esi, %esi
	callq	_elf_getdata
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	leaq	(%r12,%rbx,8), %r14
	leaq	-120(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	(%r14), %rax
	movq	%rax, -120(%rbp)
	movq	(%r15), %rax
	xorl	%edi, %edi
	cmpq	8(%r12,%rbx,8), %rax
	sete	%dil
	callq	_assert
	movq	%r14, %rdi
	leaq	-44(%rbp), %rsi
	callq	_get_ent_count
	testl	%eax, %eax
	je	LBB0_23
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)
	jle	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%rbx,8), %rax
	addq	$28, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=2
	incl	%r12d
	cmpl	-44(%rbp), %r12d
	jge	LBB0_22
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rax
	movq	_SHT_REL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r15, %rdi
	movl	%r12d, %esi
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_gelf_getrel
	cmpq	%rbx, %rax
	jne	LBB0_13
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r15, %rdi
	movl	%r12d, %esi
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_gelf_getrela
	cmpq	%rbx, %rax
	jne	LBB0_13
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	-112(%rbp), %rax
	movq	16(%r13), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=2
	addq	8(%r13), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r13, %rbx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r13d
	movl	-104(%rbp), %edi
	callq	_GELF_R_SYM
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	%rbx, %r13
	movl	%eax, %edx
	callq	_get_symbol_name
	movl	%eax, -88(%rbp)
	movq	-112(%rbp), %rax
	subq	16(%rbx), %rax
	movslq	24(%rbx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=2
	cqto
	idivq	%rcx
	jmp	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=2
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=2
	cltq
	leaq	(%rax,%rax,4), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rdi
	leaq	-120(%rbp), %rsi
	movl	$40, %edx
	callq	_memcpy
	jmp	LBB0_21
LBB0_5:
	xorl	%eax, %eax
	callq	_elf_errno
	testl	%eax, %eax
	je	LBB0_23
## %bb.6:
	movl	%eax, %edi
	callq	_elf_errmsg
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
LBB0_23:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHT_REL,8,3                    ## @SHT_REL
	.comm	_SHT_RELA,8,3                   ## @SHT_RELA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"elf_getdata failed: %s"

L_.str.1:                               ## @.str.1
	.asciz	"gelf_getrel failed: %s"

	.no_dead_strip	_find_gotrel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_gotrel
_find_gotrel:                           ; @find_gotrel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x8, [x0]
	cbz	x8, LBB0_18
; %bb.1:
	mov	x20, x1
	mov	x19, #0
	add	x8, sp, #40
	add	x22, x8, #24
	add	x23, x8, #8
	mov	w9, #40
Lloh0:
	adrp	x21, _SHT_REL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SHT_REL@GOTPAGEOFF]
Lloh2:
	adrp	x24, l_.str.1@PAGE
Lloh3:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	cmp	x19, x8
	mov	w9, #40
	b.hs	LBB0_18
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x28, [x8, #8]
	madd	x25, x19, x9, x28
	ldr	x8, [x25]
	ldr	x9, [x21]
Lloh4:
	adrp	x10, _SHT_RELA@GOTPAGE
Lloh5:
	ldr	x10, [x10, _SHT_RELA@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_elf_errno
	mov	w27, #40
	madd	x8, x19, x27, x28
	ldr	w0, [x8, #32]
	mov	x1, #0
	bl	_elf_getdata
	cbz	x0, LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x0
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	x8, [x25]
	str	x8, [sp, #40]
	ldr	x8, [x26]
	madd	x9, x19, x27, x28
	ldr	x9, [x9, #8]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	add	x1, sp, #36
	mov	x0, x25
	bl	_get_ent_count
	cbz	w0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #36]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w27, #0
	mov	w8, #40
	madd	x8, x19, x8, x28
	add	x8, x8, #28
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=2
	mov	x2, x23
	bl	_gelf_getrel
	cmp	x0, x23
	b.eq	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_warnx
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	w27, w27, #1
	ldr	w8, [sp, #36]
	cmp	w27, w8
	b.ge	LBB0_2
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25]
	ldr	x9, [x21]
	mov	x0, x26
	mov	x1, x27
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x2, x22
	bl	_gelf_getrela
	cmp	x0, x22
	b.ne	LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [sp, #48]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.lt	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x10, [x20, #8]
	add	x9, x10, x9
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w28, [x8]
	ldr	w0, [sp, #56]
	bl	_GELF_R_SYM
	mov	x2, x0
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x28
	bl	_get_symbol_name
	str	w0, [sp, #72]
	ldr	x8, [sp, #48]
	ldr	x9, [x20, #16]
	sub	x8, x8, x9
	ldrsw	x9, [x20, #24]
	sdiv	x8, x8, x9
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	mov	w10, #40
	smaddl	x0, w8, w10, x9
	add	x1, sp, #40
	mov	w2, #40
	bl	_memcpy
	b	LBB0_10
LBB0_16:
	bl	_elf_errno
	cbz	w0, LBB0_18
; %bb.17:
	bl	_elf_errmsg
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
LBB0_18:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SHT_REL,8,3                    ; @SHT_REL
	.comm	_SHT_RELA,8,3                   ; @SHT_RELA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"elf_getdata failed: %s"

l_.str.1:                               ; @.str.1
	.asciz	"gelf_getrel failed: %s"

	.no_dead_strip	_find_gotrel
.subsections_via_symbols
