	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssh_session2_setup
_ssh_session2_setup:                    ## @ssh_session2_setup
	.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	_tty_flag@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	testl	%edx, %edx
	je	LBB0_10
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	movq	_options@GOTPCREL(%rip), %r13
	movq	32(%r13), %rax
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.2:
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_debug
	movq	32(%r13), %rax
LBB0_4:
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	24(%r13), %edx
	movl	16(%r13), %r8d
	movl	20(%r13), %ecx
	subq	$8, %rsp
	leaq	-56(%rbp), %rax
	leaq	-64(%rbp), %r9
	movq	%r12, %rdi
	movq	%rbx, %rsi
	pushq	%rax
	callq	_client_x11_get_proto
	addq	$16, %rsp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	callq	_debug
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %r8
	movl	$1, %r15d
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movl	$1, %r9d
	callq	_x11_request_forwarding_with_spoofing
	movq	_CONFIRM_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_client_expect_confirm
LBB0_7:
	xorl	%eax, %eax
	callq	_check_agent_present
	cmpq	$0, 8(%r13)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	callq	_debug
	leaq	L_.str.5(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_channel_request_start
	xorl	%eax, %eax
	callq	_packet_send
LBB0_9:
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movl	%r15d, %edi
	callq	_packet_set_interactive
	movq	_tty_flag@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_subsystem_flag@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	L_.str.6(%rip), %rdi
	callq	_getenv
	movq	%rax, %r15
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fileno
                                        ## kill: def $eax killed $eax def $rax
	movq	_command@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_environ@GOTPCREL(%rip), %r10
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	pushq	(%r10)
	pushq	%rbx
	pushq	%rax
	callq	_client_session2_setup
	addq	$32, %rsp
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tty_flag,4,2                   ## @tty_flag
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DISPLAY"

	.comm	_options,40,3                   ## @options
L_.str.1:                               ## @.str.1
	.asciz	"X11 forwarding requested but DISPLAY not set"

L_.str.2:                               ## @.str.2
	.asciz	"Requesting X11 forwarding with authentication spoofing."

L_.str.3:                               ## @.str.3
	.asciz	"X11 forwarding"

	.comm	_CONFIRM_WARN,4,2               ## @CONFIRM_WARN
L_.str.4:                               ## @.str.4
	.asciz	"Requesting authentication agent forwarding."

L_.str.5:                               ## @.str.5
	.asciz	"auth-agent-req@openssh.com"

	.comm	_subsystem_flag,4,2             ## @subsystem_flag
L_.str.6:                               ## @.str.6
	.asciz	"TERM"

	.comm	_stdin,4,2                      ## @stdin
	.comm	_command,4,2                    ## @command
	.no_dead_strip	_ssh_session2_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssh_session2_setup
_ssh_session2_setup:                    ; @ssh_session2_setup
	.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
Lloh0:
	adrp	x23, _tty_flag@GOTPAGE
Lloh1:
	ldr	x23, [x23, _tty_flag@GOTPAGEOFF]
	ldr	w21, [x23]
	stp	xzr, xzr, [sp, #16]
	cbz	w2, LBB0_10
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x22, x0
Lloh4:
	adrp	x24, _options@GOTPAGE
Lloh5:
	ldr	x24, [x24, _options@GOTPAGEOFF]
	ldr	x8, [x24, #32]
	cbnz	x0, LBB0_4
; %bb.2:
	cbz	x8, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debug
	ldr	x8, [x24, #32]
LBB0_4:
	cbz	x8, LBB0_7
; %bb.5:
	ldp	w3, w2, [x24, #20]
	ldr	w4, [x24, #16]
	add	x5, sp, #24
	add	x6, sp, #16
	mov	x0, x20
	mov	x1, x22
	bl	_client_x11_get_proto
	cbnz	x0, LBB0_7
; %bb.6:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_debug
	ldp	x4, x3, [sp, #16]
	mov	w21, #1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	w5, #1
	bl	_x11_request_forwarding_with_spoofing
Lloh10:
	adrp	x8, _CONFIRM_WARN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CONFIRM_WARN@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_client_expect_confirm
LBB0_7:
	bl	_check_agent_present
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_9
; %bb.8:
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_debug
Lloh17:
	adrp	x2, l_.str.5@PAGE
Lloh18:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_channel_request_start
	bl	_packet_send
LBB0_9:
	ldp	w2, w1, [x24]
	mov	x0, x21
	bl	_packet_set_interactive
	ldr	w21, [x23]
Lloh19:
	adrp	x8, _subsystem_flag@GOTPAGE
Lloh20:
	ldr	x8, [x8, _subsystem_flag@GOTPAGEOFF]
Lloh21:
	ldr	w22, [x8]
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_getenv
	mov	x23, x0
Lloh24:
	adrp	x8, _stdin@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_fileno
	mov	x6, x0
Lloh27:
	adrp	x8, _command@GOTPAGE
Lloh28:
	ldr	x8, [x8, _command@GOTPAGEOFF]
Lloh29:
	ldr	w7, [x8]
Lloh30:
	adrp	x8, _environ@GOTPAGE
Lloh31:
	ldr	x8, [x8, _environ@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, #0
	bl	_client_session2_setup
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_tty_flag,4,2                   ; @tty_flag
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DISPLAY"

	.comm	_options,40,3                   ; @options
l_.str.1:                               ; @.str.1
	.asciz	"X11 forwarding requested but DISPLAY not set"

l_.str.2:                               ; @.str.2
	.asciz	"Requesting X11 forwarding with authentication spoofing."

l_.str.3:                               ; @.str.3
	.asciz	"X11 forwarding"

	.comm	_CONFIRM_WARN,4,2               ; @CONFIRM_WARN
l_.str.4:                               ; @.str.4
	.asciz	"Requesting authentication agent forwarding."

l_.str.5:                               ; @.str.5
	.asciz	"auth-agent-req@openssh.com"

	.comm	_subsystem_flag,4,2             ; @subsystem_flag
l_.str.6:                               ; @.str.6
	.asciz	"TERM"

	.comm	_stdin,4,2                      ; @stdin
	.comm	_command,4,2                    ; @command
	.no_dead_strip	_ssh_session2_setup
.subsections_via_symbols
