	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_post_port_listener
_channel_post_port_listener:            ## @channel_post_port_listener
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	48(%rsi), %edi
	movq	%rdx, %rsi
	callq	_FD_ISSET
	testl	%eax, %eax
	je	LBB0_22
## %bb.1:
	movl	24(%r14), %esi
	movq	(%r14), %rcx
	movq	16(%r14), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_debug
	movq	8(%r14), %rcx
	movq	_SSH_CHANNEL_RPORT_LISTENER@GOTPCREL(%rip), %rdx
	movq	_SSH_CHANNEL_OPENING@GOTPCREL(%rip), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_8
LBB0_3:
	movq	_SSH_CHANNEL_RUNIX_LISTENER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %r15
	jmp	LBB0_8
LBB0_5:
	movq	(%r14), %rcx
	movq	_PORT_STREAMLOCAL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %r15
	jmp	LBB0_8
LBB0_7:
	testq	%rcx, %rcx
	movq	_SSH_CHANNEL_OPENING@GOTPCREL(%rip), %rax
	cmoveq	_SSH_CHANNEL_DYNAMIC@GOTPCREL(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.5(%rip), %r15
	cmoveq	%rcx, %r15
LBB0_8:
	movl	(%rax), %r12d
	movl	$4, -44(%rbp)
	movl	48(%r14), %edi
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_accept
	testl	%eax, %eax
	js	LBB0_9
## %bb.16:
	movl	%eax, %ebx
	movq	(%r14), %rax
	movq	_PORT_STREAMLOCAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.17:
	movl	%ebx, %edi
	callq	_set_nodelay
LBB0_18:
	movl	28(%r14), %eax
	movl	32(%r14), %r10d
	subq	$8, %rsp
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%ebx, %r8d
	movl	$-1, %r9d
	pushq	$1
	pushq	%r15
	pushq	$0
	pushq	%rax
	pushq	%r10
	callq	_channel_new
	addq	$48, %rsp
	movq	%rax, %r13
	movl	24(%r14), %eax
	movl	%eax, 24(%r13)
	movq	(%r14), %rax
	movq	%rax, (%r13)
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_xstrdup
	movq	%rax, 16(%r13)
LBB0_20:
	movq	_SSH_CHANNEL_DYNAMIC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_22
## %bb.21:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_port_open_helper
	jmp	LBB0_22
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_EINTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_13
## %bb.10:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_13
## %bb.11:
	movq	_ECONNABORTED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_13
## %bb.12:
	callq	_strerror
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	callq	_error
	movq	(%rbx), %rdi
LBB0_13:
	movq	_EMFILE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_15
## %bb.14:
	movq	_ENFILE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_22
LBB0_15:
	xorl	%eax, %eax
	callq	_monotime
	incq	%rax
	movq	%rax, 40(%r14)
LBB0_22:
	addq	$24, %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	"Connection to port %d forwarding to %.100s port %d requested."

	.comm	_SSH_CHANNEL_RPORT_LISTENER,8,3 ## @SSH_CHANNEL_RPORT_LISTENER
	.comm	_SSH_CHANNEL_OPENING,4,2        ## @SSH_CHANNEL_OPENING
L_.str.1:                               ## @.str.1
	.asciz	"forwarded-tcpip"

	.comm	_SSH_CHANNEL_RUNIX_LISTENER,8,3 ## @SSH_CHANNEL_RUNIX_LISTENER
L_.str.2:                               ## @.str.2
	.asciz	"forwarded-streamlocal@openssh.com"

	.comm	_PORT_STREAMLOCAL,8,3           ## @PORT_STREAMLOCAL
L_.str.3:                               ## @.str.3
	.asciz	"direct-streamlocal@openssh.com"

	.comm	_SSH_CHANNEL_DYNAMIC,4,2        ## @SSH_CHANNEL_DYNAMIC
L_.str.4:                               ## @.str.4
	.asciz	"dynamic-tcpip"

L_.str.5:                               ## @.str.5
	.asciz	"direct-tcpip"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.comm	_ECONNABORTED,8,3               ## @ECONNABORTED
L_.str.6:                               ## @.str.6
	.asciz	"accept: %.100s"

	.comm	_EMFILE,8,3                     ## @EMFILE
	.comm	_ENFILE,8,3                     ## @ENFILE
	.no_dead_strip	_channel_post_port_listener
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_post_port_listener
_channel_post_port_listener:            ; @channel_post_port_listener
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	ldr	w0, [x1, #48]
	mov	x1, x2
	bl	_FD_ISSET
	cbz	w0, LBB0_19
; %bb.1:
	ldr	w1, [x19, #24]
	ldr	x2, [x19, #16]
	ldr	x3, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _SSH_CHANNEL_RPORT_LISTENER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SSH_CHANNEL_RPORT_LISTENER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x9, _SSH_CHANNEL_RUNIX_LISTENER@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SSH_CHANNEL_RUNIX_LISTENER@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh10:
	adrp	x21, l_.str.2@PAGE
Lloh11:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_5:
Lloh12:
	adrp	x8, _SSH_CHANNEL_OPENING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSH_CHANNEL_OPENING@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _PORT_STREAMLOCAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PORT_STREAMLOCAL@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x10, l_.str.3@PAGE
Lloh18:
	add	x10, x10, l_.str.3@PAGEOFF
Lloh19:
	adrp	x11, _SSH_CHANNEL_OPENING@GOTPAGE
Lloh20:
	ldr	x11, [x11, _SSH_CHANNEL_OPENING@GOTPAGEOFF]
Lloh21:
	adrp	x12, _SSH_CHANNEL_DYNAMIC@GOTPAGE
Lloh22:
	ldr	x12, [x12, _SSH_CHANNEL_DYNAMIC@GOTPAGEOFF]
	cmp	x9, #0
	csel	x12, x12, x11, eq
Lloh23:
	adrp	x13, l_.str.5@PAGE
Lloh24:
	add	x13, x13, l_.str.5@PAGEOFF
Lloh25:
	adrp	x14, l_.str.4@PAGE
Lloh26:
	add	x14, x14, l_.str.4@PAGEOFF
	csel	x13, x14, x13, eq
	cmp	x9, x8
	csel	x8, x11, x12, eq
	csel	x21, x10, x13, eq
LBB0_7:
	ldr	w22, [x8]
	mov	w8, #4
	str	w8, [sp, #20]
	ldr	w0, [x19, #48]
	add	x1, sp, #24
	add	x2, sp, #20
	bl	_accept
	tbnz	w0, #31, LBB0_14
; %bb.8:
	mov	x23, x0
	ldr	x8, [x19]
Lloh27:
	adrp	x9, _PORT_STREAMLOCAL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PORT_STREAMLOCAL@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x23
	bl	_set_nodelay
LBB0_10:
	ldp	w7, w6, [x19, #28]
	mov	w8, #1
	str	w8, [sp, #16]
	str	x21, [sp, #8]
	str	wzr, [sp]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x23
	mov	w5, #-1
	bl	_channel_new
	mov	x23, x0
	ldr	w8, [x19, #24]
	str	w8, [x0, #24]
	ldr	x8, [x19]
	str	x8, [x0]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_xstrdup
	str	x0, [x23, #16]
LBB0_12:
Lloh30:
	adrp	x8, _SSH_CHANNEL_DYNAMIC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SSH_CHANNEL_DYNAMIC@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_19
; %bb.13:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_port_open_helper
	b	LBB0_19
LBB0_14:
Lloh33:
	adrp	x20, _errno@GOTPAGE
Lloh34:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh35:
	adrp	x8, _EINTR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
Lloh38:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh39:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
Lloh41:
	adrp	x10, _ECONNABORTED@GOTPAGE
Lloh42:
	ldr	x10, [x10, _ECONNABORTED@GOTPAGEOFF]
Lloh43:
	ldr	x10, [x10]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	ccmp	x0, x10, #4, ne
	b.eq	LBB0_16
; %bb.15:
	bl	_strerror
	mov	x1, x0
Lloh44:
	adrp	x0, l_.str.6@PAGE
Lloh45:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_error
	ldr	x0, [x20]
LBB0_16:
Lloh46:
	adrp	x8, _EMFILE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EMFILE@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_18
; %bb.17:
Lloh49:
	adrp	x8, _ENFILE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENFILE@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_19
LBB0_18:
	bl	_monotime
	add	x8, x0, #1
	str	x8, [x19, #40]
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Connection to port %d forwarding to %.100s port %d requested."

	.comm	_SSH_CHANNEL_RPORT_LISTENER,8,3 ; @SSH_CHANNEL_RPORT_LISTENER
	.comm	_SSH_CHANNEL_OPENING,4,2        ; @SSH_CHANNEL_OPENING
l_.str.1:                               ; @.str.1
	.asciz	"forwarded-tcpip"

	.comm	_SSH_CHANNEL_RUNIX_LISTENER,8,3 ; @SSH_CHANNEL_RUNIX_LISTENER
l_.str.2:                               ; @.str.2
	.asciz	"forwarded-streamlocal@openssh.com"

	.comm	_PORT_STREAMLOCAL,8,3           ; @PORT_STREAMLOCAL
l_.str.3:                               ; @.str.3
	.asciz	"direct-streamlocal@openssh.com"

	.comm	_SSH_CHANNEL_DYNAMIC,4,2        ; @SSH_CHANNEL_DYNAMIC
l_.str.4:                               ; @.str.4
	.asciz	"dynamic-tcpip"

l_.str.5:                               ; @.str.5
	.asciz	"direct-tcpip"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.comm	_ECONNABORTED,8,3               ; @ECONNABORTED
l_.str.6:                               ; @.str.6
	.asciz	"accept: %.100s"

	.comm	_EMFILE,8,3                     ; @EMFILE
	.comm	_ENFILE,8,3                     ; @ENFILE
	.no_dead_strip	_channel_post_port_listener
.subsections_via_symbols
