	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inp_next
_inp_next:                              ## @inp_next
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_1
LBB0_7:
	movl	$1, (%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_UDERR
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	16(%rbx), %rcx
	cmpq	24(%rbx), %rcx
	jge	LBB0_7
## %bb.3:
	incl	56(%rbx)
	leaq	1(%rcx), %rdx
	movq	%rdx, 16(%rbx)
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 32(%rbx)
	jmp	LBB0_8
LBB0_4:
	movl	36(%rbx), %eax
	movq	_UD_EOI@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	*40(%rbx)
	movl	(%r14), %ecx
	cmpl	%ecx, %eax
	je	LBB0_7
LBB0_6:
	movl	%ecx, 36(%rbx)
	movl	%eax, 32(%rbx)
	movq	48(%rbx), %rcx
	movslq	56(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 56(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	movl	32(%rbx), %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_UD_EOI,4,2                     ## @UD_EOI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"byte expected, eoi received\n"

	.no_dead_strip	_inp_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inp_next
_inp_next:                              ; @inp_next
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_3
LBB0_1:
	mov	w8, #1
	str	w8, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_UDERR
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.4:
	ldp	x9, x10, [x19, #16]
	cmp	x9, x10
	b.ge	LBB0_1
; %bb.5:
	ldr	w10, [x19, #56]
	add	w10, w10, #1
	str	w10, [x19, #56]
	add	x10, x9, #1
	str	x10, [x19, #16]
	ldr	w0, [x8, x9, lsl #2]
	str	w0, [x19, #32]
	b	LBB0_2
LBB0_6:
	ldr	w0, [x19, #36]
Lloh2:
	adrp	x20, _UD_EOI@GOTPAGE
Lloh3:
	ldr	x20, [x20, _UD_EOI@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19, #40]
	mov	x0, x19
	blr	x8
	ldr	w8, [x20]
	cmp	w0, w8
	b.eq	LBB0_1
LBB0_8:
	stp	w0, w8, [x19, #32]
	ldr	x8, [x19, #48]
	ldrsw	x9, [x19, #56]
	add	w10, w9, #1
	str	w10, [x19, #56]
	str	w0, [x8, x9, lsl #2]
	ldr	w0, [x19, #32]
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_UD_EOI,4,2                     ; @UD_EOI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"byte expected, eoi received\n"

	.no_dead_strip	_inp_next
.subsections_via_symbols
