	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function session_x11_req
_session_x11_req:                       ## @session_x11_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	cmpq	$0, 8(%rsi)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, (%r15)
	je	LBB0_3
LBB0_2:
	movl	24(%r15), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_error
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_packet_get_char
	movl	%eax, 20(%r15)
	xorl	%edi, %edi
	callq	_packet_get_string
	movq	%rax, 8(%r15)
	xorl	%edi, %edi
	callq	_packet_get_string
	movq	%rax, (%r15)
	xorl	%eax, %eax
	callq	_packet_get_int
	movl	%eax, 16(%r15)
	xorl	%eax, %eax
	callq	_packet_check_eom
	movq	8(%r15), %rdi
	callq	_xauth_valid_string
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rdi
	callq	_xauth_valid_string
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_session_setup_x11fwd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_7:
	movq	8(%r15), %rdi
	callq	_free
	movq	(%r15), %rdi
	callq	_free
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"session_x11_req: session %d: x11 forwarding already active"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid X11 forwarding data"

	.no_dead_strip	_session_x11_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function session_x11_req
_session_x11_req:                       ; @session_x11_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x1, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
LBB0_2:
	ldr	w8, [x19, #24]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	mov	x20, x0
	bl	_packet_get_char
	str	w0, [x19, #20]
	mov	x0, #0
	bl	_packet_get_string
	str	x0, [x19, #8]
	mov	x0, #0
	bl	_packet_get_string
	str	x0, [x19]
	bl	_packet_get_int
	str	w0, [x19, #16]
	bl	_packet_check_eom
	ldr	x0, [x19, #8]
	bl	_xauth_valid_string
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x0, [x19]
	bl	_xauth_valid_string
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_session_setup_x11fwd
	cbnz	w0, LBB0_3
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_8:
	ldr	x0, [x19, #8]
	bl	_free
	ldr	x0, [x19]
	bl	_free
	mov	w0, #0
	stp	xzr, xzr, [x19]
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"session_x11_req: session %d: x11 forwarding already active"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid X11 forwarding data"

	.no_dead_strip	_session_x11_req
.subsections_via_symbols
