	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tr_detect_set_pm
_tr_detect_set_pm:                      ## @tr_detect_set_pm
	.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
	andl	$65264, %edi                    ## imm = 0xFEF0
	xorl	%ebx, %ebx
	cmpl	$2272, %edi                     ## imm = 0x8E0
	jne	LBB0_11
## %bb.1:
	movl	%edx, %r12d
	movq	%rsi, %r15
	movl	(%rsi), %edi
	callq	_PROGRAM
	andl	$65264, %eax                    ## imm = 0xFEF0
	cmpl	$2272, %eax                     ## imm = 0x8E0
	jne	LBB0_11
## %bb.2:
	movl	(%r15), %eax
	leal	1(%rax), %edi
	addl	$2, %eax
	movl	%eax, (%r15)
	callq	_PROGRAM
	movl	%eax, %r14d
	shll	$16, %r14d
	orl	%r12d, %r14d
	movq	_KRREG_PMC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_known_regb@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	movq	_dirty_regb@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	movq	_known_regs@GOTPCREL(%rip), %rcx
	movl	%r14d, 20(%rcx)
	movq	_SSP_PMC_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rcx)
	movq	_n_in_ops@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	(%r15), %edi
	callq	_PROGRAM
	movl	%eax, %ebx
	andl	$65528, %eax                    ## imm = 0xFFF8
	movl	%ebx, %r13d
	andl	$65423, %r13d                   ## imm = 0xFF8F
	cmpl	$8, %eax
	je	LBB0_4
## %bb.3:
	cmpl	$128, %r13d
	je	LBB0_4
## %bb.10:
	xorl	%eax, %eax
	callq	_tr_unhandled
	movl	$4, %ebx
	jmp	LBB0_11
LBB0_4:
	movl	%ebx, %r12d
	shrl	$4, %r12d
	cmpl	$128, %r13d
	cmovnel	%ebx, %r12d
	andl	$7, %r12d
	cmpl	$5, %r12d
	jb	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_tr_unhandled
LBB0_6:
	testb	$15, %bl
	je	LBB0_9
## %bb.7:
	andl	$240, %ebx
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_tr_unhandled
LBB0_9:
	cmpl	$128, %r13d
	movl	$33554432, %eax                 ## imm = 0x2000000
	movl	$1048576, %edx                  ## imm = 0x100000
	cmovel	%eax, %edx
	movq	_known_regs@GOTPCREL(%rip), %rdi
	leaq	8(%rdi), %rax
	cmoveq	%rdi, %rax
	movq	(%rax), %rax
	movl	%r12d, %esi
	movl	%r12d, %ecx
	shll	%cl, %edx
	movl	%r14d, (%rax,%rsi,4)
	movq	_known_regb@GOTPCREL(%rip), %rax
	orl	%edx, (%rax)
	movq	_dirty_regb@GOTPCREL(%rip), %rax
	orl	%edx, (%rax)
	movq	_SSP_PMC_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%rdi)
	incl	(%r15)
	movq	_n_in_ops@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$5, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_known_regs,24,3                ## @known_regs
	.comm	_KRREG_PMC,4,2                  ## @KRREG_PMC
	.comm	_known_regb,4,2                 ## @known_regb
	.comm	_dirty_regb,4,2                 ## @dirty_regb
	.comm	_SSP_PMC_SET,4,2                ## @SSP_PMC_SET
	.comm	_n_in_ops,4,2                   ## @n_in_ops
	.no_dead_strip	_tr_detect_set_pm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tr_detect_set_pm
_tr_detect_set_pm:                      ; @tr_detect_set_pm
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w21, #65264
	and	w8, w0, w21
	cmp	w8, #2272
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	ldr	w0, [x1]
	bl	_PROGRAM
	and	w8, w0, w21
	cmp	w8, #2272
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19]
	add	w0, w8, #1
	add	w8, w8, #2
	str	w8, [x19]
	bl	_PROGRAM
	orr	w22, w20, w0, lsl #16
Lloh0:
	adrp	x21, _known_regs@GOTPAGE
Lloh1:
	ldr	x21, [x21, _known_regs@GOTPAGEOFF]
Lloh2:
	adrp	x8, _KRREG_PMC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KRREG_PMC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x23, _known_regb@GOTPAGE
Lloh6:
	ldr	x23, [x23, _known_regb@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w9, w9, w8
	str	w9, [x23]
Lloh7:
	adrp	x25, _dirty_regb@GOTPAGE
Lloh8:
	ldr	x25, [x25, _dirty_regb@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh9:
	adrp	x26, _SSP_PMC_SET@GOTPAGE
Lloh10:
	ldr	x26, [x26, _SSP_PMC_SET@GOTPAGEOFF]
	str	w8, [x25]
	ldr	w8, [x26]
	ldr	w9, [x21, #16]
	orr	w8, w9, w8
	stp	w8, w22, [x21, #16]
Lloh11:
	adrp	x24, _n_in_ops@GOTPAGE
Lloh12:
	ldr	x24, [x24, _n_in_ops@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	ldr	w0, [x19]
	bl	_PROGRAM
	mov	x20, x0
	and	w8, w0, #0xfff8
	mov	w9, #65423
	and	w27, w0, w9
	cmp	w8, #8
	b.eq	LBB0_7
; %bb.3:
	cmp	w27, #128
	b.eq	LBB0_7
; %bb.4:
	bl	_tr_unhandled
	mov	w0, #4
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	lsr	w8, w20, #4
	cmp	w27, #128
	csel	w8, w8, w20, eq
	and	w28, w8, #0x7
	cmp	w28, #5
	b.lo	LBB0_9
; %bb.8:
	bl	_tr_unhandled
LBB0_9:
	tst	w20, #0xf
	b.eq	LBB0_12
; %bb.10:
	and	w8, w20, #0xf0
	cbz	w8, LBB0_12
; %bb.11:
	bl	_tr_unhandled
LBB0_12:
	mov	w8, #1048576
	mov	w9, #33554432
	cmp	w27, #128
	csel	w8, w9, w8, eq
	add	x9, x21, #8
	csel	x9, x21, x9, eq
	ldr	x9, [x9]
	str	w22, [x9, w28, uxtw #2]
	lsl	w8, w8, w28
	ldr	w9, [x23]
	orr	w9, w9, w8
	str	w9, [x23]
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x25]
	ldr	w8, [x26]
	ldr	w9, [x21, #16]
	bic	w8, w9, w8
	str	w8, [x21, #16]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	mov	w0, #5
	b	LBB0_6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_known_regs,24,3                ; @known_regs
	.comm	_KRREG_PMC,4,2                  ; @KRREG_PMC
	.comm	_known_regb,4,2                 ; @known_regb
	.comm	_dirty_regb,4,2                 ; @dirty_regb
	.comm	_SSP_PMC_SET,4,2                ; @SSP_PMC_SET
	.comm	_n_in_ops,4,2                   ; @n_in_ops
	.no_dead_strip	_tr_detect_set_pm
.subsections_via_symbols
