	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uart6850_input_loop
_uart6850_input_loop:                   ## @uart6850_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	%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	$10, %r13d
	movq	_uart6850_opened@GOTPCREL(%rip), %r14
	movq	_OPEN_READ@GOTPCREL(%rip), %r12
	movq	_my_dev@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%r13d, %r13d
	je	LBB0_8
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	xorl	%eax, %eax
	callq	_input_avail
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_uart6850_read
	movl	(%r12), %ecx
	movl	$100, %r13d
	testl	%ecx, (%r14)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	movzbl	%al, %esi
	callq	_midi_input_intr
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r13d
	movl	%r13d, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_input_avail
	leal	-1(%rbx), %r13d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$1, %ebx
	movl	%r13d, %ebx
	jne	LBB0_3
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uart6850_opened,4,2            ## @uart6850_opened
	.comm	_OPEN_READ,4,2                  ## @OPEN_READ
	.comm	_my_dev,4,2                     ## @my_dev
	.no_dead_strip	_uart6850_input_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uart6850_input_loop
_uart6850_input_loop:                   ; @uart6850_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	w22, #10
Lloh0:
	adrp	x19, _uart6850_opened@GOTPAGE
Lloh1:
	ldr	x19, [x19, _uart6850_opened@GOTPAGEOFF]
Lloh2:
	adrp	x20, _OPEN_READ@GOTPAGE
Lloh3:
	ldr	x20, [x20, _OPEN_READ@GOTPAGEOFF]
Lloh4:
	adrp	x21, _my_dev@GOTPAGE
Lloh5:
	ldr	x21, [x21, _my_dev@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #100
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w22, LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	bl	_input_avail
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_uart6850_read
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x0
	ldr	w0, [x21]
	bl	_midi_input_intr
	b	LBB0_1
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_input_avail
	subs	w22, w22, #1
	cbnz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	b.ne	LBB0_7
	b	LBB0_2
LBB0_9:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_uart6850_opened,4,2            ; @uart6850_opened
	.comm	_OPEN_READ,4,2                  ; @OPEN_READ
	.comm	_my_dev,4,2                     ; @my_dev
	.no_dead_strip	_uart6850_input_loop
.subsections_via_symbols
