	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsc_read
_vsc_read:                              ## @vsc_read
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_spin_lock_bh
	leal	4(,%r15,4), %esi
	leaq	-44(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_t1_tpi_read
	xorl	%r14d, %r14d
	movq	_REG_LOCAL_STATUS@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	leal	4(,%rax,4), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_t1_tpi_read
	movl	(%r13), %esi
	shll	$2, %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_t1_tpi_read
	leal	1(%r14), %eax
	testb	$1, -44(%rbp)
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$49, %r14d
	movl	%eax, %r14d
	jb	LBB0_1
LBB0_3:
	cmpl	$50, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_CH_ERR
LBB0_5:
	movq	_REG_LOCAL_DATA@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	leal	4(,%rax,4), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_t1_tpi_read
	movl	(%r14), %esi
	shll	$2, %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_t1_tpi_read
	movl	-48(%rbp), %eax
	shll	$16, %eax
	orl	-44(%rbp), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_LOCAL_STATUS,4,2           ## @REG_LOCAL_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid tpi read from MAC, breaking loop.\n"

	.comm	_REG_LOCAL_DATA,4,2             ## @REG_LOCAL_DATA
	.no_dead_strip	_vsc_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsc_read
_vsc_read:                              ; @vsc_read
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_spin_lock_bh
	lsl	w8, w21, #2
	add	w1, w8, #4
	add	x2, sp, #12
	mov	x0, x19
	bl	_t1_tpi_read
	mov	w21, #0
Lloh0:
	adrp	x22, _REG_LOCAL_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REG_LOCAL_STATUS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	lsl	w8, w8, #2
	add	w1, w8, #4
	add	x2, sp, #12
	mov	x0, x19
	bl	_t1_tpi_read
	ldr	w8, [x22]
	lsl	w1, w8, #2
	add	x2, sp, #8
	mov	x0, x19
	bl	_t1_tpi_read
	add	w8, w21, #1
	ldrb	w9, [sp, #12]
	tbnz	w9, #0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w21, #49
	mov	x21, x8
	b.lo	LBB0_1
LBB0_3:
	cmp	w8, #50
	b.ne	LBB0_5
; %bb.4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CH_ERR
LBB0_5:
Lloh4:
	adrp	x21, _REG_LOCAL_DATA@GOTPAGE
Lloh5:
	ldr	x21, [x21, _REG_LOCAL_DATA@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w8, w8, #2
	add	w1, w8, #4
	add	x2, sp, #12
	mov	x0, x19
	bl	_t1_tpi_read
	ldr	w8, [x21]
	lsl	w1, w8, #2
	add	x2, sp, #8
	mov	x0, x19
	bl	_t1_tpi_read
	ldp	w8, w9, [sp, #8]
	orr	w8, w9, w8, lsl #16
	str	w8, [x20]
	mov	x0, x19
	bl	_spin_unlock_bh
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_LOCAL_STATUS,4,2           ; @REG_LOCAL_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid tpi read from MAC, breaking loop.\n"

	.comm	_REG_LOCAL_DATA,4,2             ; @REG_LOCAL_DATA
	.no_dead_strip	_vsc_read
.subsections_via_symbols
