	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mips_elf64_assign_gp
_mips_elf64_assign_gp:                  ## @mips_elf64_assign_gp
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	__bfd_get_gp_value
	movl	%eax, (%rbx)
	movq	_TRUE@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_bfd_get_symcount
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_bfd_get_outsymbols
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %rbx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	cmpl	%r13d, %r15d
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r13,8), %rdi
	callq	_bfd_asymbol_name
	cmpb	$95, (%rax)
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	movq	(%rbx,%r13,8), %rdi
	callq	_bfd_asymbol_value
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	__bfd_set_gp_value
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %r13d
	jae	LBB0_9
	jmp	LBB0_10
LBB0_3:
	xorl	%r13d, %r13d
	cmpl	%eax, %r13d
	jb	LBB0_10
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$4, (%rax)
	movq	%r12, %rdi
	movl	$4, %esi
	callq	__bfd_set_gp_value
	movq	_FALSE@GOTPCREL(%rip), %r14
LBB0_10:
	movl	(%r14), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_gp"

	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_mips_elf64_assign_gp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mips_elf64_assign_gp
_mips_elf64_assign_gp:                  ; @mips_elf64_assign_gp
	.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
	mov	x20, x1
	mov	x19, x0
	bl	__bfd_get_gp_value
	str	w0, [x20]
	cbz	w0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x0, x19
	bl	_bfd_get_symcount
	mov	x21, x0
	mov	x0, x19
	bl	_bfd_get_outsymbols
	cbz	x0, LBB0_10
; %bb.3:
	cbz	w21, LBB0_9
; %bb.4:
	mov	x22, x0
	mov	x24, #0
	mov	w25, w21
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	cmp	w25, w24
	b.eq	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22, x24, lsl #3]
	bl	_bfd_asymbol_name
	ldrb	w8, [x0]
	cmp	w8, #95
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x23
	bl	_strcmp
	cbnz	x0, LBB0_5
; %bb.8:
	ldr	x0, [x22, x24, lsl #3]
	bl	_bfd_asymbol_value
	mov	x1, x0
	str	w0, [x20]
	mov	x0, x19
	bl	__bfd_set_gp_value
	cmp	w24, w21
	b.lo	LBB0_1
	b	LBB0_10
LBB0_9:
	mov	w24, #0
	cmp	w24, w21
	b.lo	LBB0_1
LBB0_10:
	mov	w8, #4
	str	w8, [x20]
	mov	x0, x19
	mov	w1, #4
	bl	__bfd_set_gp_value
Lloh4:
	adrp	x8, _FALSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_gp"

	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_mips_elf64_assign_gp
.subsections_via_symbols
