	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_PM4
_read_PM4:                              ## @read_PM4
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$4, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pm_io
	cmpq	$-1, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GET_PPC_OFFS
	cmpl	$20242, %eax                    ## imm = 0x4F12
	je	LBB0_6
## %bb.3:
	cmpl	$2132, %eax                     ## imm = 0x854
	jne	LBB0_8
## %bb.4:
	movq	_SSP_WAIT_30FE08@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ssp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	%eax, (%rcx)
	movq	_EL_SVP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	movq	_EL_SVP@GOTPCREL(%rip), %rax
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_rPM4@GOTPCREL(%rip), %r15
	movq	(%r15), %r14
	xorl	%eax, %eax
	callq	_GET_PPC_OFFS
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_elprintf
	movq	(%r15), %rbx
	jmp	LBB0_8
LBB0_6:
	movq	_SSP_WAIT_30FE06@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ssp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	%eax, (%rcx)
	movq	_EL_SVP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_elprintf
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSP_WAIT_30FE08,4,2            ## @SSP_WAIT_30FE08
	.comm	_ssp,8,3                        ## @ssp
	.comm	_EL_SVP,4,2                     ## @EL_SVP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"det TIGHT loop: [30fe08]"

	.comm	_SSP_WAIT_30FE06,4,2            ## @SSP_WAIT_30FE06
L_.str.1:                               ## @.str.1
	.asciz	"det TIGHT loop: [30fe06]"

	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
L_.str.2:                               ## @.str.2
	.asciz	"PM4 raw r %04x @ %04x"

	.comm	_rPM4,8,3                       ## @rPM4
	.no_dead_strip	_read_PM4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_PM4
_read_PM4:                              ; @read_PM4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	w0, #4
	mov	w1, #0
	mov	w2, #0
	bl	_pm_io
	cmn	x0, #1
	b.eq	LBB0_5
; %bb.1:
	cbnz	x0, LBB0_9
; %bb.2:
	bl	_GET_PPC_OFFS
	mov	w8, #20242
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.3:
	cmp	w0, #2132
	b.ne	LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _SSP_WAIT_30FE08@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSP_WAIT_30FE08@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ssp@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ssp@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh6:
	adrp	x8, _EL_SVP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EL_SVP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _EL_SVP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EL_SVP@GOTPAGEOFF]
Lloh13:
	adrp	x9, _EL_ANOMALY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EL_ANOMALY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	ldr	w9, [x9]
	orr	w19, w9, w8
Lloh17:
	adrp	x20, _rPM4@GOTPAGE
Lloh18:
	ldr	x20, [x20, _rPM4@GOTPAGEOFF]
	ldr	x21, [x20]
	bl	_GET_PPC_OFFS
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_elprintf
	ldr	x0, [x20]
	b	LBB0_9
LBB0_6:
Lloh21:
	adrp	x8, _SSP_WAIT_30FE06@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SSP_WAIT_30FE06@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _ssp@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ssp@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh27:
	adrp	x8, _EL_SVP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EL_SVP@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_elprintf
LBB0_8:
	mov	x0, #0
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SSP_WAIT_30FE08,4,2            ; @SSP_WAIT_30FE08
	.comm	_ssp,8,3                        ; @ssp
	.comm	_EL_SVP,4,2                     ; @EL_SVP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"det TIGHT loop: [30fe08]"

	.comm	_SSP_WAIT_30FE06,4,2            ; @SSP_WAIT_30FE06
l_.str.1:                               ; @.str.1
	.asciz	"det TIGHT loop: [30fe06]"

	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
l_.str.2:                               ; @.str.2
	.asciz	"PM4 raw r %04x @ %04x"

	.comm	_rPM4,8,3                       ; @rPM4
	.no_dead_strip	_read_PM4
.subsections_via_symbols
