	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_pre_dynamic
_channel_pre_dynamic:                   ## @channel_pre_dynamic
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	16(%rsi), %edi
	callq	_sshbuf_len
	movl	%eax, %ebx
	movl	12(%r13), %esi
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_debug2
	cmpl	$2, %ebx
	jg	LBB0_3
## %bb.1:
	movl	4(%r13), %edi
	movq	%r15, %rsi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FD_SET                         ## TAILCALL
LBB0_3:
	movl	16(%r13), %edi
	callq	_sshbuf_ptr
	movl	(%rax), %eax
	cmpl	$5, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$4, %eax
	jne	LBB0_13
## %bb.5:
	movl	8(%r13), %edx
	movl	16(%r13), %esi
	movq	%r13, %rdi
	callq	_channel_decode_socks4
	testl	%eax, %eax
	js	LBB0_13
LBB0_8:
	je	LBB0_9
## %bb.11:
	movq	_SSH_CHANNEL_OPENING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_port_open_helper               ## TAILCALL
LBB0_6:
	movl	8(%r13), %edx
	movl	16(%r13), %esi
	movq	%r13, %rdi
	callq	_channel_decode_socks5
	testl	%eax, %eax
	jns	LBB0_8
LBB0_13:
	movq	%r12, %rdi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chan_mark_dead                 ## TAILCALL
LBB0_9:
	movl	12(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_debug2
	movl	4(%r13), %edi
	movq	%r15, %rsi
	callq	_FD_SET
	movl	8(%r13), %edi
	callq	_sshbuf_len
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	4(%r13), %edi
	movq	%r14, %rsi
	jmp	LBB0_2
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"channel %d: pre_dynamic: have %d"

L_.str.1:                               ## @.str.1
	.asciz	"channel %d: pre_dynamic: need more"

	.comm	_SSH_CHANNEL_OPENING,4,2        ## @SSH_CHANNEL_OPENING
L_.str.2:                               ## @.str.2
	.asciz	"direct-tcpip"

	.no_dead_strip	_channel_pre_dynamic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_pre_dynamic
_channel_pre_dynamic:                   ; @channel_pre_dynamic
	.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, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x1, #16]
	bl	_sshbuf_len
	mov	x23, x0
	ldr	w1, [x19, #12]
	str	x23, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug2
	cmp	w23, #2
	b.gt	LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
	mov	x1, x21
LBB0_2:
	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
	b	_FD_SET
LBB0_3:
	ldr	w0, [x19, #16]
	bl	_sshbuf_ptr
	ldr	w8, [x0]
	cmp	w8, #5
	b.eq	LBB0_8
; %bb.4:
	cmp	w8, #4
	b.ne	LBB0_9
; %bb.5:
	ldr	w1, [x19, #16]
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_channel_decode_socks4
	tbnz	w0, #31, LBB0_9
LBB0_6:
	cbz	w0, LBB0_10
; %bb.7:
Lloh2:
	adrp	x8, _SSH_CHANNEL_OPENING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSH_CHANNEL_OPENING@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh5:
	adrp	x2, l_.str.2@PAGE
Lloh6:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x1, x19
	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
	b	_port_open_helper
LBB0_8:
	ldr	w1, [x19, #16]
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_channel_decode_socks5
	tbz	w0, #31, LBB0_6
LBB0_9:
	mov	x0, x22
	mov	x1, x19
	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
	b	_chan_mark_dead
LBB0_10:
	ldr	w1, [x19, #12]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debug2
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_FD_SET
	ldr	w0, [x19, #8]
	bl	_sshbuf_len
	cbz	w0, LBB0_12
; %bb.11:
	ldr	w0, [x19, #4]
	mov	x1, x20
	b	LBB0_2
LBB0_12:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"channel %d: pre_dynamic: have %d"

l_.str.1:                               ; @.str.1
	.asciz	"channel %d: pre_dynamic: need more"

	.comm	_SSH_CHANNEL_OPENING,4,2        ; @SSH_CHANNEL_OPENING
l_.str.2:                               ; @.str.2
	.asciz	"direct-tcpip"

	.no_dead_strip	_channel_pre_dynamic
.subsections_via_symbols
