	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2InputFlush
_i2InputFlush:                          ## @i2InputFlush
	.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, %rbx
	callq	_i2Validate
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_CHANN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_ITRC_INPUT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$10, %edx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_ip2trace
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_write_lock_irqsave
	movl	(%rbx), %eax
	movl	12(%rbx), %ecx
	movl	%eax, %edx
	subl	4(%rbx), %edx
	movq	_IBUF_SIZE@GOTPCREL(%rip), %rsi
	movl	%edx, %r14d
	sarl	$31, %r14d
	andl	(%rsi), %r14d
	addl	%edx, %r14d
	movl	%eax, 4(%rbx)
	addl	%r14d, 24(%rbx)
	movl	8(%rbx), %eax
	addl	%r14d, %eax
	movl	%eax, 8(%rbx)
	subl	%ecx, %eax
	jge	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_write_unlock_irqrestore
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %r14d
	jmp	LBB0_6
LBB0_3:
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	callq	_write_unlock_irqrestore
	movl	20(%rbx), %edi
	movq	_NEED_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_i2QueueNeeds
LBB0_5:
	movl	(%r12), %edi
	movl	(%r13), %esi
	movl	$19, %edx
	movl	$1, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_ip2trace
LBB0_6:
	movl	%r14d, %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	_IBUF_SIZE,8,3                  ## @IBUF_SIZE
	.comm	_NEED_FLOW,4,2                  ## @NEED_FLOW
	.no_dead_strip	_i2InputFlush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2InputFlush
_i2InputFlush:                          ; @i2InputFlush
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_i2Validate
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x22, _CHANN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CHANN@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x23, _ITRC_INPUT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ITRC_INPUT@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #10
	mov	w3, #0
	bl	_ip2trace
	add	x21, x19, #16
	mov	x0, x21
	bl	_write_lock_irqsave
	ldp	w9, w8, [x19]
Lloh4:
	adrp	x10, _IBUF_SIZE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _IBUF_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	sub	w8, w9, w8
	and	w10, w10, w8, asr #31
	add	w20, w10, w8
	ldr	w8, [x19, #24]
	add	w8, w20, w8
	str	w8, [x19, #24]
	ldp	w8, w10, [x19, #8]
	add	w11, w8, w20
	subs	w8, w11, w10
	stp	w9, w11, [x19, #4]
	b.ge	LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_write_unlock_irqrestore
	b	LBB0_5
LBB0_3:
	mov	w20, #-1
	b	LBB0_6
LBB0_4:
	str	w8, [x19, #8]
	mov	x0, x21
	bl	_write_unlock_irqrestore
	ldr	w0, [x19, #20]
Lloh7:
	adrp	x8, _NEED_FLOW@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NEED_FLOW@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_i2QueueNeeds
LBB0_5:
	ldr	w0, [x22]
	ldr	w1, [x23]
	str	x20, [sp]
	mov	w2, #19
	mov	w3, #1
	bl	_ip2trace
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANN,4,2                      ; @CHANN
	.comm	_ITRC_INPUT,4,2                 ; @ITRC_INPUT
	.comm	_IBUF_SIZE,8,3                  ; @IBUF_SIZE
	.comm	_NEED_FLOW,4,2                  ; @NEED_FLOW
	.no_dead_strip	_i2InputFlush
.subsections_via_symbols
