	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_pre_mux_client
_channel_pre_mux_client:                ## @channel_pre_mux_client
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_CHAN_INPUT_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	cmpl	$0, 32(%rbx)
	jne	LBB0_4
## %bb.2:
	movq	%rdx, %r12
	movl	24(%rbx), %edi
	movq	_CHAN_RBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sshbuf_check_reserve
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	28(%rbx), %edi
	movq	%r12, %rsi
	callq	_FD_SET
LBB0_4:
	movq	(%rbx), %rax
	movq	_CHAN_INPUT_WAIT_DRAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	24(%rbx), %edi
	callq	_sshbuf_reset
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_chan_ibuf_empty
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_chan_rcvd_oclose
LBB0_6:
	movq	8(%rbx), %rax
	movq	_CHAN_OUTPUT_OPEN@GOTPCREL(%rip), %rcx
	movq	_CHAN_OUTPUT_WAIT_DRAIN@GOTPCREL(%rip), %r12
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	cmpq	(%r12), %rax
	je	LBB0_8
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	20(%rbx), %edi
	callq	_sshbuf_len
	testq	%rax, %rax
	jle	LBB0_9
## %bb.11:
	movl	16(%rbx), %edi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FD_SET                         ## TAILCALL
LBB0_9:
	movq	8(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_10
## %bb.12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chan_obuf_empty                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAN_INPUT_OPEN,8,3            ## @CHAN_INPUT_OPEN
	.comm	_CHAN_RBUF,4,2                  ## @CHAN_RBUF
	.comm	_CHAN_INPUT_WAIT_DRAIN,8,3      ## @CHAN_INPUT_WAIT_DRAIN
	.comm	_CHAN_OUTPUT_OPEN,8,3           ## @CHAN_OUTPUT_OPEN
	.comm	_CHAN_OUTPUT_WAIT_DRAIN,8,3     ## @CHAN_OUTPUT_WAIT_DRAIN
	.no_dead_strip	_channel_pre_mux_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_pre_mux_client
_channel_pre_mux_client:                ; @channel_pre_mux_client
	.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	x21, x3
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _CHAN_INPUT_OPEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHAN_INPUT_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_4
; %bb.2:
	mov	x22, x2
	ldr	w0, [x19, #24]
Lloh3:
	adrp	x8, _CHAN_RBUF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHAN_RBUF@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_sshbuf_check_reserve
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #28]
	mov	x1, x22
	bl	_FD_SET
LBB0_4:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _CHAN_INPUT_WAIT_DRAIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CHAN_INPUT_WAIT_DRAIN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x19, #24]
	bl	_sshbuf_reset
	mov	x0, x20
	mov	x1, x19
	bl	_chan_ibuf_empty
	mov	x0, x20
	mov	x1, x19
	bl	_chan_rcvd_oclose
LBB0_6:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _CHAN_OUTPUT_OPEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CHAN_OUTPUT_OPEN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x22, _CHAN_OUTPUT_WAIT_DRAIN@GOTPAGE
Lloh13:
	ldr	x22, [x22, _CHAN_OUTPUT_WAIT_DRAIN@GOTPAGEOFF]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_11
; %bb.7:
	ldr	w0, [x19, #20]
	bl	_sshbuf_len
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.8:
	ldr	w0, [x19, #16]
	mov	x1, x21
	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
	b	_FD_SET
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	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
	b	_chan_obuf_empty
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAN_INPUT_OPEN,8,3            ; @CHAN_INPUT_OPEN
	.comm	_CHAN_RBUF,4,2                  ; @CHAN_RBUF
	.comm	_CHAN_INPUT_WAIT_DRAIN,8,3      ; @CHAN_INPUT_WAIT_DRAIN
	.comm	_CHAN_OUTPUT_OPEN,8,3           ; @CHAN_OUTPUT_OPEN
	.comm	_CHAN_OUTPUT_WAIT_DRAIN,8,3     ; @CHAN_OUTPUT_WAIT_DRAIN
	.no_dead_strip	_channel_pre_mux_client
.subsections_via_symbols
