	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunos_relocate_main_executable
_sunos_relocate_main_executable:        ## @sunos_relocate_main_executable
	.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
	xorl	%eax, %eax
	callq	_read_pc
	movq	%rax, %r12
	movq	_exec_bfd@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_bfd_get_section_by_name
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%rbx), %edi
	callq	_bfd_get_file_flags
	movq	_DYNAMIC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.2:
	movl	(%rbx), %edi
	callq	_bfd_get_start_address
	cmpq	%r12, %rax
	je	LBB0_9
## %bb.3:
	movl	(%rbx), %edi
	callq	_bfd_get_start_address
	movq	%rax, %r13
	movq	_symfile_objfile@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %edi
	movl	$8, %esi
	callq	_xcalloc
	movq	%rax, %r14
	movq	_xfree@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_make_cleanup
	movq	%rax, %rbx
	movq	(%r15), %rdi
	cmpl	$0, (%rdi)
	jle	LBB0_8
## %bb.4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	subq	%r13, %r12
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rdi), %edi
	movl	%ebx, %esi
	callq	_ANOFFSET
	cmpq	%rax, %r12
	movl	$1, %eax
	cmovnel	%eax, %r13d
	movq	(%r14), %rax
	movq	%r12, (%rax,%rbx,8)
	incq	%rbx
	movq	(%r15), %rdi
	movslq	(%rdi), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
## %bb.6:
	testl	%r13d, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_8
## %bb.7:
	movq	%r14, %rsi
	callq	_objfile_relocate
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_cleanups                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_exec_bfd,4,2                   ## @exec_bfd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".interp"

	.comm	_DYNAMIC,4,2                    ## @DYNAMIC
	.comm	_symfile_objfile,8,3            ## @symfile_objfile
	.comm	_xfree,4,2                      ## @xfree
	.no_dead_strip	_sunos_relocate_main_executable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunos_relocate_main_executable
_sunos_relocate_main_executable:        ; @sunos_relocate_main_executable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_read_pc
	mov	x19, x0
Lloh0:
	adrp	x20, _exec_bfd@GOTPAGE
Lloh1:
	ldr	x20, [x20, _exec_bfd@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_bfd_get_section_by_name
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x20]
	bl	_bfd_get_file_flags
Lloh4:
	adrp	x8, _DYNAMIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DYNAMIC@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_1
; %bb.3:
	ldr	w0, [x20]
	bl	_bfd_get_start_address
	cmp	x0, x19
	b.eq	LBB0_1
; %bb.4:
	ldr	w0, [x20]
	bl	_bfd_get_start_address
	mov	x23, x0
Lloh7:
	adrp	x24, _symfile_objfile@GOTPAGE
Lloh8:
	ldr	x24, [x24, _symfile_objfile@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w0, [x8]
	mov	w1, #8
	bl	_xcalloc
	mov	x20, x0
Lloh9:
	adrp	x8, _xfree@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xfree@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_make_cleanup
	mov	x21, x0
	ldr	x0, [x24]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x22, #0
	mov	w25, #0
	sub	x19, x19, x23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x0, #4]
	mov	x1, x22
	bl	_ANOFFSET
	cmp	x19, x0
	csinc	w25, w25, wzr, eq
	ldr	x8, [x20]
	str	x19, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldr	x0, [x24]
	ldrsw	x8, [x0]
	cmp	x22, x8
	b.lt	LBB0_6
; %bb.7:
	cbz	w25, LBB0_9
; %bb.8:
	mov	x1, x20
	bl	_objfile_relocate
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_do_cleanups
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_exec_bfd,4,2                   ; @exec_bfd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".interp"

	.comm	_DYNAMIC,4,2                    ; @DYNAMIC
	.comm	_symfile_objfile,8,3            ; @symfile_objfile
	.comm	_xfree,4,2                      ; @xfree
	.no_dead_strip	_sunos_relocate_main_executable
.subsections_via_symbols
