	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mips_legitimize_tls_address
_mips_legitimize_tls_address:           ## @mips_legitimize_tls_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	%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
	movl	%edi, %r12d
	movq	_Pmode@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_GP_RETURN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_gen_rtx_REG
	movl	%eax, %r15d
	movl	(%r13), %edi
	movq	(%rbx), %rsi
	incq	%rsi
	callq	_gen_rtx_REG
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_SYMBOL_REF_TLS_MODEL
	movq	_TARGET_ABICALLS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	movl	$128, %ecx
	cmovnel	%eax, %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_13
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_8:
	movl	(%r13), %eax
	movq	_DImode@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movl	%r14d, %edi
	callq	_gen_tls_get_tp_di
	jmp	LBB0_11
LBB0_4:
	movl	(%r13), %edi
	callq	_gen_reg_rtx
	movl	%eax, %r15d
	movq	_SYMBOL_GOTTPREL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_mips_unspec_address
	movl	%eax, %ebx
	movl	(%r13), %eax
	movq	_DImode@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movl	%r14d, %edi
	callq	_gen_tls_get_tp_di
	movl	%eax, %edi
	callq	_emit_insn
	movq	_pic_offset_table_rtx@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	%ebx, %edx
	callq	_gen_load_gotdi
	jmp	LBB0_7
LBB0_2:
	movq	_SYMBOL_TLSGD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movl	%r15d, %edx
	callq	_mips_call_tls_get_addr
	movl	%eax, %r14d
	movl	(%r13), %edi
	callq	_gen_reg_rtx
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_emit_libcall_block
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
	callq	_gcc_unreachable
                                        ## implicit-def: $ebx
	jmp	LBB0_14
LBB0_3:
	movq	_SYMBOL_TLSLDM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movl	%r15d, %edx
	callq	_mips_call_tls_get_addr
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %edi
	callq	_gen_reg_rtx
	movl	%eax, %r14d
	movl	(%r13), %ebx
	movq	_const0_rtx@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_gen_rtvec
	movq	_UNSPEC_TLS_LDM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_gen_rtx_UNSPEC
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_emit_libcall_block
	movq	_SYMBOL_DTPREL@GOTPCREL(%rip), %r15
	jmp	LBB0_12
LBB0_10:
	movl	%r14d, %edi
	callq	_gen_tls_get_tp_si
LBB0_11:
	movl	%eax, %edi
	callq	_emit_insn
	movq	_SYMBOL_TPREL@GOTPCREL(%rip), %r15
LBB0_12:
	movl	(%r15), %ecx
	xorl	%edi, %edi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_mips_unspec_offset_high
	movl	%eax, %r14d
	movl	(%r13), %ebx
	movl	(%r15), %esi
	movl	%r12d, %edi
	callq	_mips_unspec_address
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gen_rtx_LO_SUM                 ## TAILCALL
LBB0_6:
	movl	%r14d, %edi
	callq	_gen_tls_get_tp_si
	movl	%eax, %edi
	callq	_emit_insn
	movq	_pic_offset_table_rtx@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	%ebx, %edx
	callq	_gen_load_gotsi
LBB0_7:
	movl	%eax, %edi
	callq	_emit_insn
	movl	(%r13), %edi
	callq	_gen_reg_rtx
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_gen_add3_insn
	movl	%eax, %edi
	callq	_emit_insn
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_Pmode,4,2                      ## @Pmode
	.comm	_GP_RETURN,8,3                  ## @GP_RETURN
	.comm	_TARGET_ABICALLS,4,2            ## @TARGET_ABICALLS
	.comm	_SYMBOL_TLSGD,4,2               ## @SYMBOL_TLSGD
	.comm	_SYMBOL_TLSLDM,4,2              ## @SYMBOL_TLSLDM
	.comm	_const0_rtx,4,2                 ## @const0_rtx
	.comm	_UNSPEC_TLS_LDM,4,2             ## @UNSPEC_TLS_LDM
	.comm	_SYMBOL_DTPREL,4,2              ## @SYMBOL_DTPREL
	.comm	_SYMBOL_GOTTPREL,4,2            ## @SYMBOL_GOTTPREL
	.comm	_DImode,4,2                     ## @DImode
	.comm	_pic_offset_table_rtx,4,2       ## @pic_offset_table_rtx
	.comm	_SYMBOL_TPREL,4,2               ## @SYMBOL_TPREL
	.no_dead_strip	_mips_legitimize_tls_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mips_legitimize_tls_address
_mips_legitimize_tls_address:           ; @mips_legitimize_tls_address
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x24, _Pmode@GOTPAGE
Lloh1:
	ldr	x24, [x24, _Pmode@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x20, _GP_RETURN@GOTPAGE
Lloh3:
	ldr	x20, [x20, _GP_RETURN@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_gen_rtx_REG
	mov	x21, x0
	ldr	w0, [x24]
	ldr	x8, [x20]
	add	x1, x8, #1
	bl	_gen_rtx_REG
	mov	x20, x0
	mov	x0, x19
	bl	_SYMBOL_REF_TLS_MODEL
Lloh4:
	adrp	x8, _TARGET_ABICALLS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TARGET_ABICALLS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	mov	w9, #128
	cmp	w8, #0
	csel	w8, w9, w0, eq
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.1:
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x24]
Lloh9:
	adrp	x9, _DImode@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DImode@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	mov	x0, x20
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.3:
	bl	_gen_tls_get_tp_di
	b	LBB0_10
LBB0_4:
	ldr	w0, [x24]
	bl	_gen_reg_rtx
	mov	x21, x0
Lloh12:
	adrp	x8, _SYMBOL_GOTTPREL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYMBOL_GOTTPREL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mips_unspec_address
	mov	x19, x0
	ldr	w8, [x24]
Lloh15:
	adrp	x9, _DImode@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DImode@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	mov	x0, x20
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.5:
	bl	_gen_tls_get_tp_di
	bl	_emit_insn
Lloh18:
	adrp	x8, _pic_offset_table_rtx@GOTPAGE
Lloh19:
	ldr	x8, [x8, _pic_offset_table_rtx@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_gen_load_gotdi
	b	LBB0_13
LBB0_6:
Lloh21:
	adrp	x8, _SYMBOL_TLSGD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SYMBOL_TLSGD@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_mips_call_tls_get_addr
	mov	x20, x0
	ldr	w0, [x24]
	bl	_gen_reg_rtx
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_emit_libcall_block
	b	LBB0_14
LBB0_7:
	bl	_gcc_unreachable
                                        ; implicit-def: $w22
	b	LBB0_14
LBB0_8:
Lloh24:
	adrp	x8, _SYMBOL_TLSLDM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SYMBOL_TLSLDM@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_mips_call_tls_get_addr
	mov	x20, x0
	ldr	w0, [x24]
	bl	_gen_reg_rtx
	mov	x22, x0
	ldr	w23, [x24]
Lloh27:
	adrp	x8, _const0_rtx@GOTPAGE
Lloh28:
	ldr	x8, [x8, _const0_rtx@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_gen_rtvec
	mov	x1, x0
Lloh30:
	adrp	x8, _UNSPEC_TLS_LDM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _UNSPEC_TLS_LDM@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_gen_rtx_UNSPEC
	mov	x3, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_emit_libcall_block
Lloh33:
	adrp	x23, _SYMBOL_DTPREL@GOTPAGE
Lloh34:
	ldr	x23, [x23, _SYMBOL_DTPREL@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, #0
	mov	x1, x22
	mov	x2, x19
	bl	_mips_unspec_offset_high
	mov	x20, x0
	ldr	w21, [x24]
	ldr	w1, [x23]
	b	LBB0_11
LBB0_9:
	bl	_gen_tls_get_tp_si
LBB0_10:
	bl	_emit_insn
Lloh35:
	adrp	x22, _SYMBOL_TPREL@GOTPAGE
Lloh36:
	ldr	x22, [x22, _SYMBOL_TPREL@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, #0
	mov	x1, x20
	mov	x2, x19
	bl	_mips_unspec_offset_high
	mov	x20, x0
	ldr	w21, [x24]
	ldr	w1, [x22]
LBB0_11:
	mov	x0, x19
	bl	_mips_unspec_address
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_gen_rtx_LO_SUM
LBB0_12:
	bl	_gen_tls_get_tp_si
	bl	_emit_insn
Lloh37:
	adrp	x8, _pic_offset_table_rtx@GOTPAGE
Lloh38:
	ldr	x8, [x8, _pic_offset_table_rtx@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_gen_load_gotsi
LBB0_13:
	bl	_emit_insn
	ldr	w0, [x24]
	bl	_gen_reg_rtx
	mov	x22, x0
	mov	x1, x21
	mov	x2, x20
	bl	_gen_add3_insn
	bl	_emit_insn
LBB0_14:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_Pmode,4,2                      ; @Pmode
	.comm	_GP_RETURN,8,3                  ; @GP_RETURN
	.comm	_TARGET_ABICALLS,4,2            ; @TARGET_ABICALLS
	.comm	_SYMBOL_TLSGD,4,2               ; @SYMBOL_TLSGD
	.comm	_SYMBOL_TLSLDM,4,2              ; @SYMBOL_TLSLDM
	.comm	_const0_rtx,4,2                 ; @const0_rtx
	.comm	_UNSPEC_TLS_LDM,4,2             ; @UNSPEC_TLS_LDM
	.comm	_SYMBOL_DTPREL,4,2              ; @SYMBOL_DTPREL
	.comm	_SYMBOL_GOTTPREL,4,2            ; @SYMBOL_GOTTPREL
	.comm	_DImode,4,2                     ; @DImode
	.comm	_pic_offset_table_rtx,4,2       ; @pic_offset_table_rtx
	.comm	_SYMBOL_TPREL,4,2               ; @SYMBOL_TPREL
	.no_dead_strip	_mips_legitimize_tls_address
.subsections_via_symbols
