	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_pre_x11_open
_channel_pre_x11_open:                  ## @channel_pre_x11_open
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	12(%rsi), %esi
	callq	_x11_open_helper
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.2:
	movq	_SSH_CHANNEL_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_channel_pre_open               ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_logit
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_debug2
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_chan_read_failed
	movl	16(%rbx), %edi
	callq	_sshbuf_reset
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_chan_ibuf_empty
	movl	12(%rbx), %edi
	callq	_sshbuf_reset
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_chan_write_failed
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	leaq	L_.str.2(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debug2                         ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_CHANNEL_OPEN,4,2           ## @SSH_CHANNEL_OPEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"X11 connection rejected because of wrong authentication."

L_.str.1:                               ## @.str.1
	.asciz	"X11 rejected %d i%d/o%d"

L_.str.2:                               ## @.str.2
	.asciz	"X11 closed %d i%d/o%d"

	.no_dead_strip	_channel_pre_x11_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_pre_x11_open
_channel_pre_x11_open:                  ; @channel_pre_x11_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x1, #12]
	bl	_x11_open_helper
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _SSH_CHANNEL_OPEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_CHANNEL_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_channel_pre_open
LBB0_3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_logit
	ldp	w2, w1, [x19, #4]
	ldr	w3, [x19]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debug2
	mov	x0, x20
	mov	x1, x19
	bl	_chan_read_failed
	ldr	w0, [x19, #16]
	bl	_sshbuf_reset
	mov	x0, x20
	mov	x1, x19
	bl	_chan_ibuf_empty
	ldr	w0, [x19, #12]
	bl	_sshbuf_reset
	mov	x0, x20
	mov	x1, x19
	bl	_chan_write_failed
	ldp	w2, w1, [x19, #4]
	ldr	w3, [x19]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_debug2
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_CHANNEL_OPEN,4,2           ; @SSH_CHANNEL_OPEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"X11 connection rejected because of wrong authentication."

l_.str.1:                               ; @.str.1
	.asciz	"X11 rejected %d i%d/o%d"

l_.str.2:                               ; @.str.2
	.asciz	"X11 closed %d i%d/o%d"

	.no_dead_strip	_channel_pre_x11_open
.subsections_via_symbols
