	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_kex
_run_kex:                               ## @run_kex
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_do_debug@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_do_send_and_receive
	testl	%eax, %eax
	jne	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_do_send_and_receive
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%r15)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_9
LBB0_10:
	movl	%eax, %ebx
	cmpq	$0, (%r15)
	je	LBB0_13
LBB0_12:
	movl	%ebx, %edi
	callq	_ssh_err
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_13:
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_ASSERT_INT_EQ
	movq	(%r13), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_ASSERT_INT_EQ
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ASSERT_INT_EQ                  ## TAILCALL
LBB0_3:
	xorl	%ebx, %ebx
	cmpq	$0, (%r15)
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_do_debug,8,3                   ## @do_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" S:"

L_.str.1:                               ## @.str.1
	.asciz	" C:"

L_.str.2:                               ## @.str.2
	.asciz	"done: %s\n"

	.no_dead_strip	_run_kex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_kex
_run_kex:                               ; @run_kex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _do_debug@GOTPAGE
Lloh1:
	ldr	x24, [x24, _do_debug@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_do_send_and_receive
	cbnz	w0, LBB0_9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	ldr	w8, [x8]
	cbnz	w8, LBB0_12
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_printf
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_do_send_and_receive
	cbnz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_printf
	b	LBB0_1
LBB0_9:
	mov	x23, x0
	ldr	x8, [x24]
	cbz	x8, LBB0_11
LBB0_10:
	mov	x0, x23
	bl	_ssh_err
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_11:
	mov	x0, x23
	mov	w1, #0
	bl	_ASSERT_INT_EQ
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	w1, #1
	bl	_ASSERT_INT_EQ
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	w1, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ASSERT_INT_EQ
LBB0_12:
	mov	w23, #0
	ldr	x8, [x24]
	cbnz	x8, LBB0_10
	b	LBB0_11
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_do_debug,8,3                   ; @do_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" S:"

l_.str.1:                               ; @.str.1
	.asciz	" C:"

l_.str.2:                               ; @.str.2
	.asciz	"done: %s\n"

	.no_dead_strip	_run_kex
.subsections_via_symbols
