	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function server_request_session
_server_request_session:                ## @server_request_session
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_debug
	xorl	%eax, %eax
	callq	_packet_check_eom
	movq	_no_more_sessions@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_packet_disconnect
LBB0_2:
	movq	_SSH_CHANNEL_LARVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CHAN_SES_PACKET_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	$-1, %ecx
	movl	$-1, %r8d
	movl	$-1, %r9d
	pushq	$1
	pushq	%rbx
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_channel_new
	addq	$48, %rsp
	movq	%rax, %rbx
	movq	_the_authctxt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_session_open
	movl	(%rbx), %esi
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.4:
	movq	_session_close_by_channel@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_channel_register_cleanup
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_debug
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_channel_free
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"input_session_request"

	.comm	_no_more_sessions,8,3           ## @no_more_sessions
L_.str.1:                               ## @.str.1
	.asciz	"Possible attack: attempt to open a session after additional sessions disabled"

L_.str.2:                               ## @.str.2
	.asciz	"session"

	.comm	_SSH_CHANNEL_LARVAL,4,2         ## @SSH_CHANNEL_LARVAL
	.comm	_CHAN_SES_PACKET_DEFAULT,4,2    ## @CHAN_SES_PACKET_DEFAULT
L_.str.3:                               ## @.str.3
	.asciz	"server-session"

	.comm	_the_authctxt,4,2               ## @the_authctxt
L_.str.4:                               ## @.str.4
	.asciz	"session open failed, free channel %d"

	.comm	_session_close_by_channel,4,2   ## @session_close_by_channel
	.no_dead_strip	_server_request_session
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function server_request_session
_server_request_session:                ; @server_request_session
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
	bl	_packet_check_eom
Lloh2:
	adrp	x8, _no_more_sessions@GOTPAGE
Lloh3:
	ldr	x8, [x8, _no_more_sessions@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_packet_disconnect
LBB0_2:
Lloh7:
	adrp	x8, _SSH_CHANNEL_LARVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSH_CHANNEL_LARVAL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _CHAN_SES_PACKET_DEFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CHAN_SES_PACKET_DEFAULT@GOTPAGEOFF]
Lloh12:
	ldr	w7, [x8]
	mov	w8, #1
	str	w8, [sp, #16]
Lloh13:
	adrp	x8, l_.str.3@PAGE
Lloh14:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [sp, #8]
	str	wzr, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w3, #-1
	mov	w4, #-1
	mov	w5, #-1
	mov	w6, #0
	bl	_channel_new
	mov	x20, x0
Lloh17:
	adrp	x8, _the_authctxt@GOTPAGE
Lloh18:
	ldr	x8, [x8, _the_authctxt@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_session_open
	ldr	w1, [x20]
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh20:
	adrp	x8, _session_close_by_channel@GOTPAGE
Lloh21:
	ldr	x8, [x8, _session_close_by_channel@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w3, #0
	bl	_channel_register_cleanup
	b	LBB0_5
LBB0_4:
	str	x1, [sp]
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_debug
	mov	x0, x19
	mov	x1, x20
	bl	_channel_free
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"input_session_request"

	.comm	_no_more_sessions,8,3           ; @no_more_sessions
l_.str.1:                               ; @.str.1
	.asciz	"Possible attack: attempt to open a session after additional sessions disabled"

l_.str.2:                               ; @.str.2
	.asciz	"session"

	.comm	_SSH_CHANNEL_LARVAL,4,2         ; @SSH_CHANNEL_LARVAL
	.comm	_CHAN_SES_PACKET_DEFAULT,4,2    ; @CHAN_SES_PACKET_DEFAULT
l_.str.3:                               ; @.str.3
	.asciz	"server-session"

	.comm	_the_authctxt,4,2               ; @the_authctxt
l_.str.4:                               ; @.str.4
	.asciz	"session open failed, free channel %d"

	.comm	_session_close_by_channel,4,2   ; @session_close_by_channel
	.no_dead_strip	_server_request_session
.subsections_via_symbols
