	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_hw_config
_read_hw_config:                        ## @read_hw_config
	.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
	movq	%rdi, %r15
	movq	_REG_PTI_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%r15), %rdi
	callq	_ioread32
	movl	%eax, %r14d
	movq	_PTI_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %ebx
	andl	%r14d, %ebx
	callq	___ffs
	movl	%eax, %ecx
	sarl	%cl, %ebx
	movl	%ebx, (%r15)
	movq	_PTI_CLKDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %ebx
	andl	%r14d, %ebx
	callq	___ffs
	movl	%eax, %ecx
	sarl	%cl, %ebx
	movl	%ebx, 4(%r15)
	movq	_PTI_FCEN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%r14d, %eax
	setne	%cl
	movl	%ecx, 8(%r15)
	movq	_pti_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r15), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	jne	LBB0_4
LBB0_3:
	movl	$1, 4(%r15)
LBB0_4:
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movq	_GTH_LPP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.5:
	movq	_LPP_PTIPRESENT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_LPP_DEST_PTI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
LBB0_7:
	movq	_LPP_BSSBPRESENT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_LPP_DEST_EXI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
LBB0_9:
	movq	_LPP_DEST@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.10:
	movl	$1, 12(%r15)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$4, %edi
	callq	_pti_width_mode
	movl	%eax, (%r15)
	movl	4(%r15), %ebx
	testl	%ebx, %ebx
	jne	LBB0_4
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_PTI_CTL,8,3                ## @REG_PTI_CTL
	.comm	_PTI_MODE,4,2                   ## @PTI_MODE
	.comm	_PTI_CLKDIV,4,2                 ## @PTI_CLKDIV
	.comm	_PTI_FCEN,4,2                   ## @PTI_FCEN
	.comm	_pti_mode,8,3                   ## @pti_mode
	.comm	_GTH_LPP,8,3                    ## @GTH_LPP
	.comm	_LPP_PTIPRESENT,4,2             ## @LPP_PTIPRESENT
	.comm	_LPP_DEST_PTI,4,2               ## @LPP_DEST_PTI
	.comm	_LPP_BSSBPRESENT,4,2            ## @LPP_BSSBPRESENT
	.comm	_LPP_DEST_EXI,4,2               ## @LPP_DEST_EXI
	.comm	_LPP_DEST,4,2                   ## @LPP_DEST
	.no_dead_strip	_read_hw_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_hw_config
_read_hw_config:                        ; @read_hw_config
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	x8, [x0, #32]
Lloh0:
	adrp	x9, _REG_PTI_CTL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REG_PTI_CTL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	mov	x20, x0
Lloh3:
	adrp	x8, _PTI_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTI_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	and	w21, w0, w20
	bl	___ffs
	asr	w8, w21, w0
	str	w8, [x19]
Lloh6:
	adrp	x8, _PTI_CLKDIV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PTI_CLKDIV@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	and	w21, w0, w20
	bl	___ffs
Lloh9:
	adrp	x9, _PTI_FCEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PTI_FCEN@GOTPAGEOFF]
	asr	w8, w21, w0
Lloh11:
	ldr	w9, [x9]
	tst	w9, w20
	cset	w9, ne
	stp	w8, w9, [x19, #4]
Lloh12:
	adrp	x9, _pti_mode@GOTPAGE
Lloh13:
	ldr	x9, [x9, _pti_mode@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldrsw	x10, [x19]
	ldr	w9, [x9, x10, lsl #2]
	cbz	w9, LBB0_11
; %bb.1:
	cbnz	w8, LBB0_3
LBB0_2:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_3:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _GTH_LPP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GTH_LPP@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
Lloh18:
	adrp	x8, _LPP_PTIPRESENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LPP_PTIPRESENT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
Lloh21:
	adrp	x8, _LPP_DEST_PTI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LPP_DEST_PTI@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_6:
Lloh24:
	adrp	x8, _LPP_BSSBPRESENT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LPP_BSSBPRESENT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
Lloh27:
	adrp	x8, _LPP_DEST_EXI@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LPP_DEST_EXI@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_8:
Lloh30:
	adrp	x8, _LPP_DEST@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LPP_DEST@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w0, #4
	bl	_pti_width_mode
	str	w0, [x19]
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_3
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_PTI_CTL,8,3                ; @REG_PTI_CTL
	.comm	_PTI_MODE,4,2                   ; @PTI_MODE
	.comm	_PTI_CLKDIV,4,2                 ; @PTI_CLKDIV
	.comm	_PTI_FCEN,4,2                   ; @PTI_FCEN
	.comm	_pti_mode,8,3                   ; @pti_mode
	.comm	_GTH_LPP,8,3                    ; @GTH_LPP
	.comm	_LPP_PTIPRESENT,4,2             ; @LPP_PTIPRESENT
	.comm	_LPP_DEST_PTI,4,2               ; @LPP_DEST_PTI
	.comm	_LPP_BSSBPRESENT,4,2            ; @LPP_BSSBPRESENT
	.comm	_LPP_DEST_EXI,4,2               ; @LPP_DEST_EXI
	.comm	_LPP_DEST,4,2                   ; @LPP_DEST
	.no_dead_strip	_read_hw_config
.subsections_via_symbols
