	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kex_prop2buf                   ## -- Begin function kex_prop2buf
	.p2align	4, 0x90
_kex_prop2buf:                          ## @kex_prop2buf
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_sshbuf_reset
	movq	_KEX_COOKIE_LEN@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_sshbuf_put_u8
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_2
LBB0_4:
	movq	_PROPOSAL_MAX@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_8
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rsi
	movq	%r12, %rdi
	callq	_sshbuf_put_cstring
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_sshbuf_put_u8
	testl	%eax, %eax
	je	LBB0_10
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sshbuf_put_u32                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PROPOSAL_MAX,8,3               ## @PROPOSAL_MAX
	.comm	_KEX_COOKIE_LEN,8,3             ## @KEX_COOKIE_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kex_prop2buf                   ; -- Begin function kex_prop2buf
	.p2align	2
_kex_prop2buf:                          ; @kex_prop2buf
	.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	x20, x1
	mov	x19, x0
	bl	_sshbuf_reset
Lloh0:
	adrp	x21, _KEX_COOKIE_LEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _KEX_COOKIE_LEN@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_sshbuf_put_u8
	cbnz	w0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.lo	LBB0_2
LBB0_4:
Lloh2:
	adrp	x21, _PROPOSAL_MAX@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PROPOSAL_MAX@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20, x22, lsl #3]
	mov	x0, x19
	bl	_sshbuf_put_cstring
	cbnz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.lo	LBB0_6
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	_sshbuf_put_u8
	cbz	w0, LBB0_10
LBB0_9:
	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
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	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
	b	_sshbuf_put_u32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PROPOSAL_MAX,8,3               ; @PROPOSAL_MAX
	.comm	_KEX_COOKIE_LEN,8,3             ; @KEX_COOKIE_LEN
.subsections_via_symbols
