	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_PM0
_read_PM0:                              ## @read_PM0
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pm_io
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.1:
	movq	_rPM0@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	testb	$2, %bl
	jne	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	callq	_GET_PPC_OFFS
	cmpl	$2048, %eax                     ## imm = 0x800
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_GET_PPC_OFFS
	cmpl	$99614, %eax                    ## imm = 0x1851E
	jne	LBB0_5
LBB0_4:
	movq	_SSP_WAIT_PM0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ssp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	%eax, (%rcx)
LBB0_5:
	andb	$-3, (%r14)
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rPM0,4,2                       ## @rPM0
	.comm	_SSP_WAIT_PM0,4,2               ## @SSP_WAIT_PM0
	.comm	_ssp,8,3                        ## @ssp
	.comm	_EL_SVP,4,2                     ## @EL_SVP
	.no_dead_strip	_read_PM0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_PM0
_read_PM0:                              ; @read_PM0
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_pm_io
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.1:
Lloh0:
	adrp	x20, _rPM0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _rPM0@GOTPAGEOFF]
	ldr	w19, [x20]
	tbnz	w19, #1, LBB0_5
; %bb.2:
	bl	_GET_PPC_OFFS
	cmp	w0, #2048
	b.eq	LBB0_4
; %bb.3:
	bl	_GET_PPC_OFFS
	sub	w8, w0, #24, lsl #12            ; =98304
	cmp	w8, #1310
	b.ne	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _SSP_WAIT_PM0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSP_WAIT_PM0@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ssp@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ssp@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_5:
	ldr	w8, [x20]
	and	w8, w8, #0xfffffffd
	str	w8, [x20]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_rPM0,4,2                       ; @rPM0
	.comm	_SSP_WAIT_PM0,4,2               ; @SSP_WAIT_PM0
	.comm	_ssp,8,3                        ; @ssp
	.comm	_EL_SVP,4,2                     ; @EL_SVP
	.no_dead_strip	_read_PM0
.subsections_via_symbols
