	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_load_tp
_arm_load_tp:                           ## @arm_load_tp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_SImode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gen_reg_rtx
	movq	%rax, %rbx
LBB0_2:
	movq	_TARGET_HARD_TP@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_gen_load_tp_hard
	movl	%eax, %edi
	callq	_emit_insn
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_gen_load_tp_soft
	movl	%eax, %edi
	callq	_emit_insn
	movq	_SImode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_gen_rtx_REG
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_emit_move_insn
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SImode,4,2                     ## @SImode
	.comm	_TARGET_HARD_TP,8,3             ## @TARGET_HARD_TP
	.no_dead_strip	_arm_load_tp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_load_tp
_arm_load_tp:                           ; @arm_load_tp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SImode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SImode@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_gen_reg_rtx
	mov	x19, x0
LBB0_2:
Lloh3:
	adrp	x8, _TARGET_HARD_TP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TARGET_HARD_TP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_gen_load_tp_hard
	bl	_emit_insn
	b	LBB0_5
LBB0_4:
	bl	_gen_load_tp_soft
	bl	_emit_insn
Lloh6:
	adrp	x8, _SImode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SImode@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_gen_rtx_REG
	mov	x1, x0
	mov	x0, x19
	bl	_emit_move_insn
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SImode,4,2                     ; @SImode
	.comm	_TARGET_HARD_TP,8,3             ; @TARGET_HARD_TP
	.no_dead_strip	_arm_load_tp
.subsections_via_symbols
