	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2DrainOutput
_i2DrainOutput:                         ## @i2DrainOutput
	.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	%esi, %r14d
	movq	%rdi, %r15
	movq	_CHANN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_ITRC_DRAIN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_ITRC_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r15), %r8
	movl	$1, %ecx
	callq	_ip2trace
	movq	16(%r15), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_3:
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.4:
	cmpq	$0, (%r15)
	jne	LBB0_6
## %bb.5:
	movq	_i2DrainWakeup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r15, %rdx
	callq	_setup_timer
	movl	(%r12), %edi
	movl	(%r13), %esi
	movq	(%r15), %r8
	movl	$1, %edx
	movl	$1, %ecx
	callq	_ip2trace
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	%r14d, %esi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_mod_timer
LBB0_6:
	movq	_PTYPE_INLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMD_BMARK_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rsi
	movl	$-1, %edx
	movl	$1, %ecx
	callq	_i2QueueCommands
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	callq	_init_waitqueue_entry
	leaq	8(%r15), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_add_wait_queue
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%rbx, %rdi
	callq	_serviceOutgoingFifo
	xorl	%eax, %eax
	callq	_schedule
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%r13, %rdi
	movq	_ITRC_DRAIN@GOTPCREL(%rip), %r13
	movq	%r12, %rsi
	movq	_CHANN@GOTPCREL(%rip), %rbx
	callq	_remove_wait_queue
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.7:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.8:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_del_timer
	movq	$0, (%r15)
	movl	(%rbx), %edi
	movl	(%r13), %esi
	movl	$3, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_ip2trace
LBB0_10:
	movl	(%rbx), %edi
	movl	(%r13), %esi
	movq	_ITRC_RETURN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r15), %r8
	movl	$1, %ecx
	callq	_ip2trace
LBB0_11:
	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_DRAIN,4,2                 ## @ITRC_DRAIN
	.comm	_ITRC_ENTER,4,2                 ## @ITRC_ENTER
	.comm	_i2DrainWakeup,4,2              ## @i2DrainWakeup
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_PTYPE_INLINE,4,2               ## @PTYPE_INLINE
	.comm	_CMD_BMARK_REQ,4,2              ## @CMD_BMARK_REQ
	.comm	_current,4,2                    ## @current
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.comm	_ITRC_RETURN,4,2                ## @ITRC_RETURN
	.no_dead_strip	_i2DrainOutput
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2DrainOutput
_i2DrainOutput:                         ; @i2DrainOutput
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _CHANN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CHANN@GOTPAGEOFF]
Lloh2:
	adrp	x24, _ITRC_DRAIN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ITRC_DRAIN@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w1, [x24]
Lloh4:
	adrp	x8, _ITRC_ENTER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ITRC_ENTER@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	ldr	x4, [x19]
	mov	w3, #1
	bl	_ip2trace
	ldr	x21, [x19, #16]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x1, [x21]
	cbz	x1, LBB0_11
; %bb.2:
	mov	x0, x21
	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
	br	x1
LBB0_3:
	cmp	w20, #1
	b.lt	LBB0_6
; %bb.4:
	ldr	x8, [x19]
	cbnz	x8, LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _i2DrainWakeup@GOTPAGE
Lloh8:
	ldr	x8, [x8, _i2DrainWakeup@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_setup_timer
	ldr	w0, [x23]
	ldr	w1, [x24]
	ldr	x4, [x19]
	mov	w2, #1
	mov	w3, #1
	bl	_ip2trace
Lloh10:
	adrp	x8, _jiffies@GOTPAGE
Lloh11:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	add	x1, x8, w20, uxtw
	mov	x0, x19
	bl	_mod_timer
LBB0_6:
Lloh13:
	adrp	x8, _PTYPE_INLINE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PTYPE_INLINE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _CMD_BMARK_REQ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CMD_BMARK_REQ@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
	mov	x1, x19
	mov	w2, #-1
	mov	w3, #1
	bl	_i2QueueCommands
Lloh19:
	adrp	x8, _current@GOTPAGE
Lloh20:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_init_waitqueue_entry
	add	x22, x19, #8
	add	x1, sp, #12
	mov	x0, x22
	bl	_add_wait_queue
Lloh22:
	adrp	x8, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_set_current_state
	mov	x0, x21
	bl	_serviceOutgoingFifo
	bl	_schedule
Lloh25:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_set_current_state
	add	x1, sp, #12
	mov	x0, x22
	bl	_remove_wait_queue
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.7:
	ldr	x1, [x19]
	cbz	x1, LBB0_10
; %bb.8:
Lloh28:
	adrp	x8, _jiffies@GOTPAGE
Lloh29:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh30:
	ldr	x0, [x8]
	bl	_time_before
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_del_timer
	str	xzr, [x19]
	ldr	w0, [x23]
	ldr	w1, [x24]
	mov	w2, #3
	mov	w3, #1
	mov	x4, #0
	bl	_ip2trace
LBB0_10:
	ldr	w0, [x23]
	ldr	w1, [x24]
Lloh31:
	adrp	x8, _ITRC_RETURN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ITRC_RETURN@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	ldr	x4, [x19]
	mov	w3, #1
	bl	_ip2trace
LBB0_11:
	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	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANN,4,2                      ; @CHANN
	.comm	_ITRC_DRAIN,4,2                 ; @ITRC_DRAIN
	.comm	_ITRC_ENTER,4,2                 ; @ITRC_ENTER
	.comm	_i2DrainWakeup,4,2              ; @i2DrainWakeup
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_PTYPE_INLINE,4,2               ; @PTYPE_INLINE
	.comm	_CMD_BMARK_REQ,4,2              ; @CMD_BMARK_REQ
	.comm	_current,4,2                    ; @current
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.comm	_ITRC_RETURN,4,2                ; @ITRC_RETURN
	.no_dead_strip	_i2DrainOutput
.subsections_via_symbols
