	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_session_setup_x11fwd           ## -- Begin function session_setup_x11fwd
	.p2align	4, 0x90
_session_setup_x11fwd:                  ## @session_setup_x11fwd
	.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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NI_MAXHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_auth_opts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	_options@GOTPCREL(%rip), %rax
	cmpl	$0, 24(%rax)
	je	LBB0_9
## %bb.2:
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.3:
	leaq	-1104(%rbp), %rsi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.4:
	cmpq	$0, 32(%r15)
	je	LBB0_14
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
LBB0_8:
	callq	_packet_send_debug
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
LBB0_10:
	callq	_debug
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_25
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r13, -1080(%rbp)               ## 8-byte Spill
	movq	%rbx, -1096(%rbp)               ## 8-byte Spill
	movq	_options@GOTPCREL(%rip), %rax
	movl	8(%rax), %esi
	movq	(%rax), %rdx
	movl	40(%r15), %ecx
	leaq	8(%r15), %r13
	movq	%r12, %rdi
	movq	%r15, %r8
	movq	%r13, %r9
	callq	_x11_create_display_inet
	cmpl	$-1, %eax
	je	LBB0_22
## %bb.15:
	movq	%r15, -1088(%rbp)               ## 8-byte Spill
	movq	(%r13), %rax
	movl	(%rax), %esi
	cmpl	$-1, %esi
	je	LBB0_18
## %bb.16:
	movl	$4, %r15d
	movq	_session_close_single_x11@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_channel_register_cleanup
	movq	(%r13), %rax
	movl	(%rax,%r15), %esi
	addq	$4, %r15
	cmpl	$-1, %esi
	jne	LBB0_17
LBB0_18:
	movq	-1096(%rbp), %r12               ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_gethostname
	testq	%rax, %rax
	jns	LBB0_20
## %bb.19:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	callq	_fatal
LBB0_20:
	movq	_options@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-1088(%rbp), %rbx               ## 8-byte Reload
	movl	(%rbx), %r8d
	movl	16(%rbx), %r9d
	movq	-1080(%rbp), %r13               ## 8-byte Reload
	je	LBB0_23
## %bb.21:
	leaq	L_.str.6(%rip), %rdx
	leaq	-560(%rbp), %r15
	movq	%r15, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movl	%r8d, %ecx
	movl	%r9d, %r8d
	xorl	%eax, %eax
	callq	_snprintf
	movl	(%rbx), %ecx
	movl	16(%rbx), %r8d
	leaq	L_.str.7(%rip), %rdx
	leaq	-1072(%rbp), %r12
	movq	%r12, %rdi
	movl	$512, %esi                      ## imm = 0x200
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r15, %rdi
	callq	_xstrdup
	movq	%rax, 32(%rbx)
	movq	%r12, %rdi
	jmp	LBB0_24
LBB0_22:
	leaq	L_.str.4(%rip), %rdi
	callq	_debug
	xorl	%eax, %eax
	movq	-1080(%rbp), %r13               ## 8-byte Reload
	jmp	LBB0_12
LBB0_23:
	leaq	L_.str.8(%rip), %rdx
	leaq	-560(%rbp), %r15
	movq	%r15, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r15, %rdi
	callq	_xstrdup
	movq	%rax, 32(%rbx)
	movq	%r15, %rdi
LBB0_24:
	callq	_xstrdup
	movq	%rax, 24(%rbx)
	movl	$1, %eax
	jmp	LBB0_12
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NI_MAXHOST,4,2                 ## @NI_MAXHOST
	.comm	_auth_opts,8,3                  ## @auth_opts
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"X11 forwarding disabled by key options."

	.comm	_options,32,3                   ## @options
L_.str.1:                               ## @.str.1
	.asciz	"X11 forwarding disabled in server configuration file."

L_.str.2:                               ## @.str.2
	.asciz	"No xauth program; cannot forward X11."

L_.str.3:                               ## @.str.3
	.asciz	"X11 display already set."

L_.str.4:                               ## @.str.4
	.asciz	"x11_create_display_inet failed."

	.comm	_session_close_single_x11,4,2   ## @session_close_single_x11
L_.str.5:                               ## @.str.5
	.asciz	"gethostname: %.100s"

	.comm	_errno,4,2                      ## @errno
L_.str.6:                               ## @.str.6
	.asciz	"localhost:%u.%u"

L_.str.7:                               ## @.str.7
	.asciz	"unix:%u.%u"

L_.str.8:                               ## @.str.8
	.asciz	"%.400s:%u.%u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_session_setup_x11fwd           ; -- Begin function session_setup_x11fwd
	.p2align	2
_session_setup_x11fwd:                  ; @session_setup_x11fwd
	.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	x19, sp
	mov	x20, x1
	mov	x22, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _NI_MAXHOST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NI_MAXHOST@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x8, _auth_opts@GOTPAGE
Lloh9:
	ldr	x8, [x8, _auth_opts@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
Lloh11:
	adrp	x26, _options@GOTPAGE
Lloh12:
	ldr	x26, [x26, _options@GOTPAGEOFF]
	ldr	w8, [x26, #24]
	cbz	w8, LBB0_9
; %bb.2:
	ldr	x0, [x26, #16]
	cbz	x0, LBB0_7
; %bb.3:
	add	x1, x19, #8
	bl	_stat
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.4:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_14
; %bb.5:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_6:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	bl	_packet_send_debug
	b	LBB0_11
LBB0_9:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_debug
LBB0_11:
	mov	w0, #0
LBB0_12:
	mov	sp, x25
	ldur	x8, [x29, #-96]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.13:
	sub	sp, x29, #80
	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_14:
	ldr	w1, [x26, #8]
	ldr	x2, [x26]
	add	x24, x20, #8
	ldr	w3, [x20, #40]
	mov	x0, x22
	mov	x4, x20
	mov	x5, x24
	bl	_x11_create_display_inet
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.15:
	ldr	x8, [x24]
	ldr	w1, [x8]
	cmn	w1, #1
	b.eq	LBB0_18
; %bb.16:
	mov	w27, #4
Lloh24:
	adrp	x28, _session_close_single_x11@GOTPAGE
Lloh25:
	ldr	x28, [x28, _session_close_single_x11@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x28]
	mov	x0, x22
	mov	w3, #0
	bl	_channel_register_cleanup
	ldr	x8, [x24]
	ldr	w1, [x8, x27]
	add	x27, x27, #4
	cmn	w1, #1
	b.ne	LBB0_17
LBB0_18:
	mov	x0, x21
	mov	x1, x23
	bl	_gethostname
	tbz	x0, #63, LBB0_20
; %bb.19:
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh29:
	adrp	x0, l_.str.5@PAGE
Lloh30:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_fatal
LBB0_20:
	ldr	x10, [x26]
	ldr	w8, [x20]
	ldr	w9, [x20, #16]
	cbz	x10, LBB0_23
; %bb.21:
	stp	x8, x9, [sp, #-16]!
Lloh31:
	adrp	x2, l_.str.6@PAGE
Lloh32:
	add	x2, x2, l_.str.6@PAGEOFF
	add	x0, x19, #528
	mov	w1, #512
	bl	_snprintf
	add	sp, sp, #16
	ldr	w8, [x20]
	ldr	w9, [x20, #16]
	stp	x8, x9, [sp, #-16]!
Lloh33:
	adrp	x2, l_.str.7@PAGE
Lloh34:
	add	x2, x2, l_.str.7@PAGEOFF
	add	x0, x19, #16
	mov	w1, #512
	bl	_snprintf
	add	sp, sp, #16
	add	x0, x19, #528
	bl	_xstrdup
	str	x0, [x20, #32]
	add	x0, x19, #16
	b	LBB0_24
LBB0_22:
Lloh35:
	adrp	x0, l_.str.4@PAGE
Lloh36:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_23:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sub	sp, sp, #32
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x9, [sp, #8]
	str	x21, [sp]
Lloh37:
	adrp	x2, l_.str.8@PAGE
Lloh38:
	add	x2, x2, l_.str.8@PAGEOFF
	add	x0, x19, #528
	mov	w1, #512
	bl	_snprintf
	add	sp, sp, #32
	add	x0, x19, #528
	bl	_xstrdup
	str	x0, [x20, #32]
	add	x0, x19, #528
LBB0_24:
	bl	_xstrdup
	str	x0, [x20, #24]
	mov	w0, #1
	b	LBB0_12
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_NI_MAXHOST,4,2                 ; @NI_MAXHOST
	.comm	_auth_opts,8,3                  ; @auth_opts
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"X11 forwarding disabled by key options."

	.comm	_options,32,3                   ; @options
l_.str.1:                               ; @.str.1
	.asciz	"X11 forwarding disabled in server configuration file."

l_.str.2:                               ; @.str.2
	.asciz	"No xauth program; cannot forward X11."

l_.str.3:                               ; @.str.3
	.asciz	"X11 display already set."

l_.str.4:                               ; @.str.4
	.asciz	"x11_create_display_inet failed."

	.comm	_session_close_single_x11,4,2   ; @session_close_single_x11
l_.str.5:                               ; @.str.5
	.asciz	"gethostname: %.100s"

	.comm	_errno,4,2                      ; @errno
l_.str.6:                               ; @.str.6
	.asciz	"localhost:%u.%u"

l_.str.7:                               ; @.str.7
	.asciz	"unix:%u.%u"

l_.str.8:                               ; @.str.8
	.asciz	"%.400s:%u.%u"

.subsections_via_symbols
