	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kex_choose_conf
_kex_choose_conf:                       ## @kex_choose_conf
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	movq	$0, -64(%rbp)
	movq	$0, -48(%rbp)
	cmpq	$0, 32(%r15)
	leaq	L_.str.2(%rip), %rbx
	leaq	L_.str.1(%rip), %r14
	movq	%r14, %rsi
	cmoveq	%rbx, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_debug2
	movl	48(%r15), %edi
	leaq	-64(%rbp), %rdx
	xorl	%esi, %esi
	callq	_kex_buf2prop
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_28
## %bb.1:
	cmpq	$0, 32(%r15)
	cmoveq	%r14, %rbx
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_debug2
	movl	44(%r15), %edi
	leaq	-84(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_kex_buf2prop
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_28
## %bb.2:
	cmpq	$0, 32(%r15)
	movq	-64(%rbp), %r14
	movq	-48(%rbp), %rax
	movq	%rax, %rbx
	cmoveq	%r14, %rbx
	cmoveq	%rax, %r14
	je	LBB0_4
## %bb.3:
	movq	_PROPOSAL_KEX_ALGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%edx, %edx
	callq	_match_list
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, 40(%r15)
	movq	%rax, %rdi
	callq	_free
LBB0_4:
	movq	_PROPOSAL_KEX_ALGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rsi
	movq	(%r14,%rax,8), %rdx
	movq	%r15, %rdi
	callq	_choose_kex
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r12d
	movq	-48(%rbp), %rax
	movq	_PROPOSAL_KEX_ALGS@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_7:
	movq	_PROPOSAL_SERVER_HOST_KEY_ALGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rsi
	movq	(%r14,%rax,8), %rdx
	movq	%r15, %rdi
	callq	_choose_hostkeyalg
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	movl	%eax, %r12d
	movq	-48(%rbp), %rax
	movq	_PROPOSAL_SERVER_HOST_KEY_ALGS@GOTPCREL(%rip), %rcx
LBB0_6:
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, (%r15)
	movq	-48(%rbp), %rax
	movq	$0, (%rax,%rcx,8)
LBB0_28:
	movq	-64(%rbp), %rdi
	callq	_kex_prop_free
	movq	-48(%rbp), %rdi
	callq	_kex_prop_free
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	_MODE_MAX@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.17:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_36:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %edx
	movl	(%r13), %r8d
	leaq	L_.str.5(%rip), %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	callq	_debug
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	incq	%rbx
	movq	(%r14), %rax
	cmpq	%rax, %rbx
	jae	LBB0_11
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	$40, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, %r13
	movq	%rax, %rcx
	movq	24(%r15), %rax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, (%rax,%rbx,8)
	movq	32(%r15), %rdx
	testq	%rdx, %rdx
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_MODE_OUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	_PROPOSAL_MAC_ALGS_STOC@GOTPCREL(%rip), %rax
	leaq	L_.str.7(%rip), %rdi
	movq	_PROPOSAL_ENC_ALGS_STOC@GOTPCREL(%rip), %rcx
	movq	_PROPOSAL_COMP_ALGS_STOC@GOTPCREL(%rip), %rsi
	testq	%rdx, %rdx
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_PROPOSAL_MAC_ALGS_STOC@GOTPCREL(%rip), %rax
	leaq	L_.str.7(%rip), %rdi
	movq	_PROPOSAL_ENC_ALGS_STOC@GOTPCREL(%rip), %rcx
	movq	_PROPOSAL_COMP_ALGS_STOC@GOTPCREL(%rip), %rsi
	movq	_MODE_IN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rbx
	jne	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	_PROPOSAL_MAC_ALGS_CTOS@GOTPCREL(%rip), %rax
	leaq	L_.str.6(%rip), %rdi
	movq	_PROPOSAL_ENC_ALGS_CTOS@GOTPCREL(%rip), %rcx
	movq	_PROPOSAL_COMP_ALGS_CTOS@GOTPCREL(%rip), %rsi
LBB0_25:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movslq	(%rcx), %r14
	movslq	(%rsi), %rbx
	movslq	(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	16(%r13), %rdi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rsi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rdx
	callq	_choose_enc
	testl	%eax, %eax
	jne	LBB0_26
## %bb.29:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	callq	_cipher_authlen
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	movq	_MODE_MAX@GOTPCREL(%rip), %r14
	jne	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rcx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_choose_mac
	testl	%eax, %eax
	jne	LBB0_31
LBB0_32:                                ##   in Loop: Header=BB0_18 Depth=1
	addq	$36, %r13
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rsi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdx
	movq	%r13, %rdi
	callq	_choose_comp
	testl	%eax, %eax
	jne	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_18 Depth=1
	leaq	L_.str.8(%rip), %rcx
	cmpq	$0, -112(%rbp)                  ## 8-byte Folded Reload
	jne	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	jmp	LBB0_36
LBB0_19:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_28
LBB0_26:
	movq	-48(%rbp), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rcx, (%r15)
	movq	-48(%rbp), %rcx
	movq	$0, (%rcx,%r14,8)
	jmp	LBB0_27
LBB0_33:
	movq	-48(%rbp), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	%rcx, (%r15)
	movq	-48(%rbp), %rcx
	movq	$0, (%rcx,%rbx,8)
	jmp	LBB0_27
LBB0_11:
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %r13
	movl	28(%r13), %esi
	movq	%r14, %rdi
	callq	_MAXIMUM
	movl	20(%r13), %esi
	movq	%rax, %rdi
	callq	_MAXIMUM
	movl	16(%r13), %esi
	movq	%rax, %rdi
	callq	_MAXIMUM
	movl	8(%r13), %esi
	movq	%rax, %rdi
	callq	_MAXIMUM
	movq	%rax, %r14
	movl	24(%r13), %edi
	callq	_cipher_seclen
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_MAXIMUM
	movl	20(%r13), %esi
	movq	%rax, %rdi
	callq	_MAXIMUM
	movl	16(%r13), %esi
	movq	%rax, %rdi
	callq	_MAXIMUM
	movl	8(%r13), %esi
	movq	%rax, %rdi
	callq	_MAXIMUM
	movq	_MODE_MAX@GOTPCREL(%rip), %rcx
	incq	%rbx
	cmpq	(%rcx), %rbx
	jb	LBB0_13
	jmp	LBB0_14
LBB0_9:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
LBB0_14:
	movq	%r14, 8(%r15)
	movq	%rax, 16(%r15)
	cmpl	$0, -84(%rbp)
	je	LBB0_28
## %bb.15:
	movq	-64(%rbp), %rdi
	movq	-48(%rbp), %rsi
	callq	_proposals_match
	testl	%eax, %eax
	jne	LBB0_28
## %bb.16:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_28
LBB0_31:
	movq	-48(%rbp), %rcx
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	%rcx, (%r15)
	movq	-48(%rbp), %rcx
	movq	$0, (%rcx,%rdx,8)
LBB0_27:
	movl	%eax, %r12d
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"local %s KEXINIT proposal"

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

L_.str.2:                               ## @.str.2
	.asciz	"client"

L_.str.3:                               ## @.str.3
	.asciz	"peer %s KEXINIT proposal"

L_.str.4:                               ## @.str.4
	.asciz	"ext-info-c"

	.comm	_PROPOSAL_KEX_ALGS,8,3          ## @PROPOSAL_KEX_ALGS
	.comm	_PROPOSAL_SERVER_HOST_KEY_ALGS,8,3 ## @PROPOSAL_SERVER_HOST_KEY_ALGS
	.comm	_MODE_MAX,8,3                   ## @MODE_MAX
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_MODE_OUT,8,3                   ## @MODE_OUT
	.comm	_MODE_IN,8,3                    ## @MODE_IN
	.comm	_PROPOSAL_ENC_ALGS_CTOS,4,2     ## @PROPOSAL_ENC_ALGS_CTOS
	.comm	_PROPOSAL_ENC_ALGS_STOC,4,2     ## @PROPOSAL_ENC_ALGS_STOC
	.comm	_PROPOSAL_MAC_ALGS_CTOS,4,2     ## @PROPOSAL_MAC_ALGS_CTOS
	.comm	_PROPOSAL_MAC_ALGS_STOC,4,2     ## @PROPOSAL_MAC_ALGS_STOC
	.comm	_PROPOSAL_COMP_ALGS_CTOS,4,2    ## @PROPOSAL_COMP_ALGS_CTOS
	.comm	_PROPOSAL_COMP_ALGS_STOC,4,2    ## @PROPOSAL_COMP_ALGS_STOC
L_.str.5:                               ## @.str.5
	.asciz	"kex: %s cipher: %s MAC: %s compression: %s"

L_.str.6:                               ## @.str.6
	.asciz	"client->server"

L_.str.7:                               ## @.str.7
	.asciz	"server->client"

L_.str.8:                               ## @.str.8
	.asciz	"<implicit>"

	.no_dead_strip	_kex_choose_conf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kex_choose_conf
_kex_choose_conf:                       ; @kex_choose_conf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x0
	ldr	x19, [x0, #8]
	stp	xzr, xzr, [sp, #32]
	ldr	x8, [x19, #32]
Lloh0:
	adrp	x21, l_.str.1@PAGE
Lloh1:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh2:
	adrp	x22, l_.str.2@PAGE
Lloh3:
	add	x22, x22, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x1, x22, x21, eq
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug2
	ldr	w0, [x19, #48]
	add	x2, sp, #40
	mov	x1, #0
	bl	_kex_buf2prop
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	csel	x1, x21, x22, eq
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_debug2
	ldr	w0, [x19, #44]
	add	x1, sp, #28
	add	x2, sp, #32
	bl	_kex_buf2prop
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x9, [x19, #32]
	ldp	x8, x10, [sp, #32]
	cmp	x9, #0
	csel	x24, x10, x8, eq
	csel	x21, x8, x10, eq
Lloh8:
	adrp	x22, _PROPOSAL_KEX_ALGS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _PROPOSAL_KEX_ALGS@GOTPAGEOFF]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	x9, [x22]
	ldr	x1, [x8, x9, lsl #3]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x2, #0
	bl	_match_list
	cmp	x0, #0
	cset	w8, ne
	str	w8, [x19, #40]
	bl	_free
LBB0_4:
	ldr	x8, [x22]
	lsl	x8, x8, #3
	ldr	x1, [x24, x8]
	ldr	x2, [x21, x8]
	mov	x0, x19
	bl	_choose_kex
	cbnz	w0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x22, _PROPOSAL_SERVER_HOST_KEY_ALGS@GOTPAGE
Lloh13:
	ldr	x22, [x22, _PROPOSAL_SERVER_HOST_KEY_ALGS@GOTPAGEOFF]
	ldr	x8, [x22]
	lsl	x8, x8, #3
	ldr	x1, [x24, x8]
	ldr	x2, [x21, x8]
	mov	x0, x19
	bl	_choose_hostkeyalg
	cbz	w0, LBB0_8
LBB0_6:
	mov	x23, x0
	ldr	x8, [sp, #32]
	ldr	x9, [x22]
	lsl	x9, x9, #3
	ldr	x8, [x8, x9]
	str	x8, [x19]
	ldr	x8, [sp, #32]
	str	xzr, [x8, x9]
LBB0_7:
	ldr	x0, [sp, #40]
	bl	_kex_prop_free
	ldr	x0, [sp, #32]
	bl	_kex_prop_free
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_8:
Lloh14:
	adrp	x28, _MODE_MAX@GOTPAGE
Lloh15:
	ldr	x28, [x28, _MODE_MAX@GOTPAGEOFF]
	ldr	x8, [x28]
	cbz	x8, LBB0_29
; %bb.9:
	stp	x21, x24, [sp, #8]              ; 16-byte Folded Spill
	mov	x27, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w2, [x22, #32]
	ldr	w4, [x26]
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x21
	bl	_debug
	add	x27, x27, #1
	ldr	x8, [x28]
	cmp	x27, x8
	b.hs	LBB0_26
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	w1, #40
	bl	_calloc
	cbz	x0, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x22, x0
	ldr	x8, [x19, #24]
	str	x0, [x8, x27, lsl #3]
	ldr	x8, [x19, #32]
Lloh18:
	adrp	x9, _MODE_OUT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MODE_OUT@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x27, x9, #0, eq
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cbz	x8, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh21:
	adrp	x8, _PROPOSAL_MAC_ALGS_STOC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PROPOSAL_MAC_ALGS_STOC@GOTPAGEOFF]
Lloh23:
	adrp	x9, _MODE_IN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MODE_IN@GOTPAGEOFF]
Lloh25:
	ldr	x11, [x9]
Lloh26:
	adrp	x21, l_.str.7@PAGE
Lloh27:
	add	x21, x21, l_.str.7@PAGEOFF
Lloh28:
	adrp	x9, _PROPOSAL_ENC_ALGS_STOC@GOTPAGE
Lloh29:
	ldr	x9, [x9, _PROPOSAL_ENC_ALGS_STOC@GOTPAGEOFF]
Lloh30:
	adrp	x10, _PROPOSAL_COMP_ALGS_STOC@GOTPAGE
Lloh31:
	ldr	x10, [x10, _PROPOSAL_COMP_ALGS_STOC@GOTPAGEOFF]
	cmp	x27, x11
	b.ne	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh32:
	adrp	x8, _PROPOSAL_MAC_ALGS_CTOS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PROPOSAL_MAC_ALGS_CTOS@GOTPAGEOFF]
Lloh34:
	adrp	x21, l_.str.6@PAGE
Lloh35:
	add	x21, x21, l_.str.6@PAGEOFF
Lloh36:
	adrp	x9, _PROPOSAL_ENC_ALGS_CTOS@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PROPOSAL_ENC_ALGS_CTOS@GOTPAGEOFF]
Lloh38:
	adrp	x10, _PROPOSAL_COMP_ALGS_CTOS@GOTPAGE
Lloh39:
	ldr	x10, [x10, _PROPOSAL_COMP_ALGS_CTOS@GOTPAGEOFF]
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	ldrsw	x9, [x9]
	ldrsw	x24, [x10]
	ldrsw	x26, [x8]
	add	x0, x22, #16
	lsl	x25, x9, #3
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x1, [x8, x25]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x2, [x8, x25]
	bl	_choose_enc
	cbnz	w0, LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x22, #24]
	bl	_cipher_authlen
	mov	x25, x0
	cbnz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	lsl	x26, x26, #3
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x2, [x8, x26]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x3, [x8, x26]
	mov	x0, x20
	mov	x1, x22
	bl	_choose_mac
	cbnz	w0, LBB0_34
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x26, x22, #36
	lsl	x24, x24, #3
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x1, [x8, x24]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x2, [x8, x24]
	mov	x0, x26
	bl	_choose_comp
	cbnz	w0, LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh40:
	adrp	x3, l_.str.8@PAGE
Lloh41:
	add	x3, x3, l_.str.8@PAGEOFF
	cbnz	x25, LBB0_10
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x3, [x22]
	b	LBB0_10
LBB0_22:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh42:
	adrp	x8, _PROPOSAL_MAC_ALGS_STOC@GOTPAGE
Lloh43:
	ldr	x8, [x8, _PROPOSAL_MAC_ALGS_STOC@GOTPAGEOFF]
Lloh44:
	adrp	x21, l_.str.7@PAGE
Lloh45:
	add	x21, x21, l_.str.7@PAGEOFF
Lloh46:
	adrp	x9, _PROPOSAL_ENC_ALGS_STOC@GOTPAGE
Lloh47:
	ldr	x9, [x9, _PROPOSAL_ENC_ALGS_STOC@GOTPAGEOFF]
Lloh48:
	adrp	x10, _PROPOSAL_COMP_ALGS_STOC@GOTPAGE
Lloh49:
	ldr	x10, [x10, _PROPOSAL_COMP_ALGS_STOC@GOTPAGEOFF]
	b	LBB0_16
LBB0_23:
Lloh50:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh52:
	ldr	w23, [x8]
	b	LBB0_7
LBB0_24:
	mov	x23, x0
	ldr	x8, [sp, #32]
	ldr	x8, [x8, x25]
	str	x8, [x19]
	ldr	x8, [sp, #32]
	str	xzr, [x8, x25]
	b	LBB0_7
LBB0_25:
	mov	x23, x0
	ldr	x8, [sp, #32]
	ldr	x8, [x8, x24]
	str	x8, [x19]
	ldr	x8, [sp, #32]
	str	xzr, [x8, x24]
	b	LBB0_7
LBB0_26:
	cbz	x8, LBB0_29
; %bb.27:
	mov	x22, #0
	mov	x21, #0
	mov	x23, #0
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x24, [x8, x23, lsl #3]
	ldr	w1, [x24, #28]
	mov	x0, x21
	bl	_MAXIMUM
	ldr	w1, [x24, #20]
	bl	_MAXIMUM
	ldr	w1, [x24, #16]
	bl	_MAXIMUM
	ldr	w1, [x24, #8]
	bl	_MAXIMUM
	mov	x21, x0
	ldr	w0, [x24, #24]
	bl	_cipher_seclen
	mov	x1, x0
	mov	x0, x22
	bl	_MAXIMUM
	ldr	w1, [x24, #20]
	bl	_MAXIMUM
	ldr	w1, [x24, #16]
	bl	_MAXIMUM
	ldr	w1, [x24, #8]
	bl	_MAXIMUM
	mov	x22, x0
	add	x23, x23, #1
	ldr	x8, [x28]
	cmp	x23, x8
	b.lo	LBB0_28
	b	LBB0_30
LBB0_29:
	mov	x21, #0
	mov	x22, #0
LBB0_30:
	stp	x21, x22, [x19, #8]
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_33
; %bb.31:
	ldp	x1, x0, [sp, #32]
	bl	_proposals_match
	mov	w23, #0
	cbnz	w0, LBB0_7
; %bb.32:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_7
LBB0_33:
	mov	w23, #0
	b	LBB0_7
LBB0_34:
	mov	x23, x0
	ldr	x8, [sp, #32]
	ldr	x8, [x8, x26]
	str	x8, [x19]
	ldr	x8, [sp, #32]
	str	xzr, [x8, x26]
	b	LBB0_7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"local %s KEXINIT proposal"

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

l_.str.2:                               ; @.str.2
	.asciz	"client"

l_.str.3:                               ; @.str.3
	.asciz	"peer %s KEXINIT proposal"

l_.str.4:                               ; @.str.4
	.asciz	"ext-info-c"

	.comm	_PROPOSAL_KEX_ALGS,8,3          ; @PROPOSAL_KEX_ALGS
	.comm	_PROPOSAL_SERVER_HOST_KEY_ALGS,8,3 ; @PROPOSAL_SERVER_HOST_KEY_ALGS
	.comm	_MODE_MAX,8,3                   ; @MODE_MAX
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_MODE_OUT,8,3                   ; @MODE_OUT
	.comm	_MODE_IN,8,3                    ; @MODE_IN
	.comm	_PROPOSAL_ENC_ALGS_CTOS,4,2     ; @PROPOSAL_ENC_ALGS_CTOS
	.comm	_PROPOSAL_ENC_ALGS_STOC,4,2     ; @PROPOSAL_ENC_ALGS_STOC
	.comm	_PROPOSAL_MAC_ALGS_CTOS,4,2     ; @PROPOSAL_MAC_ALGS_CTOS
	.comm	_PROPOSAL_MAC_ALGS_STOC,4,2     ; @PROPOSAL_MAC_ALGS_STOC
	.comm	_PROPOSAL_COMP_ALGS_CTOS,4,2    ; @PROPOSAL_COMP_ALGS_CTOS
	.comm	_PROPOSAL_COMP_ALGS_STOC,4,2    ; @PROPOSAL_COMP_ALGS_STOC
l_.str.5:                               ; @.str.5
	.asciz	"kex: %s cipher: %s MAC: %s compression: %s"

l_.str.6:                               ; @.str.6
	.asciz	"client->server"

l_.str.7:                               ; @.str.7
	.asciz	"server->client"

l_.str.8:                               ; @.str.8
	.asciz	"<implicit>"

	.no_dead_strip	_kex_choose_conf
.subsections_via_symbols
