	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kex_send_ext_info
_kex_send_ext_info:                     ## @kex_send_ext_info
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%edi, %edi
	movl	$1, %esi
	movl	$1, %edx
	movl	$44, %ecx
	callq	_sshkey_alg_list
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_SSH2_MSG_EXT_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sshpkt_start
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_sshpkt_put_u32
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_sshpkt_put_cstring
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_sshpkt_put_cstring
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_sshpkt_send
	movl	%eax, %ebx
LBB0_7:
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_8
LBB0_1:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_SSH2_MSG_EXT_INFO,4,2          ## @SSH2_MSG_EXT_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"server-sig-algs"

	.no_dead_strip	_kex_send_ext_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kex_send_ext_info
_kex_send_ext_info:                     ; @kex_send_ext_info
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	mov	w0, #0
	mov	w1, #1
	mov	w2, #1
	mov	w3, #44
	bl	_sshkey_alg_list
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _SSH2_MSG_EXT_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH2_MSG_EXT_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sshpkt_start
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	_sshpkt_put_u32
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sshpkt_put_cstring
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_sshpkt_put_cstring
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_sshpkt_send
	mov	x21, x0
LBB0_6:
	mov	x0, x20
	bl	_free
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_SSH2_MSG_EXT_INFO,4,2          ; @SSH2_MSG_EXT_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"server-sig-algs"

	.no_dead_strip	_kex_send_ext_info
.subsections_via_symbols
