	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_exec                        ## -- Begin function do_exec
	.p2align	4, 0x90
_do_exec:                               ## @do_exec
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_options@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	_original_command@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	leaq	L_.str(%rip), %r12
	jmp	LBB0_4
LBB0_2:
	movq	_auth_opts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.3:
	movq	_original_command@GOTPCREL(%rip), %rcx
	movq	%r12, (%rcx)
	movq	(%rax), %rbx
	leaq	L_.str.1(%rip), %r12
LBB0_4:
	movq	%rbx, %rdi
	callq	_IS_INTERNAL_SFTP
	movq	40(%r14), %rcx
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.7:
	movq	_SUBSYSTEM_INT_SFTP_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.9:
	movq	_SUBSYSTEM_EXT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_SUBSYSTEM_INT_SFTP@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
LBB0_11:
	leaq	L_.str.2(%rip), %rdx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r12, %rcx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_snprintf
LBB0_18:
	movq	%rbx, -1088(%rbp)               ## 8-byte Spill
	cmpl	$-1, 8(%r14)
	je	LBB0_19
## %bb.20:
	movq	16(%r14), %r12
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movl	$5, %edx
	callq	_strncmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leaq	(%rcx,%rcx,4), %rbx
	addq	%r12, %rbx
	jmp	LBB0_21
LBB0_19:
	xorl	%ebx, %ebx
LBB0_21:
	testq	%rbx, %rbx
	leaq	L_.str.8(%rip), %rax
	leaq	L_.str.9(%rip), %r12
	cmoveq	%rax, %r12
	cmoveq	%rax, %rbx
	movq	24(%r14), %rax
	movl	8(%rax), %eax
	movl	%eax, -1076(%rbp)               ## 4-byte Spill
	movq	%r15, %rdi
	callq	_ssh_remote_ipaddr
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_ssh_remote_port
                                        ## kill: def $eax killed $eax def $rax
	movl	32(%r14), %r10d
	leaq	L_.str.7(%rip), %rdi
	leaq	-1072(%rbp), %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	movl	-1076(%rbp), %r8d               ## 4-byte Reload
	movl	%r13d, %r9d
	pushq	%r10
	pushq	%rax
	callq	_verbose
	addq	$16, %rsp
	cmpl	$-1, 8(%r14)
	je	LBB0_23
## %bb.22:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-1088(%rbp), %rdx               ## 8-byte Reload
	callq	_do_exec_pty
	jmp	LBB0_24
LBB0_23:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-1088(%rbp), %rdx               ## 8-byte Reload
	callq	_do_exec_no_pty
LBB0_24:
	movl	%eax, %ebx
	movq	_original_command@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_loginmsg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sshbuf_reset
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	movl	%ebx, %eax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	cmpq	$0, 40(%r14)
	je	LBB0_14
## %bb.13:
	movq	(%r14), %rcx
	leaq	L_.str.3(%rip), %rdx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_17
LBB0_14:
	testq	%r12, %r12
	je	LBB0_15
## %bb.16:
	leaq	L_.str.5(%rip), %rdx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%eax, %eax
	callq	_snprintf
LBB0_17:
	movq	%r12, %rbx
	jmp	LBB0_18
LBB0_15:
	leaq	L_.str.4(%rip), %rdx
	xorl	%ebx, %ebx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_18
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_options,8,3                    ## @options
	.comm	_original_command,8,3           ## @original_command
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(config)"

	.comm	_auth_opts,8,3                  ## @auth_opts
L_.str.1:                               ## @.str.1
	.asciz	"(key-option)"

	.comm	_SUBSYSTEM_INT_SFTP,8,3         ## @SUBSYSTEM_INT_SFTP
	.comm	_SUBSYSTEM_INT_SFTP_ERROR,8,3   ## @SUBSYSTEM_INT_SFTP_ERROR
	.comm	_SUBSYSTEM_EXT,8,3              ## @SUBSYSTEM_EXT
L_.str.2:                               ## @.str.2
	.asciz	"forced-command %s '%.900s'"

L_.str.3:                               ## @.str.3
	.asciz	"subsystem '%.900s'"

L_.str.4:                               ## @.str.4
	.asciz	"shell"

L_.str.5:                               ## @.str.5
	.asciz	"command"

L_.str.6:                               ## @.str.6
	.asciz	"/dev/"

L_.str.7:                               ## @.str.7
	.asciz	"Starting session: %s%s%s for %s from %.200s port %d id %d"

L_.str.8:                               ## @.str.8
	.space	1

L_.str.9:                               ## @.str.9
	.asciz	" on "

	.comm	_loginmsg,4,2                   ## @loginmsg
	.comm	__PATH_BSHELL,8,3               ## @_PATH_BSHELL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_exec                        ; -- Begin function do_exec
	.p2align	2
_do_exec:                               ; @do_exec
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1056
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _options@GOTPAGE
Lloh4:
	ldr	x8, [x8, _options@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x26, _original_command@GOTPAGE
Lloh7:
	ldr	x26, [x26, _original_command@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	str	x21, [x26]
Lloh8:
	adrp	x22, l_.str@PAGE
Lloh9:
	add	x22, x22, l_.str@PAGEOFF
	mov	x21, x8
	b	LBB0_4
LBB0_2:
Lloh10:
	adrp	x8, _auth_opts@GOTPAGE
Lloh11:
	ldr	x8, [x8, _auth_opts@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x9, [x8]
	cbz	x9, LBB0_18
; %bb.3:
	str	x21, [x26]
	ldr	x21, [x8]
Lloh13:
	adrp	x22, l_.str.1@PAGE
Lloh14:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x21
	bl	_IS_INTERNAL_SFTP
	ldr	x8, [x19, #40]
	cbz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x9, _SUBSYSTEM_INT_SFTP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SUBSYSTEM_INT_SFTP@GOTPAGEOFF]
Lloh17:
	adrp	x10, _SUBSYSTEM_INT_SFTP_ERROR@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SUBSYSTEM_INT_SFTP_ERROR@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	b	LBB0_8
LBB0_6:
	cbz	x8, LBB0_9
; %bb.7:
Lloh19:
	adrp	x8, _SUBSYSTEM_EXT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SUBSYSTEM_EXT@GOTPAGEOFF]
LBB0_8:
	ldr	x8, [x8]
	str	x8, [x19, #40]
LBB0_9:
	stp	x22, x21, [sp]
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_10:
	add	x0, sp, #24
	mov	w1, #1024
	bl	_snprintf
	ldr	w8, [x19, #8]
	cmn	w8, #1
	b.eq	LBB0_12
; %bb.11:
	ldr	x22, [x19, #16]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w23, #5
	mov	x0, x22
	mov	w2, #5
	bl	_strncmp
	cmp	x0, #0
	csel	x8, x23, xzr, eq
	add	x8, x22, x8
	b	LBB0_13
LBB0_12:
	mov	x8, #0
LBB0_13:
Lloh25:
	adrp	x9, l_.str.9@PAGE
Lloh26:
	add	x9, x9, l_.str.9@PAGEOFF
Lloh27:
	adrp	x10, l_.str.8@PAGE
Lloh28:
	add	x10, x10, l_.str.8@PAGEOFF
	cmp	x8, #0
	csel	x22, x10, x9, eq
	csel	x23, x10, x8, eq
	ldr	x8, [x19, #24]
	ldr	w24, [x8, #8]
	mov	x0, x20
	bl	_ssh_remote_ipaddr
	mov	x25, x0
	mov	x0, x20
	bl	_ssh_remote_port
	mov	x6, x0
	ldr	w7, [x19, #32]
Lloh29:
	adrp	x0, l_.str.7@PAGE
Lloh30:
	add	x0, x0, l_.str.7@PAGEOFF
	add	x1, sp, #24
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	mov	x5, x25
	bl	_verbose
	ldr	w8, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	cmn	w8, #1
	b.eq	LBB0_15
; %bb.14:
	bl	_do_exec_pty
	b	LBB0_16
LBB0_15:
	bl	_do_exec_no_pty
LBB0_16:
	mov	x19, x0
	str	xzr, [x26]
Lloh31:
	adrp	x8, _loginmsg@GOTPAGE
Lloh32:
	ldr	x8, [x8, _loginmsg@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_sshbuf_reset
	ldur	x8, [x29, #-88]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.17:
	mov	x0, x19
	add	sp, sp, #1056
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_20
; %bb.19:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh37:
	adrp	x2, l_.str.3@PAGE
Lloh38:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_20:
	cbz	x21, LBB0_22
; %bb.21:
Lloh39:
	adrp	x2, l_.str.5@PAGE
Lloh40:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_22:
Lloh41:
	adrp	x2, l_.str.4@PAGE
Lloh42:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_options,8,3                    ; @options
	.comm	_original_command,8,3           ; @original_command
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(config)"

	.comm	_auth_opts,8,3                  ; @auth_opts
l_.str.1:                               ; @.str.1
	.asciz	"(key-option)"

	.comm	_SUBSYSTEM_INT_SFTP,8,3         ; @SUBSYSTEM_INT_SFTP
	.comm	_SUBSYSTEM_INT_SFTP_ERROR,8,3   ; @SUBSYSTEM_INT_SFTP_ERROR
	.comm	_SUBSYSTEM_EXT,8,3              ; @SUBSYSTEM_EXT
l_.str.2:                               ; @.str.2
	.asciz	"forced-command %s '%.900s'"

l_.str.3:                               ; @.str.3
	.asciz	"subsystem '%.900s'"

l_.str.4:                               ; @.str.4
	.asciz	"shell"

l_.str.5:                               ; @.str.5
	.asciz	"command"

l_.str.6:                               ; @.str.6
	.asciz	"/dev/"

l_.str.7:                               ; @.str.7
	.asciz	"Starting session: %s%s%s for %s from %.200s port %d id %d"

l_.str.8:                               ; @.str.8
	.space	1

l_.str.9:                               ; @.str.9
	.asciz	" on "

	.comm	_loginmsg,4,2                   ; @loginmsg
	.comm	__PATH_BSHELL,8,3               ; @_PATH_BSHELL
.subsections_via_symbols
