	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tr_r0_to_PMC
_tr_r0_to_PMC:                          ## @tr_r0_to_PMC
	.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
	movq	_known_regb@GOTPCREL(%rip), %r14
	movq	_KRREG_PMC@GOTPCREL(%rip), %rbx
	cmpl	$-1, %edi
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %eax
	andl	(%r14), %eax
	je	LBB0_5
## %bb.2:
	movq	_known_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SSP_PMC_HAVE_ADDR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_4
## %bb.3:
	movq	_SSP_PMC_SET@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, (%rax)
	movl	%edi, 4(%rax)
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
	callq	_tr_flush_dirty_ST
	movl	(%rbx), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	movq	_known_regs@GOTPCREL(%rip), %rax
	movl	12(%rax), %esi
	movl	$1, %edi
	callq	_emith_move_r_imm
	movq	_SSP_PMC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	1024(,%rax,4), %edx
	movl	$1, %edi
	movl	$7, %esi
	callq	_EOP_STR_IMM
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, (%r14)
	movq	_dirty_regb@GOTPCREL(%rip), %rcx
	andl	%eax, (%rcx)
LBB0_7:
	movl	$1, %edi
	movl	$7, %esi
	movl	$1156, %edx                     ## imm = 0x484
	callq	_EOP_LDR_IMM
	movl	$2, %edi
	movl	$7, %esi
	movl	$12, %edx
	movl	$4, %ecx
	callq	_EOP_ADD_IMM
	movq	_SSP_PMC_HAVE_ADDR@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_EOP_TST_IMM
	movq	_A_COND_EQ@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SSP_PMC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shll	$2, %eax
	movl	%eax, 8(%rsp)
	movl	$1, (%rsp)
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$2, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_EOP_C_AM3_IMM
	movq	_A_COND_NE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%rbx), %eax
	leal	2(,%rax,4), %eax
	movl	%eax, 8(%rsp)
	movl	$1, (%rsp)
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$2, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_EOP_C_AM3_IMM
	movl	(%r15), %edi
	movq	_A_OP_ORR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%r14), %eax
	movl	%eax, (%rsp)
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_EOP_C_DOP_IMM
	movl	(%r12), %edi
	movq	_A_OP_BIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %eax
	movl	%eax, (%rsp)
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_EOP_C_DOP_IMM
	movl	(%r12), %edi
	movl	(%r15), %esi
	movq	_SSP_PMC_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_EOP_C_DOP_IMM
	movl	$1, %edi
	movl	$7, %esi
	movl	$1156, %edx                     ## imm = 0x484
	callq	_EOP_STR_IMM
	movq	_hostreg_r@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$-1, 4(%rax)
	jmp	LBB0_8
LBB0_4:
	orl	%ecx, %edx
	movl	%edx, (%rax)
	movl	%edi, 8(%rax)
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_known_regb,4,2                 ## @known_regb
	.comm	_KRREG_PMC,4,2                  ## @KRREG_PMC
	.comm	_known_regs,16,2                ## @known_regs
	.comm	_SSP_PMC_HAVE_ADDR,4,2          ## @SSP_PMC_HAVE_ADDR
	.comm	_SSP_PMC_SET,4,2                ## @SSP_PMC_SET
	.comm	_SSP_PMC,4,2                    ## @SSP_PMC
	.comm	_dirty_regb,4,2                 ## @dirty_regb
	.comm	_A_COND_EQ,4,2                  ## @A_COND_EQ
	.comm	_A_COND_NE,4,2                  ## @A_COND_NE
	.comm	_A_OP_ORR,4,2                   ## @A_OP_ORR
	.comm	_A_OP_BIC,4,2                   ## @A_OP_BIC
	.comm	_hostreg_r,8,3                  ## @hostreg_r
	.no_dead_strip	_tr_r0_to_PMC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tr_r0_to_PMC
_tr_r0_to_PMC:                          ; @tr_r0_to_PMC
	.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
Lloh0:
	adrp	x19, _known_regb@GOTPAGE
Lloh1:
	ldr	x19, [x19, _known_regb@GOTPAGEOFF]
Lloh2:
	adrp	x21, _KRREG_PMC@GOTPAGE
Lloh3:
	ldr	x21, [x21, _KRREG_PMC@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [x19]
	ldr	w9, [x21]
	and	w8, w9, w8
	cbz	w8, LBB0_4
; %bb.2:
Lloh4:
	adrp	x8, _known_regs@GOTPAGE
Lloh5:
	ldr	x8, [x8, _known_regs@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh6:
	adrp	x10, _SSP_PMC_HAVE_ADDR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SSP_PMC_HAVE_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.3:
Lloh9:
	adrp	x11, _SSP_PMC_SET@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SSP_PMC_SET@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w9, w11, w9
	bic	w9, w9, w10
	stp	w9, w0, [x8]
	b	LBB0_8
LBB0_4:
	bl	_tr_flush_dirty_ST
	ldr	w8, [x19]
	ldr	w9, [x21]
Lloh12:
	adrp	x20, _SSP_PMC@GOTPAGE
Lloh13:
	ldr	x20, [x20, _SSP_PMC@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _known_regs@GOTPAGE
Lloh15:
	ldr	x8, [x8, _known_regs@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8, #12]
	mov	w0, #1
	bl	_emith_move_r_imm
	ldr	w8, [x20]
	lsl	w8, w8, #2
	add	w2, w8, #1024
	mov	w0, #1
	mov	w1, #7
	bl	_EOP_STR_IMM
	ldr	w8, [x21]
	ldr	w9, [x19]
	bic	w9, w9, w8
	str	w9, [x19]
Lloh17:
	adrp	x9, _dirty_regb@GOTPAGE
Lloh18:
	ldr	x9, [x9, _dirty_regb@GOTPAGEOFF]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
LBB0_6:
	mov	w0, #1
	mov	w1, #7
	mov	w2, #1156
	bl	_EOP_LDR_IMM
	mov	w19, #2
	mov	w0, #2
	mov	w1, #7
	mov	w2, #12
	mov	w3, #4
	bl	_EOP_ADD_IMM
Lloh19:
	adrp	x21, _SSP_PMC_HAVE_ADDR@GOTPAGE
Lloh20:
	ldr	x21, [x21, _SSP_PMC_HAVE_ADDR@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w0, #1
	mov	w1, #0
	bl	_EOP_TST_IMM
Lloh21:
	adrp	x22, _A_COND_EQ@GOTPAGE
Lloh22:
	ldr	x22, [x22, _A_COND_EQ@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w8, [x20]
	lsl	w7, w8, #2
	mov	w1, #1
	mov	w2, #0
	mov	w3, #2
	mov	w4, #0
	mov	w5, #0
	mov	w6, #1
	bl	_EOP_C_AM3_IMM
Lloh23:
	adrp	x23, _A_COND_NE@GOTPAGE
Lloh24:
	ldr	x23, [x23, _A_COND_NE@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w8, [x20]
	bfi	w19, w8, #2, #30
	mov	w1, #1
	mov	w2, #0
	mov	w3, #2
	mov	w4, #0
	mov	w5, #0
	mov	w6, #1
	mov	x7, x19
	bl	_EOP_C_AM3_IMM
	ldr	w0, [x22]
Lloh25:
	adrp	x19, _A_OP_ORR@GOTPAGE
Lloh26:
	ldr	x19, [x19, _A_OP_ORR@GOTPAGEOFF]
	ldr	w1, [x19]
	ldr	w6, [x21]
	mov	w2, #0
	mov	w3, #1
	mov	w4, #1
	mov	w5, #0
	bl	_EOP_C_DOP_IMM
	ldr	w0, [x23]
Lloh27:
	adrp	x8, _A_OP_BIC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _A_OP_BIC@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w6, [x21]
	mov	w2, #0
	mov	w3, #1
	mov	w4, #1
	mov	w5, #0
	bl	_EOP_C_DOP_IMM
	ldr	w0, [x23]
	ldr	w1, [x19]
Lloh30:
	adrp	x8, _SSP_PMC_SET@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SSP_PMC_SET@GOTPAGEOFF]
Lloh32:
	ldr	w6, [x8]
	mov	w2, #0
	mov	w3, #1
	mov	w4, #1
	mov	w5, #0
	bl	_EOP_C_DOP_IMM
	mov	w0, #1
	mov	w1, #7
	mov	w2, #1156
	bl	_EOP_STR_IMM
Lloh33:
	adrp	x8, _hostreg_r@GOTPAGE
Lloh34:
	ldr	x8, [x8, _hostreg_r@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [x8, #4]
	b	LBB0_8
LBB0_7:
	orr	w9, w10, w9
	str	w9, [x8]
	str	w0, [x8, #8]
LBB0_8:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_known_regb,4,2                 ; @known_regb
	.comm	_KRREG_PMC,4,2                  ; @KRREG_PMC
	.comm	_known_regs,16,2                ; @known_regs
	.comm	_SSP_PMC_HAVE_ADDR,4,2          ; @SSP_PMC_HAVE_ADDR
	.comm	_SSP_PMC_SET,4,2                ; @SSP_PMC_SET
	.comm	_SSP_PMC,4,2                    ; @SSP_PMC
	.comm	_dirty_regb,4,2                 ; @dirty_regb
	.comm	_A_COND_EQ,4,2                  ; @A_COND_EQ
	.comm	_A_COND_NE,4,2                  ; @A_COND_NE
	.comm	_A_OP_ORR,4,2                   ; @A_OP_ORR
	.comm	_A_OP_BIC,4,2                   ; @A_OP_BIC
	.comm	_hostreg_r,8,3                  ; @hostreg_r
	.no_dead_strip	_tr_r0_to_PMC
.subsections_via_symbols
