	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_post_mux_client_read
_channel_post_mux_client_read:          ## @channel_post_mux_client_read
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rsi), %edi
	cmpl	$-1, %edi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdx, %rsi
	callq	_FD_ISSET
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movq	8(%rbx), %rax
	movq	_CHAN_INPUT_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_CHAN_INPUT_WAIT_DRAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_4:
	cmpq	$0, 32(%rbx)
	jne	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_read_mux
	cmpl	$4, %eax
	jge	LBB0_6
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	28(%rbx), %edi
	callq	_sshbuf_ptr
	movl	%eax, %edi
	callq	_PEEK_U32
	movl	%eax, %r15d
	cmpl	$262145, %eax                   ## imm = 0x40001
	jl	LBB0_7
## %bb.10:
	movl	24(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movl	$262144, %edx                   ## imm = 0x40000
	movl	%r15d, %ecx
	callq	_debug2
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chan_rcvd_oclose               ## TAILCALL
LBB0_7:
	addl	$4, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_read_mux
	cmpl	%r15d, %eax
	jl	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*16(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movl	24(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_debug
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chan_mark_dead                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAN_INPUT_OPEN,8,3            ## @CHAN_INPUT_OPEN
	.comm	_CHAN_INPUT_WAIT_DRAIN,8,3      ## @CHAN_INPUT_WAIT_DRAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"channel %d: packet too big %u > %u"

L_.str.1:                               ## @.str.1
	.asciz	"channel %d: mux_rcb failed"

	.comm	_CHANNEL_MUX_MAX_PACKET,4,2     ## @CHANNEL_MUX_MAX_PACKET
	.no_dead_strip	_channel_post_mux_client_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_post_mux_client_read
_channel_post_mux_client_read:          ; @channel_post_mux_client_read
	.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	x20, x0
	ldr	w0, [x1]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x1, x2
	bl	_FD_ISSET
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _CHAN_INPUT_OPEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHAN_INPUT_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _CHAN_INPUT_WAIT_DRAIN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CHAN_INPUT_WAIT_DRAIN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #4
	bl	_read_mux
	cmp	w0, #4
	b.ge	LBB0_6
LBB0_5:
	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
LBB0_6:
	ldr	w0, [x19, #28]
	bl	_sshbuf_ptr
	bl	_PEEK_U32
	mov	x3, x0
	cmp	w0, #64, lsl #12                ; =262144
	b.le	LBB0_8
; %bb.7:
	ldr	w1, [x19, #24]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #262144
	bl	_debug2
	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_rcvd_oclose
LBB0_8:
	add	w21, w3, #4
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_read_mux
	cmp	w0, w21
	b.lt	LBB0_5
; %bb.9:
	ldr	x8, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	cbz	x0, LBB0_5
; %bb.10:
	ldr	w1, [x19, #24]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debug
	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_mark_dead
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAN_INPUT_OPEN,8,3            ; @CHAN_INPUT_OPEN
	.comm	_CHAN_INPUT_WAIT_DRAIN,8,3      ; @CHAN_INPUT_WAIT_DRAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"channel %d: packet too big %u > %u"

l_.str.1:                               ; @.str.1
	.asciz	"channel %d: mux_rcb failed"

	.comm	_CHANNEL_MUX_MAX_PACKET,4,2     ; @CHANNEL_MUX_MAX_PACKET
	.no_dead_strip	_channel_post_mux_client_read
.subsections_via_symbols
