	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tr_flush_dirty_pmcrs
_tr_flush_dirty_pmcrs:                  ## @tr_flush_dirty_pmcrs
	.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
	movq	_dirty_regb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	$1073217536, %eax               ## imm = 0x3FF80000
	je	LBB0_16
## %bb.1:
	movq	_KRREG_PMC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.3:
	movq	_known_regs@GOTPCREL(%rip), %rbx
	movl	24(%rbx), %r14d
	movl	$1, %edi
	movl	%r14d, %esi
	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
	movq	_SSP_PMC_SET@GOTPCREL(%rip), %rax
	movq	_SSP_PMC_HAVE_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elprintf
	xorl	%eax, %eax
	callq	_tr_unhandled
	jmp	LBB0_5
LBB0_2:
	movl	$-1, %r14d
LBB0_5:
	movl	$1108, %r15d                    ## imm = 0x454
	xorl	%ebx, %ebx
	movq	_known_regs@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	leal	24(%r15), %edx
	movl	$1, %edi
	movl	$7, %esi
	callq	_EOP_STR_IMM
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	addl	$4, %r15d
	cmpq	$5, %rbx
	je	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_dirty_regb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	movl	%ebx, %ecx
	shrl	%cl, %edx
	testl	$1048576, %edx                  ## imm = 0x100000
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %r12d
	cmpl	%r12d, %r14d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	movl	%r12d, %esi
	callq	_emith_move_r_imm
	movl	%r12d, %r14d
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	movl	$7, %esi
	movl	%r15d, %edx
	callq	_EOP_STR_IMM
	movq	_dirty_regb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %ecx
	shrl	%cl, %eax
	testl	$33554432, %eax                 ## imm = 0x2000000
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r13), %rax
	movl	(%rax,%rbx,4), %r12d
	cmpl	%r12d, %r14d
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	movl	%r12d, %esi
	callq	_emith_move_r_imm
	movl	%r12d, %r14d
	jmp	LBB0_13
LBB0_15:
	movq	_dirty_regb@GOTPCREL(%rip), %rax
	andl	$-1073217537, (%rax)            ## imm = 0xC007FFFF
	movq	_hostreg_r@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, 4(%rax)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dirty_regb,4,2                 ## @dirty_regb
	.comm	_KRREG_PMC,4,2                  ## @KRREG_PMC
	.comm	_known_regs,32,3                ## @known_regs
	.comm	_SSP_PMC,4,2                    ## @SSP_PMC
	.comm	_SSP_PMC_SET,4,2                ## @SSP_PMC_SET
	.comm	_SSP_PMC_HAVE_ADDR,4,2          ## @SSP_PMC_HAVE_ADDR
	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"!! SSP_PMC_SET|SSP_PMC_HAVE_ADDR set on flush\n"

	.comm	_hostreg_r,8,3                  ## @hostreg_r
	.no_dead_strip	_tr_flush_dirty_pmcrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tr_flush_dirty_pmcrs
_tr_flush_dirty_pmcrs:                  ; @tr_flush_dirty_pmcrs
	.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	x22, _dirty_regb@GOTPAGE
Lloh1:
	ldr	x22, [x22, _dirty_regb@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, #0x3ff80000
	b.eq	LBB0_16
; %bb.1:
Lloh2:
	adrp	x9, _KRREG_PMC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _KRREG_PMC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x23, _known_regs@GOTPAGE
Lloh6:
	ldr	x23, [x23, _known_regs@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w19, [x23, #24]
	mov	w0, #1
	mov	x1, x19
	bl	_emith_move_r_imm
Lloh7:
	adrp	x8, _SSP_PMC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSP_PMC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	add	w2, w8, #1024
	mov	w0, #1
	mov	w1, #7
	bl	_EOP_STR_IMM
	ldr	w8, [x23]
Lloh10:
	adrp	x9, _SSP_PMC_SET@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SSP_PMC_SET@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _SSP_PMC_HAVE_ADDR@GOTPAGE
Lloh14:
	ldr	x10, [x10, _SSP_PMC_HAVE_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh16:
	adrp	x8, _EL_ANOMALY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EL_ANOMALY@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elprintf
	bl	_tr_unhandled
	b	LBB0_5
LBB0_4:
	mov	w19, #-1
LBB0_5:
	mov	x24, #0
	mov	w20, #1108
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w2, w20, #24
	mov	w0, #1
	mov	w1, #7
	bl	_EOP_STR_IMM
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	add	w20, w20, #4
	cmp	x24, #5
	b.eq	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	lsr	w9, w8, w24
	tbz	w9, #20, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x23, #8]
	ldr	w21, [x8, x24, lsl #2]
	cmp	w19, w21
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #1
	mov	x1, x21
	bl	_emith_move_r_imm
	mov	x19, x21
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #1
	mov	w1, #7
	mov	x2, x20
	bl	_EOP_STR_IMM
	ldr	w8, [x22]
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	lsr	w8, w8, w24
	tbz	w8, #25, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x23, #16]
	ldr	w21, [x8, x24, lsl #2]
	cmp	w19, w21
	b.eq	LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #1
	mov	x1, x21
	bl	_emith_move_r_imm
	mov	x19, x21
	b	LBB0_6
LBB0_15:
	ldr	w8, [x22]
	and	w8, w8, #0xc007ffff
	str	w8, [x22]
Lloh21:
	adrp	x8, _hostreg_r@GOTPAGE
Lloh22:
	ldr	x8, [x8, _hostreg_r@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	mov	w9, #-1
	str	w9, [x8, #4]
LBB0_16:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_dirty_regb,4,2                 ; @dirty_regb
	.comm	_KRREG_PMC,4,2                  ; @KRREG_PMC
	.comm	_known_regs,32,3                ; @known_regs
	.comm	_SSP_PMC,4,2                    ; @SSP_PMC
	.comm	_SSP_PMC_SET,4,2                ; @SSP_PMC_SET
	.comm	_SSP_PMC_HAVE_ADDR,4,2          ; @SSP_PMC_HAVE_ADDR
	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"!! SSP_PMC_SET|SSP_PMC_HAVE_ADDR set on flush\n"

	.comm	_hostreg_r,8,3                  ; @hostreg_r
	.no_dead_strip	_tr_flush_dirty_pmcrs
.subsections_via_symbols
