	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpu401_input_loop
_mpu401_input_loop:                     ## @mpu401_input_loop
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	32(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%r15), %ebx
	movl	$1, (%r15)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.1:
	movq	%r15, %rdi
	callq	_input_avail
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movl	$-51, %ebx
	movq	_MODE_SYNTH@GOTPCREL(%rip), %r14
	movq	_OPEN_READ@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %esi
	movq	%r15, %rdi
	callq	_mpu_input_scanner
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_input_avail
	testq	%rax, %rax
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_read_data
	movq	8(%r15), %rcx
	cmpq	(%r14), %rcx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %ecx
	testl	%ecx, 16(%r15)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	20(%r15), %edi
	movzbl	%al, %esi
	callq	*%rcx
	jmp	LBB0_9
LBB0_10:
	movl	$0, (%r15)
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_SYNTH,8,3                 ## @MODE_SYNTH
	.comm	_OPEN_READ,4,2                  ## @OPEN_READ
	.no_dead_strip	_mpu401_input_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpu401_input_loop
_mpu401_input_loop:                     ; @mpu401_input_loop
	.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
	add	x20, x0, #32
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w21, [x19]
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	cbnz	w21, LBB0_11
; %bb.1:
	mov	x0, x19
	bl	_input_avail
	cbz	x0, LBB0_10
; %bb.2:
	mov	w20, #-51
Lloh0:
	adrp	x21, _MODE_SYNTH@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MODE_SYNTH@GOTPAGEOFF]
Lloh2:
	adrp	x22, _OPEN_READ@GOTPAGE
Lloh3:
	ldr	x22, [x22, _OPEN_READ@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_mpu_input_scanner
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_input_avail
	cbz	x0, LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	adds	w20, w20, #1
	b.hs	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_read_data
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #16]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #20]
	blr	x8
	b	LBB0_4
LBB0_10:
	str	wzr, [x19]
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_SYNTH,8,3                 ; @MODE_SYNTH
	.comm	_OPEN_READ,4,2                  ; @OPEN_READ
	.no_dead_strip	_mpu401_input_loop
.subsections_via_symbols
