	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_afu_lpc_memory_info
_read_afu_lpc_memory_info:              ## @read_afu_lpc_memory_info
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdx)
	movl	$0, 16(%rdx)
	movq	_OCXL_DVSEC_TEMPL_ALL_MEM_SZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-48(%rbp), %rcx
	callq	_read_afu_info
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-48(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$7, %edx
	callq	_EXTRACT_BITS
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movl	$1, %edx
	movl	%eax, %ecx
	shlq	%cl, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	_OCXL_DVSEC_TEMPL_LPC_MEM_START@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_afu_info
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	-48(%rbp), %rax
	movq	%rax, (%r12)
	movq	(%r13), %rdx
	addq	$4, %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_afu_info
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	leaq	-68(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_template_version
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	cmpl	$257, -52(%rbp)                 ## imm = 0x101
	jl	LBB0_8
## %bb.6:
	movq	_OCXL_DVSEC_TEMPL_LPC_MEM_SZ@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_afu_info
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	(%r13), %rdx
	addq	$4, %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_afu_info
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
LBB0_8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 8(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_OCXL_DVSEC_TEMPL_ALL_MEM_SZ,8,3 ## @OCXL_DVSEC_TEMPL_ALL_MEM_SZ
	.comm	_OCXL_DVSEC_TEMPL_LPC_MEM_START,8,3 ## @OCXL_DVSEC_TEMPL_LPC_MEM_START
	.comm	_OCXL_DVSEC_TEMPL_LPC_MEM_SZ,8,3 ## @OCXL_DVSEC_TEMPL_LPC_MEM_SZ
	.no_dead_strip	_read_afu_lpc_memory_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_afu_lpc_memory_info
_read_afu_lpc_memory_info:              ; @read_afu_lpc_memory_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	stp	xzr, xzr, [x2]
	str	wzr, [x2, #16]
Lloh0:
	adrp	x8, _OCXL_DVSEC_TEMPL_ALL_MEM_SZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCXL_DVSEC_TEMPL_ALL_MEM_SZ@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	add	x3, sp, #8
	bl	_read_afu_info
	cbz	w0, LBB0_2
LBB0_1:
	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
	add	sp, sp, #80
	ret
LBB0_2:
	ldr	x0, [sp, #8]
	mov	w1, #0
	mov	w2, #7
	bl	_EXTRACT_BITS
	str	x0, [sp, #8]
	cbz	x0, LBB0_1
; %bb.3:
	mov	x22, x0
Lloh3:
	adrp	x23, _OCXL_DVSEC_TEMPL_LPC_MEM_START@GOTPAGE
Lloh4:
	ldr	x23, [x23, _OCXL_DVSEC_TEMPL_LPC_MEM_START@GOTPAGEOFF]
	ldr	x2, [x23]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_read_afu_info
	cbnz	w0, LBB0_1
; %bb.4:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	ldr	x8, [x23]
	add	x2, x8, #4
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_read_afu_info
	cbnz	w0, LBB0_1
; %bb.5:
	mov	x2, sp
	add	x3, sp, #4
	mov	x0, x21
	mov	x1, x20
	bl	_read_template_version
	cbnz	w0, LBB0_1
; %bb.6:
	ldr	w8, [sp, #4]
	cmp	w8, #257
	b.lt	LBB0_9
; %bb.7:
Lloh5:
	adrp	x23, _OCXL_DVSEC_TEMPL_LPC_MEM_SZ@GOTPAGE
Lloh6:
	ldr	x23, [x23, _OCXL_DVSEC_TEMPL_LPC_MEM_SZ@GOTPAGEOFF]
	ldr	x2, [x23]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_read_afu_info
	cbnz	w0, LBB0_1
; %bb.8:
	ldr	x8, [x23]
	add	x2, x8, #4
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_read_afu_info
	cbnz	w0, LBB0_1
LBB0_9:
	mov	w0, #0
	mov	w8, #1
	lsl	x8, x8, x22
	str	w8, [x19, #8]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_OCXL_DVSEC_TEMPL_ALL_MEM_SZ,8,3 ; @OCXL_DVSEC_TEMPL_ALL_MEM_SZ
	.comm	_OCXL_DVSEC_TEMPL_LPC_MEM_START,8,3 ; @OCXL_DVSEC_TEMPL_LPC_MEM_START
	.comm	_OCXL_DVSEC_TEMPL_LPC_MEM_SZ,8,3 ; @OCXL_DVSEC_TEMPL_LPC_MEM_SZ
	.no_dead_strip	_read_afu_lpc_memory_info
.subsections_via_symbols
