	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mips_elf64_write_relocs
_mips_elf64_write_relocs:               ## @mips_elf64_write_relocs
	.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
	cmpq	$0, (%rdx)
	je	LBB0_2
LBB0_1:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_SEC_RELOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_1
## %bb.3:
	movl	4(%rsi), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%rsi), %eax
	incl	%ebx
	movl	%r13d, %r15d
	cmpl	%eax, %r13d
	jae	LBB0_17
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%r15), %r13d
	cmpl	%eax, %r13d
	jae	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rsi), %rax
	movl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rcx
	movq	(%rcx), %r14
	movl	%r13d, %ecx
	movq	(%rax,%rcx,8), %r12
	cmpq	%r14, (%r12)
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edi
	callq	_bfd_is_abs_section
	testl	%eax, %eax
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	leal	2(%r15), %r13d
	cmpl	4(%rsi), %r13d
	jae	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rsi), %rax
	movl	%r13d, %ecx
	movq	(%rax,%rcx,8), %r12
	cmpq	%r14, (%r12)
	jne	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edi
	callq	_bfd_is_abs_section
	testl	%eax, %eax
	je	LBB0_5
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_6
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	addl	$3, %r15d
	movl	%r15d, %r13d
	jmp	LBB0_6
LBB0_17:
	movl	%ebx, -52(%rbp)
	movq	%rsi, %rdi
	movq	%rsi, %rbx
	callq	_elf_section_data
	cmpl	$4, (%rax)
	jne	LBB0_19
## %bb.18:
	leaq	-52(%rbp), %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_mips_elf64_write_rel
	jmp	LBB0_1
LBB0_19:
	xorl	%edi, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BFD_ASSERT                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SEC_RELOC,4,2                  ## @SEC_RELOC
	.no_dead_strip	_mips_elf64_write_relocs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mips_elf64_write_relocs
_mips_elf64_write_relocs:               ; @mips_elf64_write_relocs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x2]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	mov	x20, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _SEC_RELOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SEC_RELOC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.3:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_1
; %bb.4:
	mov	x19, x2
	mov	x21, x0
	mov	w24, #0
	mov	w22, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #4]
	add	w22, w22, #1
	mov	x24, x23
	cmp	w23, w8
	b.hs	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w24, #1
	cmp	w23, w8
	b.hs	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x8, w24, uxtw #3]
	ldr	x25, [x9]
	ldr	x26, [x8, w23, uxtw #3]
	ldr	x8, [x26]
	cmp	x8, x25
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26, #8]
	ldr	x8, [x8]
	ldr	w0, [x8, #8]
	bl	_bfd_is_abs_section
	cbz	w0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w23, w24, #2
	ldr	w8, [x20, #4]
	cmp	w23, w8
	b.hs	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #8]
	ldr	x26, [x8, w23, uxtw #3]
	ldr	x8, [x26]
	cmp	x8, x25
	b.ne	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26, #8]
	ldr	x8, [x8]
	ldr	w0, [x8, #8]
	bl	_bfd_is_abs_section
	cbz	w0, LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	w9, w24, #3
	cmp	x8, #0
	csel	w23, w9, w23, eq
	b	LBB0_5
LBB0_14:
	str	w22, [sp, #12]
	mov	x0, x20
	bl	_elf_section_data
	ldr	w8, [x0]
	cmp	w8, #4
	b.ne	LBB0_16
; %bb.15:
	mov	x2, x0
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x20
	mov	x4, x19
	bl	_mips_elf64_write_rel
	b	LBB0_1
LBB0_16:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_BFD_ASSERT
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SEC_RELOC,4,2                  ; @SEC_RELOC
	.no_dead_strip	_mips_elf64_write_relocs
.subsections_via_symbols
