	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kexc25519_client               ## -- Begin function kexc25519_client
	.p2align	4, 0x90
_kexc25519_client:                      ## @kexc25519_client
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_kexc25519_keygen
	movq	_SSH2_MSG_KEX_ECDH_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sshpkt_start
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_sshpkt_put_string
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_sshpkt_send
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_debug
	movq	_SSH2_MSG_KEX_ECDH_REPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_input_kex_c25519_reply@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	callq	_ssh_dispatch_set
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH2_MSG_KEX_ECDH_INIT,4,2     ## @SSH2_MSG_KEX_ECDH_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expecting SSH2_MSG_KEX_ECDH_REPLY"

	.comm	_SSH2_MSG_KEX_ECDH_REPLY,4,2    ## @SSH2_MSG_KEX_ECDH_REPLY
	.comm	_input_kex_c25519_reply,4,2     ## @input_kex_c25519_reply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kexc25519_client               ; -- Begin function kexc25519_client
	.p2align	2
_kexc25519_client:                      ; @kexc25519_client
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
	ldp	w1, w0, [x20]
	bl	_kexc25519_keygen
Lloh0:
	adrp	x8, _SSH2_MSG_KEX_ECDH_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH2_MSG_KEX_ECDH_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sshpkt_start
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #4
	bl	_sshpkt_put_string
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_sshpkt_send
	cbnz	w0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
Lloh5:
	adrp	x8, _SSH2_MSG_KEX_ECDH_REPLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSH2_MSG_KEX_ECDH_REPLY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, _input_kex_c25519_reply@GOTPAGE
Lloh9:
	ldr	x2, [x2, _input_kex_c25519_reply@GOTPAGEOFF]
	mov	x0, x19
	bl	_ssh_dispatch_set
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH2_MSG_KEX_ECDH_INIT,4,2     ; @SSH2_MSG_KEX_ECDH_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expecting SSH2_MSG_KEX_ECDH_REPLY"

	.comm	_SSH2_MSG_KEX_ECDH_REPLY,4,2    ; @SSH2_MSG_KEX_ECDH_REPLY
	.comm	_input_kex_c25519_reply,4,2     ; @input_kex_c25519_reply
.subsections_via_symbols
