	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kexgex_client                  ## -- Begin function kexgex_client
	.p2align	4, 0x90
_kexgex_client:                         ## @kexgex_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), %edi
	shll	$3, %edi
	callq	_dh_estimate
	movq	_DH_GRP_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movq	_DH_GRP_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movl	%eax, 12(%rbx)
	movq	_datafellows@GOTPCREL(%rip), %rcx
	movq	_SSH_BUG_DHGEX_LARGE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	%eax, %edi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_MINIMUM
	movl	%eax, 12(%rbx)
LBB0_2:
	movq	_SSH2_MSG_KEX_DH_GEX_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sshpkt_start
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_sshpkt_put_u32
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_sshpkt_put_u32
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_sshpkt_put_u32
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_sshpkt_send
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	12(%rbx), %edx
	movl	4(%rbx), %esi
	movl	8(%rbx), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_debug
	movq	_SSH2_MSG_KEX_DH_GEX_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_input_kex_dh_gex_group@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	callq	_ssh_dispatch_set
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DH_GRP_MIN,4,2                 ## @DH_GRP_MIN
	.comm	_DH_GRP_MAX,4,2                 ## @DH_GRP_MAX
	.comm	_datafellows,4,2                ## @datafellows
	.comm	_SSH_BUG_DHGEX_LARGE,4,2        ## @SSH_BUG_DHGEX_LARGE
	.comm	_SSH2_MSG_KEX_DH_GEX_REQUEST,4,2 ## @SSH2_MSG_KEX_DH_GEX_REQUEST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSH2_MSG_KEX_DH_GEX_REQUEST(%u<%u<%u) sent"

	.comm	_SSH2_MSG_KEX_DH_GEX_GROUP,4,2  ## @SSH2_MSG_KEX_DH_GEX_GROUP
	.comm	_input_kex_dh_gex_group,4,2     ## @input_kex_dh_gex_group
	.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_client                  ; -- Begin function kexgex_client
	.p2align	2
_kexgex_client:                         ; @kexgex_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]
	ldr	w8, [x20]
	lsl	w0, w8, #3
	bl	_dh_estimate
Lloh0:
	adrp	x8, _DH_GRP_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DH_GRP_MIN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DH_GRP_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DH_GRP_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #4]
Lloh6:
	adrp	x8, _datafellows@GOTPAGE
Lloh7:
	ldr	x8, [x8, _datafellows@GOTPAGEOFF]
	str	w0, [x20, #12]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SSH_BUG_DHGEX_LARGE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SSH_BUG_DHGEX_LARGE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w1, #4096
	bl	_MINIMUM
	str	w0, [x20, #12]
LBB0_2:
Lloh12:
	adrp	x8, _SSH2_MSG_KEX_DH_GEX_REQUEST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSH2_MSG_KEX_DH_GEX_REQUEST@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sshpkt_start
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_sshpkt_put_u32
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	w1, [x20, #12]
	mov	x0, x19
	bl	_sshpkt_put_u32
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_sshpkt_put_u32
	cbnz	w0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_sshpkt_send
	cbnz	w0, LBB0_8
; %bb.7:
	ldp	w3, w2, [x20, #8]
	ldr	w1, [x20, #4]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
Lloh17:
	adrp	x8, _SSH2_MSG_KEX_DH_GEX_GROUP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SSH2_MSG_KEX_DH_GEX_GROUP@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, _input_kex_dh_gex_group@GOTPAGE
Lloh21:
	ldr	x2, [x2, _input_kex_dh_gex_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_ssh_dispatch_set
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DH_GRP_MIN,4,2                 ; @DH_GRP_MIN
	.comm	_DH_GRP_MAX,4,2                 ; @DH_GRP_MAX
	.comm	_datafellows,4,2                ; @datafellows
	.comm	_SSH_BUG_DHGEX_LARGE,4,2        ; @SSH_BUG_DHGEX_LARGE
	.comm	_SSH2_MSG_KEX_DH_GEX_REQUEST,4,2 ; @SSH2_MSG_KEX_DH_GEX_REQUEST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSH2_MSG_KEX_DH_GEX_REQUEST(%u<%u<%u) sent"

	.comm	_SSH2_MSG_KEX_DH_GEX_GROUP,4,2  ; @SSH2_MSG_KEX_DH_GEX_GROUP
	.comm	_input_kex_dh_gex_group,4,2     ; @input_kex_dh_gex_group
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
