	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pit_readback1
_pit_readback1:                         ## @pit_readback1
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %r14
	leaq	(,%r14,8), %r15
	addq	%r13, %r15
	movq	_TIMER_RB_LCTR@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_3
## %bb.1:
	cmpl	$0, 20(%r13,%r14,8)
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_pit_update_counter
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_3:
	movq	_TIMER_RB_LSTATUS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_9
## %bb.4:
	cmpl	$0, (%r15)
	jne	LBB0_9
## %bb.5:
	movl	$1, (%r15)
	movq	8(%r13,%r14,8), %rax
	movq	_TIMER_INTTC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movq	%r12, %rdi
	callq	_vatpit_get_out
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_TIMER_STS_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r13,%r14,8)
	jmp	LBB0_9
LBB0_8:
	movq	_TIMER_STS_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%r13,%r14,8)
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIMER_RB_LCTR,4,2              ## @TIMER_RB_LCTR
	.comm	_TIMER_RB_LSTATUS,4,2           ## @TIMER_RB_LSTATUS
	.comm	_TIMER_INTTC,8,3                ## @TIMER_INTTC
	.comm	_TIMER_STS_OUT,4,2              ## @TIMER_STS_OUT
	.no_dead_strip	_pit_readback1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pit_readback1
_pit_readback1:                         ; @pit_readback1
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x0]
	sxtw	x24, w19
	mov	w8, #24
	smaddl	x21, w1, w8, x23
Lloh0:
	adrp	x8, _TIMER_RB_LCTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIMER_RB_LCTR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.ne	LBB0_3
; %bb.1:
	mov	w8, #24
	madd	x8, x24, x8, x23
	ldr	w8, [x8, #20]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_pit_update_counter
LBB0_3:
Lloh3:
	adrp	x8, _TIMER_RB_LSTATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIMER_RB_LSTATUS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.ne	LBB0_10
; %bb.4:
	ldr	w8, [x21]
	cbnz	w8, LBB0_10
; %bb.5:
	mov	w8, #1
	str	w8, [x21]
	mov	w8, #24
	madd	x8, x24, x8, x23
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x9, _TIMER_INTTC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TIMER_INTTC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_vatpit_get_out
	cbz	x0, LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _TIMER_STS_OUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TIMER_STS_OUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w9, #24
	madd	x9, x24, x9, x23
	ldr	w10, [x9, #16]
	orr	w8, w10, w8
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _TIMER_STS_OUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TIMER_STS_OUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #24
	madd	x9, x24, x9, x23
	ldr	w10, [x9, #16]
	bic	w8, w10, w8
LBB0_9:
	str	w8, [x9, #16]
LBB0_10:
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TIMER_RB_LCTR,4,2              ; @TIMER_RB_LCTR
	.comm	_TIMER_RB_LSTATUS,4,2           ; @TIMER_RB_LSTATUS
	.comm	_TIMER_INTTC,8,3                ; @TIMER_INTTC
	.comm	_TIMER_STS_OUT,4,2              ; @TIMER_STS_OUT
	.no_dead_strip	_pit_readback1
.subsections_via_symbols
