	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function choose_enc
_choose_enc:                            ## @choose_enc
	.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	%rsi, %rdi
	movq	%rdx, %rsi
	xorl	%edx, %edx
	callq	_match_list
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_cipher_by_name
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r14)
	movq	%rax, %rdi
	callq	_cipher_ivlen
	movl	%eax, 32(%r14)
	movq	$0, 24(%r14)
	movq	8(%r14), %rdi
	callq	_cipher_keylen
	movl	%eax, 20(%r14)
	movq	8(%r14), %rdi
	callq	_cipher_blocksize
	movl	%eax, 16(%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_SSH_ERR_NO_CIPHER_ALG_MATCH@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_free
	movq	_SSH_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_NO_CIPHER_ALG_MATCH,4,2 ## @SSH_ERR_NO_CIPHER_ALG_MATCH
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ## @SSH_ERR_INTERNAL_ERROR
	.no_dead_strip	_choose_enc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function choose_enc
_choose_enc:                            ; @choose_enc
	.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
	mov	x0, x1
	mov	x1, x2
	mov	x2, #0
	bl	_match_list
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_cipher_by_name
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.2:
	str	x20, [x19]
	stp	xzr, xzr, [x19, #40]
	bl	_cipher_ivlen
	str	w0, [x19, #32]
	str	xzr, [x19, #24]
	ldr	x0, [x19, #8]
	bl	_cipher_keylen
	str	w0, [x19, #20]
	ldr	x0, [x19, #8]
	bl	_cipher_blocksize
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #16]
	b	LBB0_6
LBB0_3:
Lloh0:
	adrp	x8, _SSH_ERR_NO_CIPHER_ALG_MATCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_ERR_NO_CIPHER_ALG_MATCH@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_free
Lloh2:
	adrp	x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_NO_CIPHER_ALG_MATCH,4,2 ; @SSH_ERR_NO_CIPHER_ALG_MATCH
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
	.no_dead_strip	_choose_enc
.subsections_via_symbols
