	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tr_PMX_to_r0
_tr_PMX_to_r0:                          ## @tr_PMX_to_r0
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_known_regb@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	movq	_KRREG_PMC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	testl	%edx, %esi
	je	LBB0_1
## %bb.3:
	movq	_known_regs@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_SSP_PMC_SET@GOTPCREL(%rip), %rdi
	testl	%eax, (%rdi)
	je	LBB0_5
## %bb.4:
	movl	16(%r12), %eax
	movq	8(%r12), %rdx
	movslq	%ebx, %rcx
	movl	%eax, (%rdx,%rcx,4)
	movl	(%rdi), %eax
	notl	%eax
	andl	%eax, (%r12)
	addb	$20, %cl
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	orl	%eax, (%r8)
	movq	_dirty_regb@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_18
LBB0_1:
	leal	20(%rbx), %ecx
	movl	$1, %r14d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
LBB0_2:
	movq	_dirty_regb@GOTPCREL(%rip), %rax
	orl	%r14d, %esi
	notl	%esi
	andl	%esi, %edx
	movl	%edx, (%r8)
	andl	%esi, (%rax)
	xorl	%eax, %eax
	callq	_tr_flush_dirty_ST
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_tr_mov16
	movq	_ssp_pm_read@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_emith_call_c_func
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hostreg_clear                  ## TAILCALL
LBB0_5:
	leal	20(%rbx), %ecx
	movl	$1, %r14d
	shll	%cl, %r14d
	movzbl	%cl, %ecx
	btl	%ecx, %edx
	jae	LBB0_2
## %bb.6:
	movq	8(%r12), %rcx
	movslq	%ebx, %rdx
	movl	(%rcx,%rdx,4), %r15d
	movl	%r15d, %edi
	sarl	$16, %edi
	movq	_SSP_PMC_HAVE_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r12)
	movl	%edi, %eax
	andl	$65520, %eax                    ## imm = 0xFFF0
	cmpl	$2048, %eax                     ## imm = 0x800
	jne	LBB0_8
## %bb.7:
	movl	$1, %edi
	movl	$7, %esi
	movq	%rdx, %rbx
	movl	$1160, %edx                     ## imm = 0x488
	callq	_EOP_LDR_IMM
	addl	%r15d, %r15d
	andl	$2097150, %r15d                 ## imm = 0x1FFFFE
	xorl	%edi, %edi
	movl	%r15d, %esi
	callq	_emith_move_r_imm
	xorl	%edi, %edi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_EOP_LDRH_REG
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	incl	%edx
	movl	%edx, (%rax,%rbx,4)
	jmp	LBB0_17
LBB0_8:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %eax
	andl	$1207894016, %eax               ## imm = 0x47FF0000
	cmpl	$1572864, %eax                  ## imm = 0x180000
	jne	LBB0_16
## %bb.9:
	callq	_get_inc
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	movl	$7, %esi
	movl	$1168, %edx                     ## imm = 0x490
	callq	_EOP_LDR_IMM
	movzwl	%r15w, %esi
	addl	%esi, %esi
	xorl	%edi, %edi
	callq	_emith_move_r_imm
	xorl	%edi, %edi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_EOP_LDRH_REG
	cmpl	$4, %ebx
	jne	LBB0_15
## %bb.10:
	leal	-1605379(%r15), %eax
	cmpl	$1, %eax
	ja	LBB0_15
## %bb.11:
	cmpl	$1605379, %r15d                 ## imm = 0x187F03
	jne	LBB0_12
## %bb.13:
	movq	_SSP_WAIT_30FE06@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_16:
	xorl	%eax, %eax
	callq	_tr_unhandled
	movq	8(%r12), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edx
	jmp	LBB0_17
LBB0_12:
	movq	_SSP_WAIT_30FE08@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_tr_flush_dirty_ST
	movl	$1, %edi
	movl	$7, %esi
	movl	$1156, %edx                     ## imm = 0x484
	callq	_EOP_LDR_IMM
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_EOP_TST_REG_SIMPLE
	movq	_A_COND_EQ@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_A_OP_SUB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, (%rsp)
	xorl	%edx, %edx
	movl	$11, %ecx
	movl	$11, %r8d
	movl	$11, %r9d
	callq	_EOP_C_DOP_IMM
	movl	(%r15), %edi
	movq	_A_OP_ORR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	$8, %ebx
	movl	%ebx, (%rsp)
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	movl	$12, %r9d
	callq	_EOP_C_DOP_IMM
	movl	$1, %edi
	movl	$7, %esi
	movl	$1156, %edx                     ## imm = 0x484
	callq	_EOP_STR_IMM
LBB0_15:
	movq	8(%r12), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addl	(%rax,%rcx,4), %edx
	movl	%edx, (%rax,%rcx,4)
LBB0_17:
	orl	(%r13), %r14d
	movq	_dirty_regb@GOTPCREL(%rip), %rax
	orl	%r14d, (%rax)
	movl	%edx, 16(%r12)
	movq	_hostreg_r@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$-1, (%rax)
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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,24,3                ## @known_regs
	.comm	_SSP_PMC_SET,4,2                ## @SSP_PMC_SET
	.comm	_dirty_regb,4,2                 ## @dirty_regb
	.comm	_SSP_PMC_HAVE_ADDR,4,2          ## @SSP_PMC_HAVE_ADDR
	.comm	_SSP_WAIT_30FE06,4,2            ## @SSP_WAIT_30FE06
	.comm	_SSP_WAIT_30FE08,4,2            ## @SSP_WAIT_30FE08
	.comm	_A_COND_EQ,4,2                  ## @A_COND_EQ
	.comm	_A_OP_SUB,4,2                   ## @A_OP_SUB
	.comm	_A_OP_ORR,4,2                   ## @A_OP_ORR
	.comm	_hostreg_r,8,3                  ## @hostreg_r
	.comm	_ssp_pm_read,4,2                ## @ssp_pm_read
	.no_dead_strip	_tr_PMX_to_r0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tr_PMX_to_r0
_tr_PMX_to_r0:                          ; @tr_PMX_to_r0
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _known_regb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _known_regb@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh2:
	adrp	x22, _KRREG_PMC@GOTPAGE
Lloh3:
	ldr	x22, [x22, _KRREG_PMC@GOTPAGEOFF]
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.1:
Lloh4:
	adrp	x21, _known_regs@GOTPAGE
Lloh5:
	ldr	x21, [x21, _known_regs@GOTPAGEOFF]
	ldr	w11, [x21]
Lloh6:
	adrp	x12, _SSP_PMC_SET@GOTPAGE
Lloh7:
	ldr	x12, [x12, _SSP_PMC_SET@GOTPAGEOFF]
	ldr	w13, [x12]
	tst	w13, w11
	b.eq	LBB0_5
; %bb.2:
	ldr	w9, [x21, #16]
	ldr	x10, [x21, #8]
	str	w9, [x10, w19, sxtw #2]
	ldr	w9, [x12]
	ldr	w10, [x21]
	bic	w9, w10, w9
	str	w9, [x21]
	add	w9, w19, #20
	mov	w10, #1
	lsl	w9, w10, w9
	ldr	w10, [x8]
	orr	w10, w10, w9
	str	w10, [x8]
Lloh8:
	adrp	x8, _dirty_regb@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dirty_regb@GOTPAGEOFF]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_15
LBB0_3:
	add	w11, w19, #20
	mov	w12, #1
	lsl	w23, w12, w11
LBB0_4:
Lloh10:
	adrp	x11, _dirty_regb@GOTPAGE
Lloh11:
	ldr	x11, [x11, _dirty_regb@GOTPAGEOFF]
	ldr	w12, [x11]
	orr	w10, w10, w23
	bic	w9, w9, w10
	str	w9, [x8]
	bic	w8, w12, w10
	str	w8, [x11]
	bl	_tr_flush_dirty_ST
	mov	w0, #0
	mov	x1, x19
	bl	_tr_mov16
Lloh12:
	adrp	x8, _ssp_pm_read@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ssp_pm_read@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_emith_call_c_func
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_hostreg_clear
LBB0_5:
	add	w12, w19, #20
	mov	w13, #1
	lsl	w23, w13, w12
	tst	w9, w23
	b.eq	LBB0_4
; %bb.6:
	ldr	x8, [x21, #8]
	sxtw	x24, w19
	ldr	w25, [x8, w19, sxtw #2]
Lloh15:
	adrp	x8, _SSP_PMC_HAVE_ADDR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSP_PMC_HAVE_ADDR@GOTPAGEOFF]
	asr	w0, w25, #16
Lloh17:
	ldr	w8, [x8]
	bic	w8, w11, w8
	str	w8, [x21]
	and	w8, w0, #0xfff0
	cmp	w8, #2048
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #1
	mov	w1, #7
	mov	w2, #1160
	bl	_EOP_LDR_IMM
	ubfiz	w1, w25, #1, #20
	mov	w0, #0
	bl	_emith_move_r_imm
	mov	w0, #0
	mov	w1, #1
	mov	w2, #0
	bl	_EOP_LDRH_REG
	ldr	x9, [x21, #8]
	lsl	x10, x24, #2
	ldr	w8, [x9, x10]
	add	w8, w8, #1
	str	w8, [x9, x10]
	b	LBB0_14
LBB0_8:
	mov	w8, #1207894016
	and	w8, w25, w8
	cmp	w8, #384, lsl #12               ; =1572864
	b.ne	LBB0_13
; %bb.9:
	bl	_get_inc
	mov	x20, x0
	mov	w0, #1
	mov	w1, #7
	mov	w2, #1168
	bl	_EOP_LDR_IMM
	ubfiz	w1, w25, #1, #16
	mov	w0, #0
	bl	_emith_move_r_imm
	mov	w0, #0
	mov	w1, #1
	mov	w2, #0
	bl	_EOP_LDRH_REG
	cmp	w19, #4
	b.ne	LBB0_12
; %bb.10:
	sub	w8, w25, #391, lsl #12          ; =1601536
	sub	w8, w8, #3843
	cmp	w8, #1
	b.hi	LBB0_12
; %bb.11:
Lloh18:
	adrp	x8, _SSP_WAIT_30FE06@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSP_WAIT_30FE06@GOTPAGEOFF]
Lloh20:
	adrp	x9, _SSP_WAIT_30FE08@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SSP_WAIT_30FE08@GOTPAGEOFF]
	mov	w10, #32515
	movk	w10, #24, lsl #16
	cmp	w25, w10
	csel	x8, x8, x9, eq
	ldr	w19, [x8]
	bl	_tr_flush_dirty_ST
	mov	w0, #1
	mov	w1, #7
	mov	w2, #1156
	bl	_EOP_LDR_IMM
	mov	w0, #0
	mov	w1, #0
	bl	_EOP_TST_REG_SIMPLE
Lloh22:
	adrp	x25, _A_COND_EQ@GOTPAGE
Lloh23:
	ldr	x25, [x25, _A_COND_EQ@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh24:
	adrp	x8, _A_OP_SUB@GOTPAGE
Lloh25:
	ldr	x8, [x8, _A_OP_SUB@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #11
	mov	w4, #11
	mov	w5, #11
	mov	w6, #1
	bl	_EOP_C_DOP_IMM
	ldr	w0, [x25]
Lloh27:
	adrp	x8, _A_OP_ORR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _A_OP_ORR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	asr	w6, w19, #8
	mov	w2, #0
	mov	w3, #1
	mov	w4, #1
	mov	w5, #12
	bl	_EOP_C_DOP_IMM
	mov	w0, #1
	mov	w1, #7
	mov	w2, #1156
	bl	_EOP_STR_IMM
LBB0_12:
	ldr	x9, [x21, #8]
	lsl	x10, x24, #2
	ldr	w8, [x9, x10]
	add	w8, w8, w20
	str	w8, [x9, x10]
	b	LBB0_14
LBB0_13:
	bl	_tr_unhandled
	ldr	x8, [x21, #8]
	ldr	w8, [x8, x24, lsl #2]
LBB0_14:
	str	w8, [x21, #16]
	ldr	w8, [x22]
Lloh30:
	adrp	x9, _dirty_regb@GOTPAGE
Lloh31:
	ldr	x9, [x9, _dirty_regb@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w8, w23
	orr	w8, w8, w10
	str	w8, [x9]
Lloh32:
	adrp	x8, _hostreg_r@GOTPAGE
Lloh33:
	ldr	x8, [x8, _hostreg_r@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_known_regb,4,2                 ; @known_regb
	.comm	_KRREG_PMC,4,2                  ; @KRREG_PMC
	.comm	_known_regs,24,3                ; @known_regs
	.comm	_SSP_PMC_SET,4,2                ; @SSP_PMC_SET
	.comm	_dirty_regb,4,2                 ; @dirty_regb
	.comm	_SSP_PMC_HAVE_ADDR,4,2          ; @SSP_PMC_HAVE_ADDR
	.comm	_SSP_WAIT_30FE06,4,2            ; @SSP_WAIT_30FE06
	.comm	_SSP_WAIT_30FE08,4,2            ; @SSP_WAIT_30FE08
	.comm	_A_COND_EQ,4,2                  ; @A_COND_EQ
	.comm	_A_OP_SUB,4,2                   ; @A_OP_SUB
	.comm	_A_OP_ORR,4,2                   ; @A_OP_ORR
	.comm	_hostreg_r,8,3                  ; @hostreg_r
	.comm	_ssp_pm_read,4,2                ; @ssp_pm_read
	.no_dead_strip	_tr_PMX_to_r0
.subsections_via_symbols
