	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function session_subsystem_req
_session_subsystem_req:                 ## @session_subsystem_req
	.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, %r12
	movq	%rdi, %r13
	leaq	-64(%rbp), %rdi
	callq	_packet_get_string
	movl	%eax, 8(%r12)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_packet_check_eom
	movl	8(%r12), %esi
	movq	(%r12), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	callq	_debug2
	movq	_options@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_11
## %bb.1:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpq	(%rbx), %r15
	jb	LBB0_2
	jmp	LBB0_11
LBB0_3:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	(%rax,%r15,8), %r13
	movq	(%rcx,%r15,8), %rbx
	movq	_INTERNAL_SFTP_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_stat
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_debug
LBB0_9:
	movq	_SUBSYSTEM_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	jmp	LBB0_5
LBB0_4:
	movq	_SUBSYSTEM_INT_SFTP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
LBB0_5:
	xorl	%eax, %eax
	callq	_debug
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_do_exec
	testq	%rax, %rax
	je	LBB0_6
LBB0_11:
	movl	8(%r12), %esi
	movq	(%r12), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rdi
	callq	_logit
LBB0_12:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$1, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"subsystem request for %.100s by user %s"

	.comm	_options,32,3                   ## @options
	.comm	_INTERNAL_SFTP_NAME,4,2         ## @INTERNAL_SFTP_NAME
	.comm	_SUBSYSTEM_INT_SFTP,4,2         ## @SUBSYSTEM_INT_SFTP
L_.str.1:                               ## @.str.1
	.asciz	"subsystem: %s"

L_.str.2:                               ## @.str.2
	.asciz	"subsystem: cannot stat %s: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_SUBSYSTEM_EXT,4,2              ## @SUBSYSTEM_EXT
L_.str.3:                               ## @.str.3
	.asciz	"subsystem: exec() %s"

L_.str.4:                               ## @.str.4
	.asciz	"subsystem request for %.100s by user %s failed, subsystem not found"

	.no_dead_strip	_session_subsystem_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function session_subsystem_req
_session_subsystem_req:                 ; @session_subsystem_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #16
	bl	_packet_get_string
	str	w0, [x19, #8]
	bl	_packet_check_eom
	ldr	w1, [x19, #8]
	ldr	x8, [x19]
	ldr	w2, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug2
Lloh2:
	adrp	x21, _options@GOTPAGE
Lloh3:
	ldr	x21, [x21, _options@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	x8, [x21, #8]
	ldr	x1, [x8, x22, lsl #3]
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.lo	LBB0_2
	b	LBB0_10
LBB0_4:
	lsl	x8, x22, #3
	ldp	x9, x10, [x21, #16]
	ldr	x22, [x9, x8]
	ldr	x21, [x10, x8]
Lloh4:
	adrp	x8, _INTERNAL_SFTP_NAME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INTERNAL_SFTP_NAME@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.5:
	add	x1, sp, #24
	mov	x0, x22
	bl	_stat
	tbz	x0, #63, LBB0_7
; %bb.6:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_debug
LBB0_7:
Lloh12:
	adrp	x8, _SUBSYSTEM_EXT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SUBSYSTEM_EXT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _SUBSYSTEM_INT_SFTP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SUBSYSTEM_INT_SFTP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
LBB0_9:
	bl	_debug
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_do_exec
	cbz	x0, LBB0_12
LBB0_10:
	ldr	w1, [x19, #8]
	ldr	x8, [x19]
	ldr	w2, [x8]
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_logit
	mov	w0, #0
LBB0_11:
	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
	add	sp, sp, #80
	ret
LBB0_12:
	mov	w0, #1
	b	LBB0_11
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"subsystem request for %.100s by user %s"

	.comm	_options,32,3                   ; @options
	.comm	_INTERNAL_SFTP_NAME,4,2         ; @INTERNAL_SFTP_NAME
	.comm	_SUBSYSTEM_INT_SFTP,4,2         ; @SUBSYSTEM_INT_SFTP
l_.str.1:                               ; @.str.1
	.asciz	"subsystem: %s"

l_.str.2:                               ; @.str.2
	.asciz	"subsystem: cannot stat %s: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_SUBSYSTEM_EXT,4,2              ; @SUBSYSTEM_EXT
l_.str.3:                               ; @.str.3
	.asciz	"subsystem: exec() %s"

l_.str.4:                               ; @.str.4
	.asciz	"subsystem request for %.100s by user %s failed, subsystem not found"

	.no_dead_strip	_session_subsystem_req
.subsections_via_symbols
