	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serialise_array
_serialise_array:                       ## @serialise_array
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jae	LBB0_2
## %bb.1:
	movq	_SSH_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_2:
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_sshbuf_new
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_10
## %bb.4:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r14,8), %rsi
	movq	%r15, %rdi
	callq	_sshbuf_put_cstring
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_7
LBB0_10:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_sshbuf_put_u32
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.11:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_sshbuf_put_stringb
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_5:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_8:
	movl	%eax, %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_sshbuf_free
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ## @SSH_ERR_INTERNAL_ERROR
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.no_dead_strip	_serialise_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serialise_array
_serialise_array:                       ; @serialise_array
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	b	LBB0_12
LBB0_2:
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_sshbuf_new
	cbz	x0, LBB0_9
; %bb.3:
	mov	x19, x0
	cbz	x21, LBB0_7
; %bb.4:
	mov	x24, x21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22]
	mov	x0, x19
	bl	_sshbuf_put_cstring
	cbnz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #8
	subs	x24, x24, #1
	b.ne	LBB0_5
LBB0_7:
	mov	x0, x20
	mov	x1, x21
	bl	_sshbuf_put_u32
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	bl	_sshbuf_put_stringb
	mov	x23, x0
	cbnz	w0, LBB0_11
	b	LBB0_12
LBB0_9:
Lloh6:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	b	LBB0_12
LBB0_10:
	mov	x23, x0
LBB0_11:
	mov	x0, x19
	bl	_sshbuf_free
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.no_dead_strip	_serialise_array
.subsections_via_symbols
