	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_locate_base
_elf_locate_base:                       ## @elf_locate_base
	.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	_exec_bfd@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_bfd_get_section_by_name
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, %rbx
	movl	(%r12), %edi
	movq	%rax, %rsi
	callq	_bfd_section_vma
	movq	%rax, %r15
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_bfd_section_size
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_alloca
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	callq	_target_read_memory
	testq	%rax, %rax
	je	LBB0_2
LBB0_20:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r12), %edi
	callq	_bfd_get_arch_size
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.3:
	cmpl	$32, %eax
	jne	LBB0_13
## %bb.4:
	testl	%r14d, %r14d
	jle	LBB0_20
## %bb.5:
	movslq	%r14d, %rax
	movq	%rbx, %r14
	addq	%rax, %r14
	movq	_DT_NULL@GOTPCREL(%rip), %r15
	movq	_DT_DEBUG@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	8(%rbx), %rsi
	callq	_bfd_h_get_32
	cmpq	%rax, (%r15)
	je	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rax, (%r13)
	je	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_DT_MIPS_RLD_MAP@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	$16, %rbx
	cmpq	%r14, %rbx
	jb	LBB0_6
	jmp	LBB0_20
LBB0_13:
	testl	%r14d, %r14d
	jle	LBB0_20
## %bb.14:
	movslq	%r14d, %rax
	movq	%rbx, %r14
	addq	%rax, %r14
	movq	_DT_NULL@GOTPCREL(%rip), %r15
	movq	_DT_DEBUG@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	8(%rbx), %rsi
	callq	_bfd_h_get_64
	cmpq	%rax, (%r15)
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	%rax, (%r13)
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_DT_MIPS_RLD_MAP@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	addq	$16, %rbx
	cmpq	%r14, %rbx
	jb	LBB0_15
	jmp	LBB0_20
LBB0_21:
	movl	(%r12), %edi
	movq	(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bfd_h_get_32                   ## TAILCALL
LBB0_9:
	movq	_TARGET_PTR_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_HOST_CHAR_BIT@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_alloca
	movq	%rax, %r15
	movl	(%r12), %edi
	movq	(%rbx), %rsi
	callq	_bfd_h_get_32
	jmp	LBB0_10
LBB0_22:
	movl	(%r12), %edi
	movq	(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bfd_h_get_64                   ## TAILCALL
LBB0_18:
	movq	_TARGET_PTR_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_HOST_CHAR_BIT@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_alloca
	movq	%rax, %r15
	movl	(%r12), %edi
	movq	(%rbx), %rsi
	callq	_bfd_h_get_64
LBB0_10:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_target_read_memory
	testq	%rax, %rax
	jne	LBB0_20
## %bb.11:
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_extract_unsigned_integer       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_exec_bfd,4,2                   ## @exec_bfd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".dynamic"

	.comm	_DT_NULL,8,3                    ## @DT_NULL
	.comm	_DT_DEBUG,8,3                   ## @DT_DEBUG
	.comm	_DT_MIPS_RLD_MAP,8,3            ## @DT_MIPS_RLD_MAP
	.comm	_TARGET_PTR_BIT,4,2             ## @TARGET_PTR_BIT
	.comm	_HOST_CHAR_BIT,4,2              ## @HOST_CHAR_BIT
	.no_dead_strip	_elf_locate_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_locate_base
_elf_locate_base:                       ; @elf_locate_base
	.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
Lloh0:
	adrp	x22, _exec_bfd@GOTPAGE
Lloh1:
	ldr	x22, [x22, _exec_bfd@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_bfd_get_section_by_name
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x22]
	mov	x1, x19
	bl	_bfd_section_vma
	mov	x21, x0
	ldr	w0, [x22]
	mov	x1, x19
	bl	_bfd_section_size
	mov	x20, x0
	bl	_alloca
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_target_read_memory
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, #0
	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
LBB0_3:
	ldr	w0, [x22]
	bl	_bfd_get_arch_size
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.4:
	cmp	w0, #32
	b.ne	LBB0_11
; %bb.5:
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.6:
	add	x20, x19, w20, sxtw
Lloh4:
	adrp	x21, _DT_NULL@GOTPAGE
Lloh5:
	ldr	x21, [x21, _DT_NULL@GOTPAGEOFF]
Lloh6:
	adrp	x23, _DT_DEBUG@GOTPAGE
Lloh7:
	ldr	x23, [x23, _DT_DEBUG@GOTPAGEOFF]
Lloh8:
	adrp	x24, _DT_MIPS_RLD_MAP@GOTPAGE
Lloh9:
	ldr	x24, [x24, _DT_MIPS_RLD_MAP@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldr	x1, [x19, #8]
	bl	_bfd_h_get_32
	ldr	x8, [x21]
	cmp	x8, x0
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x23]
	cmp	x8, x0
	b.eq	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x24]
	cmp	x8, x0
	b.eq	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x19, x19, #16
	cmp	x19, x20
	b.lo	LBB0_7
	b	LBB0_2
LBB0_11:
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.12:
	add	x20, x19, w20, sxtw
Lloh10:
	adrp	x21, _DT_NULL@GOTPAGE
Lloh11:
	ldr	x21, [x21, _DT_NULL@GOTPAGEOFF]
Lloh12:
	adrp	x23, _DT_DEBUG@GOTPAGE
Lloh13:
	ldr	x23, [x23, _DT_DEBUG@GOTPAGEOFF]
Lloh14:
	adrp	x24, _DT_MIPS_RLD_MAP@GOTPAGE
Lloh15:
	ldr	x24, [x24, _DT_MIPS_RLD_MAP@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldr	x1, [x19, #8]
	bl	_bfd_h_get_64
	ldr	x8, [x21]
	cmp	x8, x0
	b.eq	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x23]
	cmp	x8, x0
	b.eq	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x24]
	cmp	x8, x0
	b.eq	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x19, x19, #16
	cmp	x19, x20
	b.lo	LBB0_13
	b	LBB0_2
LBB0_17:
	ldr	w0, [x22]
	ldr	x1, [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	_bfd_h_get_32
LBB0_18:
Lloh16:
	adrp	x8, _TARGET_PTR_BIT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TARGET_PTR_BIT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _HOST_CHAR_BIT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _HOST_CHAR_BIT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	sdiv	w20, w8, w9
	mov	x0, x20
	bl	_alloca
	mov	x21, x0
	ldr	w0, [x22]
	ldr	x1, [x19]
	bl	_bfd_h_get_32
	b	LBB0_21
LBB0_19:
	ldr	w0, [x22]
	ldr	x1, [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	_bfd_h_get_64
LBB0_20:
Lloh22:
	adrp	x8, _TARGET_PTR_BIT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TARGET_PTR_BIT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _HOST_CHAR_BIT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _HOST_CHAR_BIT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	sdiv	w20, w8, w9
	mov	x0, x20
	bl	_alloca
	mov	x21, x0
	ldr	w0, [x22]
	ldr	x1, [x19]
	bl	_bfd_h_get_64
LBB0_21:
	mov	x1, x21
	mov	x2, x20
	bl	_target_read_memory
	cbnz	x0, LBB0_2
; %bb.22:
	mov	x0, x21
	mov	x1, x20
	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	_extract_unsigned_integer
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_exec_bfd,4,2                   ; @exec_bfd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".dynamic"

	.comm	_DT_NULL,8,3                    ; @DT_NULL
	.comm	_DT_DEBUG,8,3                   ; @DT_DEBUG
	.comm	_DT_MIPS_RLD_MAP,8,3            ; @DT_MIPS_RLD_MAP
	.comm	_TARGET_PTR_BIT,4,2             ; @TARGET_PTR_BIT
	.comm	_HOST_CHAR_BIT,4,2              ; @HOST_CHAR_BIT
	.no_dead_strip	_elf_locate_base
.subsections_via_symbols
