	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mips_legitimize_address        ## -- Begin function mips_legitimize_address
	.p2align	4, 0x90
_mips_legitimize_address:               ## @mips_legitimize_address
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_mips_tls_operand_p
	movl	(%r12), %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_mips_legitimize_tls_address
LBB0_11:
	movl	%eax, (%r12)
	movl	$1, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	-36(%rbp), %rsi
	callq	_mips_symbolic_constant_p
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	-36(%rbp), %edi
	movl	%r14d, %esi
	callq	_mips_symbolic_address_p
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_mips_split_p@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-36(%rbp), %ecx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_6
## %bb.5:
	movl	(%r12), %esi
	xorl	%edi, %edi
	callq	_mips_split_symbol
	jmp	LBB0_11
LBB0_6:
	movl	(%r12), %edi
	callq	_GET_CODE
	movq	_PLUS@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.7:
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_XEXP
	movl	%eax, %edi
	callq	_GET_CODE
	movq	_CONST_INT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.8:
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_XEXP
	movl	%eax, %r15d
	movl	%eax, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_mips_valid_base_register_p
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	_Pmode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_copy_to_mode_reg
	movl	%eax, %r15d
LBB0_10:
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_XEXP
	movl	%eax, %edi
	callq	_INTVAL
	xorl	%edi, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_mips_add_offset
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_mips_split_p,8,3               ## @mips_split_p
	.comm	_PLUS,8,3                       ## @PLUS
	.comm	_CONST_INT,8,3                  ## @CONST_INT
	.comm	_Pmode,4,2                      ## @Pmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mips_legitimize_address        ; -- Begin function mips_legitimize_address
	.p2align	2
_mips_legitimize_address:               ; @mips_legitimize_address
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_mips_tls_operand_p
	mov	x8, x0
	ldr	w0, [x19]
	cbz	x8, LBB0_3
; %bb.1:
	bl	_mips_legitimize_tls_address
LBB0_2:
	str	w0, [x19]
	mov	w0, #1
	b	LBB0_13
LBB0_3:
	add	x1, sp, #12
	bl	_mips_symbolic_constant_p
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w0, [sp, #12]
	mov	x1, x20
	bl	_mips_symbolic_address_p
	cbz	x0, LBB0_7
; %bb.5:
Lloh0:
	adrp	x8, _mips_split_p@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mips_split_p@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [sp, #12]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w1, [x19]
	mov	w0, #0
	bl	_mips_split_symbol
	b	LBB0_2
LBB0_7:
	ldr	w0, [x19]
	bl	_GET_CODE
Lloh3:
	adrp	x8, _PLUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLUS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.8:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_XEXP
	bl	_GET_CODE
Lloh6:
	adrp	x8, _CONST_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONST_INT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.9:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_XEXP
	mov	x21, x0
	mov	x1, x20
	mov	w2, #0
	bl	_mips_valid_base_register_p
	cbnz	w0, LBB0_11
; %bb.10:
Lloh9:
	adrp	x8, _Pmode@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Pmode@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_copy_to_mode_reg
	mov	x21, x0
LBB0_11:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_XEXP
	bl	_INTVAL
	mov	x2, x0
	mov	w0, #0
	mov	x1, x21
	bl	_mips_add_offset
	b	LBB0_2
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_mips_split_p,8,3               ; @mips_split_p
	.comm	_PLUS,8,3                       ; @PLUS
	.comm	_CONST_INT,8,3                  ; @CONST_INT
	.comm	_Pmode,4,2                      ; @Pmode
.subsections_via_symbols
