	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tr_r0_to_PMX
_tr_r0_to_PMX:                          ## @tr_r0_to_PMX
	.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, %ebx
	movq	_known_regb@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	movq	_KRREG_PMC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%edx, %esi
	je	LBB0_1
## %bb.3:
	movq	_known_regs@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_SSP_PMC_SET@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_5
## %bb.4:
	movl	16(%r12), %edx
	movq	8(%r12), %rsi
	movslq	%ebx, %rcx
	movl	%edx, (%rsi,%rcx,4)
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
	addb	$25, %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_19
LBB0_1:
	leal	25(%rbx), %ecx
	movl	$1, %r13d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
LBB0_2:
	movq	_dirty_regb@GOTPCREL(%rip), %rax
	orl	%r13d, %esi
	notl	%esi
	andl	%esi, %edx
	movl	%edx, (%r8)
	andl	%esi, (%rax)
	xorl	%eax, %eax
	callq	_tr_flush_dirty_ST
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_tr_mov16
	movq	_ssp_pm_write@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_emith_call_c_func
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hostreg_clear                  ## TAILCALL
LBB0_5:
	leal	25(%rbx), %ecx
	movl	$1, %r13d
	shll	%cl, %r13d
	movzbl	%cl, %eax
	btl	%eax, %edx
	jae	LBB0_2
## %bb.6:
	movq	_SSP_PMC_HAVE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edi
	movl	%edi, (%r12)
	movq	8(%r12), %rax
	movslq	%ebx, %r14
	movl	(%rax,%r14,4), %ebx
	movl	%ebx, %edi
	sarl	$16, %edi
	movzwl	%bx, %r15d
	movl	%ebx, %eax
	andl	$1140785152, %eax               ## imm = 0x43FF0000
	cmpl	$1572864, %eax                  ## imm = 0x180000
	jne	LBB0_11
## %bb.7:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	callq	_get_inc
	movl	%eax, %r14d
	testl	$67108864, %ebx                 ## imm = 0x4000000
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_tr_unhandled
LBB0_9:
	movl	$1, %edi
	movl	$7, %esi
	movl	$1168, %edx                     ## imm = 0x490
	callq	_EOP_LDR_IMM
	addl	%r15d, %r15d
	movl	$2, %edi
	movl	%r15d, %esi
	callq	_emith_move_r_imm
	xorl	%edi, %edi
	movl	$1, %esi
	movl	$2, %edx
	callq	_EOP_STRH_REG
	jmp	LBB0_10
LBB0_11:
	movl	%edi, %eax
	andl	$64511, %eax                    ## imm = 0xFBFF
	cmpl	$16408, %eax                    ## imm = 0x4018
	jne	LBB0_15
## %bb.12:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	testl	$67108864, %ebx                 ## imm = 0x4000000
	je	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	callq	_tr_unhandled
LBB0_14:
	movl	$1, %edi
	movl	$7, %esi
	movl	$1168, %edx                     ## imm = 0x490
	callq	_EOP_LDR_IMM
	addl	%r15d, %r15d
	movl	$2, %edi
	movl	%r15d, %esi
	callq	_emith_move_r_imm
	xorl	%edi, %edi
	movl	$1, %esi
	movl	$2, %edx
	callq	_EOP_STRH_REG
	testb	$1, %bl
	movl	$31, %r14d
	movl	$1, %eax
	cmovel	%eax, %r14d
LBB0_10:
	movq	8(%r12), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	(%rax,%rcx,4), %r14d
	movl	%r14d, (%rax,%rcx,4)
LBB0_18:
	movq	_KRREG_PMC@GOTPCREL(%rip), %r15
	orl	(%r15), %r13d
	movq	_dirty_regb@GOTPCREL(%rip), %rax
	orl	%r13d, (%rax)
	movl	%r14d, 16(%r12)
	movq	_hostreg_r@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$-1, 4(%rax)
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%ebx, %eax
	andl	$1207894016, %eax               ## imm = 0x47FF0000
	cmpl	$1835008, %eax                  ## imm = 0x1C0000
	jne	LBB0_17
## %bb.16:
	callq	_get_inc
	movq	%r14, %r15
	movl	%eax, %r14d
	movl	$1, %edi
	movl	$7, %esi
	movl	$1164, %edx                     ## imm = 0x48C
	callq	_EOP_LDR_IMM
	addl	%ebx, %ebx
	andl	$2046, %ebx                     ## imm = 0x7FE
	movl	$2, %edi
	movl	%ebx, %esi
	callq	_emith_move_r_imm
	xorl	%edi, %edi
	movl	$1, %esi
	movl	$2, %edx
	callq	_EOP_STRH_REG
	movl	$1, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_EOP_MOV_IMM
	movl	$1, %edi
	movl	$7, %esi
	movl	$1172, %edx                     ## imm = 0x494
	callq	_EOP_STR_IMM
	movq	8(%r12), %rax
	addl	(%rax,%r15,4), %r14d
	movl	%r14d, (%rax,%r15,4)
	jmp	LBB0_18
LBB0_17:
	xorl	%eax, %eax
	callq	_tr_unhandled
	movq	8(%r12), %rax
	movl	(%rax,%r14,4), %r14d
	jmp	LBB0_18
	.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	_hostreg_r,8,3                  ## @hostreg_r
	.comm	_ssp_pm_write,4,2               ## @ssp_pm_write
	.no_dead_strip	_tr_r0_to_PMX
.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_PMX
_tr_r0_to_PMX:                          ; @tr_r0_to_PMX
	.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	x21, _KRREG_PMC@GOTPAGE
Lloh3:
	ldr	x21, [x21, _KRREG_PMC@GOTPAGEOFF]
	ldr	w10, [x21]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.1:
Lloh4:
	adrp	x20, _known_regs@GOTPAGE
Lloh5:
	ldr	x20, [x20, _known_regs@GOTPAGEOFF]
	ldr	w11, [x20]
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, [x20, #16]
	ldr	x10, [x20, #8]
	str	w9, [x10, w19, sxtw #2]
	ldr	w9, [x12]
	ldr	w10, [x20]
	bic	w9, w10, w9
	str	w9, [x20]
	add	w9, w19, #25
	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_19
LBB0_3:
	add	w11, w19, #25
	mov	w12, #1
	lsl	w22, w12, w11
LBB0_4:
Lloh10:
	adrp	x11, _dirty_regb@GOTPAGE
Lloh11:
	ldr	x11, [x11, _dirty_regb@GOTPAGEOFF]
	ldr	w12, [x11]
	orr	w10, w10, w22
	bic	w9, w9, w10
	str	w9, [x8]
	bic	w8, w12, w10
	str	w8, [x11]
	bl	_tr_flush_dirty_ST
	mov	w0, #1
	mov	x1, x19
	bl	_tr_mov16
Lloh12:
	adrp	x8, _ssp_pm_write@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ssp_pm_write@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, #25
	mov	w13, #1
	lsl	w22, w13, w12
	tst	w9, w22
	b.eq	LBB0_4
; %bb.6:
Lloh15:
	adrp	x8, _SSP_PMC_HAVE_ADDR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSP_PMC_HAVE_ADDR@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	bic	w8, w11, w8
	str	w8, [x20]
	ldr	x8, [x20, #8]
	ldr	w24, [x8, w19, sxtw #2]
	sxtw	x23, w19
	asr	w0, w24, #16
	and	w25, w24, #0xffff
	mov	w8, #1140785152
	and	w8, w24, w8
	cmp	w8, #384, lsl #12               ; =1572864
	b.ne	LBB0_10
; %bb.7:
	bl	_get_inc
	mov	x19, x0
	tbz	w24, #26, LBB0_9
; %bb.8:
	bl	_tr_unhandled
LBB0_9:
	mov	w0, #1
	mov	w1, #7
	mov	w2, #1168
	bl	_EOP_LDR_IMM
	lsl	w1, w25, #1
	mov	w0, #2
	bl	_emith_move_r_imm
	mov	w0, #0
	mov	w1, #1
	mov	w2, #2
	bl	_EOP_STRH_REG
	b	LBB0_16
LBB0_10:
	mov	w8, #64511
	and	w8, w0, w8
	mov	w9, #16408
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.11:
	tbz	w24, #26, LBB0_13
; %bb.12:
	bl	_tr_unhandled
LBB0_13:
	mov	w0, #1
	mov	w1, #7
	mov	w2, #1168
	bl	_EOP_LDR_IMM
	lsl	w1, w25, #1
	mov	w0, #2
	bl	_emith_move_r_imm
	mov	w0, #0
	mov	w1, #1
	mov	w2, #2
	bl	_EOP_STRH_REG
	tst	w24, #0x1
	ldr	x9, [x20, #8]
	lsl	x10, x23, #2
	ldr	w8, [x9, x10]
	add	w11, w8, #31
	csinc	w8, w11, w8, ne
	b	LBB0_17
LBB0_14:
	mov	w8, #1207894016
	and	w8, w24, w8
	cmp	w8, #448, lsl #12               ; =1835008
	b.ne	LBB0_20
; %bb.15:
	bl	_get_inc
	mov	x19, x0
	mov	w0, #1
	mov	w1, #7
	mov	w2, #1164
	bl	_EOP_LDR_IMM
	ubfiz	w1, w24, #1, #10
	mov	w0, #2
	bl	_emith_move_r_imm
	mov	w0, #0
	mov	w1, #1
	mov	w2, #2
	bl	_EOP_STRH_REG
	mov	w0, #1
	mov	w1, #0
	mov	w2, #1
	bl	_EOP_MOV_IMM
	mov	w0, #1
	mov	w1, #7
	mov	w2, #1172
	bl	_EOP_STR_IMM
LBB0_16:
	ldr	x9, [x20, #8]
	lsl	x10, x23, #2
	ldr	w8, [x9, x10]
	add	w8, w8, w19
LBB0_17:
	str	w8, [x9, x10]
LBB0_18:
	str	w8, [x20, #16]
	ldr	w8, [x21]
Lloh18:
	adrp	x9, _dirty_regb@GOTPAGE
Lloh19:
	ldr	x9, [x9, _dirty_regb@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w8, w22
	orr	w8, w8, w10
	str	w8, [x9]
Lloh20:
	adrp	x8, _hostreg_r@GOTPAGE
Lloh21:
	ldr	x8, [x8, _hostreg_r@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [x8, #4]
LBB0_19:
	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
LBB0_20:
	bl	_tr_unhandled
	ldr	x8, [x20, #8]
	ldr	w8, [x8, x23, lsl #2]
	b	LBB0_18
	.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	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.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	_hostreg_r,8,3                  ; @hostreg_r
	.comm	_ssp_pm_write,4,2               ; @ssp_pm_write
	.no_dead_strip	_tr_r0_to_PMX
.subsections_via_symbols
