	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function locate_base
_locate_base:                           ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_debug_base@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_1
LBB0_5:
	movq	(%rbx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	callq	_svr4_have_link_map_offsets
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_exec_bfd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	callq	_bfd_get_flavour
	movq	_bfd_target_elf_flavour@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_elf_locate_base
	movq	%rax, (%rbx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_debug_base,8,3                 ## @debug_base
	.comm	_exec_bfd,8,3                   ## @exec_bfd
	.comm	_bfd_target_elf_flavour,8,3     ## @bfd_target_elf_flavour
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_look_for_base,4,2              ## @look_for_base
	.comm	_null_ptid,4,2                  ## @null_ptid
	.comm	_target_has_execution,8,3       ## @target_has_execution
	.no_dead_strip	_locate_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function locate_base
_locate_base:                           ; @locate_base
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _debug_base@GOTPAGE
Lloh1:
	ldr	x19, [x19, _debug_base@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_2
LBB0_1:
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	_svr4_have_link_map_offsets
	cbz	x0, LBB0_1
; %bb.3:
Lloh2:
	adrp	x8, _exec_bfd@GOTPAGE
Lloh3:
	ldr	x8, [x8, _exec_bfd@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	cbz	x0, LBB0_1
; %bb.4:
	bl	_bfd_get_flavour
Lloh5:
	adrp	x8, _bfd_target_elf_flavour@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bfd_target_elf_flavour@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_1
; %bb.5:
	bl	_elf_locate_base
	str	x0, [x19]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_base,8,3                 ; @debug_base
	.comm	_exec_bfd,8,3                   ; @exec_bfd
	.comm	_bfd_target_elf_flavour,8,3     ; @bfd_target_elf_flavour
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_look_for_base,4,2              ; @look_for_base
	.comm	_null_ptid,4,2                  ; @null_ptid
	.comm	_target_has_execution,8,3       ; @target_has_execution
	.no_dead_strip	_locate_base
.subsections_via_symbols
