	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kexgex_hash                    ## -- Begin function kexgex_hash
	.p2align	4, 0x90
_kexgex_hash:                           ## @kexgex_hash
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	112(%rbp), %rax
	movq	(%rax), %r12
	movq	_SSH_DIGEST_SHA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ssh_digest_bytes
	cmpq	%rax, %r12
	jae	LBB0_2
## %bb.1:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_2:
	xorl	%eax, %eax
	callq	_sshbuf_new
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_sshbuf_put_cstring
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_sshbuf_put_cstring
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	leal	1(%r13), %esi
	movq	%r12, %rdi
	callq	_sshbuf_put_u32
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movq	_SSH2_MSG_KEXINIT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_sshbuf_put_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_sshbuf_put
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	16(%rbp), %r14
	leal	1(%r14), %esi
	movq	%r12, %rdi
	callq	_sshbuf_put_u32
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_sshbuf_put_u8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_sshbuf_put
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	32(%rbp), %rdx
	movq	24(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sshbuf_put_string
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_16
LBB0_12:
	movq	%r12, %rdi
	callq	_sshbuf_free
	jmp	LBB0_15
LBB0_13:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	40(%rbp), %esi
	cmpl	$-1, %esi
	je	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	callq	_sshbuf_put_u32
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
LBB0_18:
	movl	48(%rbp), %esi
	movq	%r12, %rdi
	callq	_sshbuf_put_u32
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.19:
	movl	56(%rbp), %esi
	cmpl	$-1, %esi
	je	LBB0_21
## %bb.20:
	movq	%r12, %rdi
	callq	_sshbuf_put_u32
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
LBB0_21:
	movq	64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sshbuf_put_bignum2
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.22:
	movq	72(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sshbuf_put_bignum2
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.23:
	movq	80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sshbuf_put_bignum2
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.24:
	movq	88(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sshbuf_put_bignum2
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.25:
	movq	96(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sshbuf_put_bignum2
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.26:
	movq	104(%rbp), %rdx
	movq	112(%rbp), %rax
	movq	(%rax), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	callq	_ssh_digest_buffer
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_sshbuf_free
	testq	%rbx, %rbx
	je	LBB0_28
## %bb.27:
	movq	_SSH_ERR_LIBCRYPTO_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_28:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ssh_digest_bytes
	movq	112(%rbp), %rcx
	movq	%rax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_DIGEST_SHA1,4,2            ## @SSH_DIGEST_SHA1
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ## @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_SSH2_MSG_KEXINIT,4,2           ## @SSH2_MSG_KEXINIT
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ## @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kexgex_hash                    ; -- Begin function kexgex_hash
	.p2align	2
_kexgex_hash:                           ; @kexgex_hash
	.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
	mov	x21, x7
	mov	x22, x6
	mov	x23, x5
	mov	x25, x4
	mov	x26, x3
	mov	x27, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x28, [x29, #88]
	ldr	x20, [x28]
Lloh0:
	adrp	x8, _SSH_DIGEST_SHA1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_DIGEST_SHA1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ssh_digest_bytes
	cmp	x20, x0
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
	b	LBB0_14
LBB0_2:
	bl	_sshbuf_new
	cbz	x0, LBB0_13
; %bb.3:
	mov	x20, x0
	mov	x1, x24
	bl	_sshbuf_put_cstring
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.4:
	mov	x0, x20
	mov	x1, x27
	bl	_sshbuf_put_cstring
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.5:
	add	w1, w25, #1
	mov	x0, x20
	bl	_sshbuf_put_u32
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.6:
Lloh5:
	adrp	x27, _SSH2_MSG_KEXINIT@GOTPAGE
Lloh6:
	ldr	x27, [x27, _SSH2_MSG_KEXINIT@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x20
	bl	_sshbuf_put_u8
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.7:
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	bl	_sshbuf_put
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.8:
	add	w1, w22, #1
	mov	x0, x20
	bl	_sshbuf_put_u32
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.9:
	ldr	w1, [x27]
	mov	x0, x20
	bl	_sshbuf_put_u8
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.10:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_sshbuf_put
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	x2, [x29, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_sshbuf_put_string
	mov	x24, x0
	cbz	w0, LBB0_16
LBB0_12:
	mov	x0, x20
	bl	_sshbuf_free
	b	LBB0_15
LBB0_13:
Lloh7:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
LBB0_14:
	ldr	w24, [x8]
LBB0_15:
	mov	x0, x24
	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_16:
	ldr	w1, [x29, #24]
	cmn	w1, #1
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x20
	bl	_sshbuf_put_u32
	mov	x24, x0
	cbnz	w0, LBB0_12
LBB0_18:
	ldr	w1, [x29, #28]
	mov	x0, x20
	bl	_sshbuf_put_u32
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.19:
	ldr	w1, [x29, #32]
	cmn	w1, #1
	b.eq	LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_sshbuf_put_u32
	mov	x24, x0
	cbnz	w0, LBB0_12
LBB0_21:
	ldr	x1, [x29, #40]
	mov	x0, x20
	bl	_sshbuf_put_bignum2
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.22:
	ldr	x1, [x29, #48]
	mov	x0, x20
	bl	_sshbuf_put_bignum2
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.23:
	ldr	x1, [x29, #56]
	mov	x0, x20
	bl	_sshbuf_put_bignum2
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.24:
	ldr	x1, [x29, #64]
	mov	x0, x20
	bl	_sshbuf_put_bignum2
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.25:
	ldr	x1, [x29, #72]
	mov	x0, x20
	bl	_sshbuf_put_bignum2
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.26:
	ldr	x2, [x29, #80]
	ldr	x3, [x28]
	mov	x0, x19
	mov	x1, x20
	bl	_ssh_digest_buffer
	mov	x21, x0
	mov	x0, x20
	bl	_sshbuf_free
	cbz	x21, LBB0_28
; %bb.27:
Lloh9:
	adrp	x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGEOFF]
	b	LBB0_14
LBB0_28:
	mov	x0, x19
	bl	_ssh_digest_bytes
	mov	w24, #0
	str	x0, [x28]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_DIGEST_SHA1,4,2            ; @SSH_DIGEST_SHA1
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_SSH2_MSG_KEXINIT,4,2           ; @SSH2_MSG_KEXINIT
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ; @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
