	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2Input
_i2Input:                               ## @i2Input
	.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, %r14
	movq	_CHANN@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_ITRC_INPUT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_ITRC_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_ip2trace
	movq	%r14, %rdi
	callq	_i2Validate
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	12(%r14), %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_write_lock_irqsave
	movzwl	(%r14), %r13d
	movzwl	2(%r14), %eax
	cmpw	%r13w, %ax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_write_unlock_irqrestore
	movq	_CHANN@GOTPCREL(%rip), %r15
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_4:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	subl	%r13d, %eax
	movq	_IBUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movl	%eax, %ebx
	sarl	$31, %ebx
	andl	%r15d, %ebx
	addl	%eax, %ebx
	movq	32(%r14), %rdi
	movl	(%rdi), %eax
	cmpl	%eax, %ebx
	cmovgel	%eax, %ebx
	subl	%r13d, %r15d
	cmpl	%ebx, %r15d
	movl	%ebx, %r12d
	cmovll	%r15d, %r12d
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	leaq	(,%r13,4), %rsi
	addq	24(%r14), %rsi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	callq	*(%rax)
	cmpl	%r15d, %ebx
	jle	LBB0_6
## %bb.5:
	movq	24(%r14), %rsi
	movq	32(%r14), %rdi
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	subl	%r12d, %ecx
	xorl	%edx, %edx
	callq	*(%rax)
LBB0_6:
	addl	%ebx, %r13d
	movzwl	%r13w, %eax
	movq	_IBUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%eax, %ecx
	movl	$0, %eax
	cmovlel	%ecx, %eax
	subl	%eax, %r13d
	movw	%r13w, (%r14)
	addl	%ebx, 20(%r14)
	movl	4(%r14), %eax
	addl	%ebx, %eax
	movl	%eax, 4(%r14)
	subl	8(%r14), %eax
	movq	_CHANN@GOTPCREL(%rip), %r15
	movq	_ITRC_INPUT@GOTPCREL(%rip), %r12
	jge	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_write_unlock_irqrestore
	jmp	LBB0_9
LBB0_7:
	movl	%eax, 4(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_write_unlock_irqrestore
	movl	16(%r14), %edi
	movq	_NEED_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_i2QueueNeeds
LBB0_9:
	movl	(%r15), %edi
	movl	(%r12), %esi
	movq	_ITRC_RETURN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_ip2trace
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANN,4,2                      ## @CHANN
	.comm	_ITRC_INPUT,4,2                 ## @ITRC_INPUT
	.comm	_ITRC_ENTER,4,2                 ## @ITRC_ENTER
	.comm	_IBUF_SIZE,4,2                  ## @IBUF_SIZE
	.comm	_NEED_FLOW,4,2                  ## @NEED_FLOW
	.comm	_ITRC_RETURN,4,2                ## @ITRC_RETURN
	.no_dead_strip	_i2Input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2Input
_i2Input:                               ; @i2Input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x23, _CHANN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CHANN@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x24, _ITRC_INPUT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ITRC_INPUT@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh4:
	adrp	x8, _ITRC_ENTER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ITRC_ENTER@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_ip2trace
	mov	x0, x19
	bl	_i2Validate
	cbz	w0, LBB0_3
; %bb.1:
	add	x21, x19, #12
	mov	x0, x21
	mov	x1, #0
	bl	_write_lock_irqsave
	ldrh	w25, [x19]
	ldrh	w8, [x19, #2]
	subs	w8, w8, w25
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x21
	mov	x1, #0
	bl	_write_unlock_irqrestore
	mov	w20, #0
	b	LBB0_9
LBB0_3:
	mov	w20, #-1
	b	LBB0_9
LBB0_4:
Lloh7:
	adrp	x26, _IBUF_SIZE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _IBUF_SIZE@GOTPAGEOFF]
	ldr	w9, [x26]
	and	w10, w9, w8, asr #31
	ldp	x11, x0, [x19, #24]
	ldr	w12, [x0]
	add	w8, w10, w8
	cmp	w8, w12
	csel	w20, w8, w12, lt
	sub	w27, w9, w25
	cmp	w27, w20
	csel	w22, w27, w20, lt
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x1, x11, x25, lsl #2
	mov	x2, #0
	mov	x3, x22
	blr	x8
	cmp	w20, w27
	b.le	LBB0_6
; %bb.5:
	ldp	x1, x0, [x19, #24]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	sub	w3, w20, w22
	mov	x2, #0
	blr	x8
LBB0_6:
	ldr	w8, [x26]
	add	w9, w25, w20
	cmp	w8, w9, uxth
	csel	w8, wzr, w8, gt
	sub	w8, w9, w8
	strh	w8, [x19]
	ldr	w8, [x19, #20]
	add	w8, w8, w20
	str	w8, [x19, #20]
	ldp	w8, w9, [x19, #4]
	add	w10, w8, w20
	subs	w8, w10, w9
	str	w10, [x19, #4]
	b.ge	LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, #0
	bl	_write_unlock_irqrestore
	b	LBB0_9
LBB0_8:
	str	w8, [x19, #4]
	mov	x0, x21
	mov	x1, #0
	bl	_write_unlock_irqrestore
	ldr	w0, [x19, #16]
Lloh9:
	adrp	x8, _NEED_FLOW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NEED_FLOW@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_i2QueueNeeds
LBB0_9:
	ldr	w0, [x23]
	ldr	w1, [x24]
Lloh12:
	adrp	x8, _ITRC_RETURN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ITRC_RETURN@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	str	x20, [sp]
	mov	w3, #1
	bl	_ip2trace
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANN,4,2                      ; @CHANN
	.comm	_ITRC_INPUT,4,2                 ; @ITRC_INPUT
	.comm	_ITRC_ENTER,4,2                 ; @ITRC_ENTER
	.comm	_IBUF_SIZE,4,2                  ; @IBUF_SIZE
	.comm	_NEED_FLOW,4,2                  ; @NEED_FLOW
	.comm	_ITRC_RETURN,4,2                ; @ITRC_RETURN
	.no_dead_strip	_i2Input
.subsections_via_symbols
