	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_run                        ## -- Begin function cpu_run
	.p2align	4, 0x90
_cpu_run:                               ## @cpu_run
	.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
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_tlb_flush
	movq	8(%r15), %rdi
	addq	$4, %rdi
	callq	_read_wrlock
	xorl	%r13d, %r13d
	movq	_INT_NONE@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	-48(%rbp), %rdi
	callq	_tlb_flush
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	8(%r15), %rax
	movl	(%rax), %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=2
	cmpl	%r14d, (%rax)
	jne	LBB0_10
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	_cpu_step32
	movl	%eax, %ebx
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	cmpl	$100000, %r13d                  ## imm = 0x186A0
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	xorl	%r13d, %r13d
	movq	_INT_TIMER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=2
	cmpl	%eax, %ebx
	je	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=2
	movl	%ebx, (%r15)
	movq	8(%r15), %rdi
	addq	$4, %rdi
	callq	_read_wrunlock
	movl	%ebx, %edi
	callq	_handle_interrupt
	movq	8(%r15), %rdi
	addq	$4, %rdi
	callq	_read_wrlock
	movq	8(%r15), %rax
	cmpq	%rax, -48(%rbp)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%rax, -48(%rbp)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=2
	incl	%r13d
	cmpl	%eax, %ebx
	je	LBB0_2
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_NONE,4,2                   ## @INT_NONE
	.comm	_INT_TIMER,4,2                  ## @INT_TIMER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_run                        ; -- Begin function cpu_run
	.p2align	2
_cpu_run:                               ; @cpu_run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0, #8]
	str	x8, [sp, #8]
	add	x0, sp, #8
	bl	_tlb_flush
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_read_wrlock
	mov	w21, #0
Lloh0:
	adrp	x22, _INT_NONE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _INT_NONE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _INT_TIMER@GOTPAGE
Lloh3:
	ldr	x23, [x23, _INT_TIMER@GOTPAGEOFF]
	mov	w24, #34463
	movk	w24, #1, lsl #16
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #8
	bl	_tlb_flush
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x8, [x19, #8]
	ldr	w25, [x8]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_1
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #8
	mov	x0, x19
	bl	_cpu_step32
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w9, [x23]
	cmp	w21, w24
	csel	w20, w9, w20, gt
	csinc	w21, wzr, w21, gt
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=2
	cmp	w20, w8
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=2
	str	w20, [x19]
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_read_wrunlock
	mov	x0, x20
	bl	_handle_interrupt
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_read_wrlock
	ldr	x9, [sp, #8]
	ldr	x8, [x19, #8]
	cmp	x9, x8
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=2
	str	x8, [sp, #8]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_NONE,4,2                   ; @INT_NONE
	.comm	_INT_TIMER,4,2                  ; @INT_TIMER
.subsections_via_symbols
