	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_fuzz_tests              ## -- Begin function sshbuf_fuzz_tests
	.p2align	4, 0x90
_sshbuf_fuzz_tests:                     ## @sshbuf_fuzz_tests
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_TEST_START
	xorl	%eax, %eax
	callq	_sshbuf_new
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	callq	_sshbuf_set_max_size
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_ASSERT_INT_EQ
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_ASSERT_PTR_NE
	movq	%r13, %rdi
	callq	_sshbuf_ptr
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_ASSERT_PTR_NE
	movq	%r13, %rdi
	callq	_sshbuf_ptr
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_sshbuf_len
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ASSERT_MEM_ZERO_NE
	movq	_NUM_FUZZ_TESTS@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_27
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_ASSERT_PTR_NE
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ASSERT_SIZE_T_GE
	movq	%r13, %rdi
	callq	_sshbuf_avail
	subq	-48(%rbp), %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_ASSERT_SIZE_T_EQ
	movq	%r13, %rdi
	callq	_sshbuf_len
	addq	-48(%rbp), %r12
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_ASSERT_SIZE_T_EQ
	movq	-56(%rbp), %rbx
	movl	$255, %edi
	callq	_arc4random_uniform
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %esi
	movq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_memset
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_sshbuf_ptr
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_ASSERT_PTR_NE
	movq	%r13, %rdi
	callq	_sshbuf_max_size
	movq	%rax, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	callq	_ASSERT_SIZE_T_LE
	incq	%r14
	cmpq	(%r15), %r14
	jae	LBB0_27
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
	movl	$10, %edi
	callq	_arc4random_uniform
	movslq	%eax, %rcx
	movq	%rcx, -48(%rbp)
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %eax
	ja	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$8192, %edi                     ## imm = 0x2000
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_arc4random_uniform
	cltq
	movq	%rax, -48(%rbp)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_sshbuf_avail
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_sshbuf_len
	movq	%rax, %r12
	movq	-48(%rbp), %rsi
	movq	%r13, %rdi
	leaq	-56(%rbp), %rdx
	callq	_sshbuf_reserve
	movq	-56(%rbp), %rdi
	xorl	%esi, %esi
	testl	%eax, %eax
	jns	LBB0_25
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_ASSERT_PTR_EQ
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	cmpl	$3, %eax
	je	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$2048, %edi                     ## imm = 0x800
	cmpl	$8, %eax
	jae	LBB0_16
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_arc4random_uniform
	cltq
	movq	%rax, -48(%rbp)
	movq	%r13, %rdi
	callq	_sshbuf_avail
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_sshbuf_len
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_arc4random
	movq	_sshbuf_consume@GOTPCREL(%rip), %rcx
	testb	$1, %al
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_sshbuf_consume_end@GOTPCREL(%rip), %rcx
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	*%rcx
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_ASSERT_SIZE_T_GE
	movq	%r13, %rdi
	callq	_sshbuf_avail
	addq	-48(%rbp), %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_ASSERT_SIZE_T_EQ
	movq	%r13, %rdi
	callq	_sshbuf_len
	subq	-48(%rbp), %r12
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_ASSERT_SIZE_T_LT
	movq	%r13, %rdi
	callq	_sshbuf_avail
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_ASSERT_SIZE_T_EQ
	movq	%r13, %rdi
	callq	_sshbuf_len
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_ASSERT_SIZE_T_EQ
	jmp	LBB0_26
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$16384, %edi                    ## imm = 0x4000
	callq	_arc4random_uniform
	cltq
	movq	%rax, -48(%rbp)
	movq	%r13, %rdi
	callq	_sshbuf_max_size
	movq	%rax, %r12
	movl	-48(%rbp), %esi
	movq	%r13, %rdi
	callq	_sshbuf_set_max_size
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_sshbuf_max_size
	testq	%rbx, %rbx
	js	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_ASSERT_SIZE_T_EQ
	jmp	LBB0_26
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$8192, %edi                     ## imm = 0x2000
	callq	_arc4random_uniform
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %rdi
	movl	$8, %esi
	callq	_arc4random_buf
	movq	-48(%rbp), %rax
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_SSHBUF_SIZE_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rcx
	cmpq	%rcx, %rax
	jae	LBB0_5
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	addq	%rax, %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_arc4random
                                        ## kill: def $eax killed $eax def $rax
	andl	$1, %eax
	orq	-48(%rbp), %rax
	movq	%rax, -48(%rbp)
	jmp	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_sshbuf_ptr
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_ASSERT_PTR_NE
	movq	%r13, %rdi
	callq	_sshbuf_ptr
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_sshbuf_len
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ASSERT_MEM_ZERO_NE
	movq	%r13, %rdi
	callq	_sshbuf_free
	xorl	%eax, %eax
	callq	_sshbuf_new
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_ASSERT_PTR_NE
	movq	%r13, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	callq	_sshbuf_set_max_size
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_ASSERT_INT_EQ
	jmp	LBB0_26
LBB0_27:
	movq	%r13, %rdi
	callq	_sshbuf_ptr
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_ASSERT_PTR_NE
	movq	%r13, %rdi
	callq	_sshbuf_ptr
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_sshbuf_len
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ASSERT_MEM_ZERO_NE
	movq	%r13, %rdi
	callq	_sshbuf_free
	xorl	%eax, %eax
	callq	_TEST_DONE
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fuzz alloc/dealloc"

	.comm	_NUM_FUZZ_TESTS,8,3             ## @NUM_FUZZ_TESTS
	.comm	_SSHBUF_SIZE_MAX,4,2            ## @SSHBUF_SIZE_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_fuzz_tests              ; -- Begin function sshbuf_fuzz_tests
	.p2align	2
_sshbuf_fuzz_tests:                     ; @sshbuf_fuzz_tests
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TEST_START
	bl	_sshbuf_new
	mov	x19, x0
	mov	w1, #16384
	bl	_sshbuf_set_max_size
	mov	w1, #0
	bl	_ASSERT_INT_EQ
	mov	x0, x19
	mov	x1, #0
	bl	_ASSERT_PTR_NE
	mov	x0, x19
	bl	_sshbuf_ptr
	mov	x1, #0
	bl	_ASSERT_PTR_NE
	mov	x0, x19
	bl	_sshbuf_ptr
	mov	x20, x0
	mov	x0, x19
	bl	_sshbuf_len
	mov	x1, x0
	mov	x0, x20
	bl	_ASSERT_MEM_ZERO_NE
Lloh2:
	adrp	x22, _NUM_FUZZ_TESTS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NUM_FUZZ_TESTS@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_28
; %bb.1:
	mov	x23, #0
Lloh4:
	adrp	x24, _sshbuf_consume@GOTPAGE
Lloh5:
	ldr	x24, [x24, _sshbuf_consume@GOTPAGEOFF]
Lloh6:
	adrp	x25, _sshbuf_consume_end@GOTPAGE
Lloh7:
	ldr	x25, [x25, _sshbuf_consume_end@GOTPAGEOFF]
Lloh8:
	adrp	x26, _SSHBUF_SIZE_MAX@GOTPAGE
Lloh9:
	ldr	x26, [x26, _SSHBUF_SIZE_MAX@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_ASSERT_PTR_NE
	ldr	x1, [sp]
	mov	x0, x21
	bl	_ASSERT_SIZE_T_GE
	mov	x0, x19
	bl	_sshbuf_avail
	ldr	x8, [sp]
	sub	x1, x21, x8
	bl	_ASSERT_SIZE_T_EQ
	mov	x0, x19
	bl	_sshbuf_len
	ldr	x8, [sp]
	add	x1, x8, x20
	bl	_ASSERT_SIZE_T_EQ
	ldr	x20, [sp, #8]
	mov	w0, #255
	bl	_arc4random_uniform
	add	w1, w0, #1
	ldr	x2, [sp]
	mov	x0, x20
	bl	_memset
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_sshbuf_ptr
	mov	x1, #0
	bl	_ASSERT_PTR_NE
	mov	x0, x19
	bl	_sshbuf_max_size
	mov	w1, #16384
	bl	_ASSERT_SIZE_T_LE
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.hs	LBB0_28
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_25 Depth 2
	mov	w0, #10
	bl	_arc4random_uniform
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [sp]
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #2
	b.hi	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #8192
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_arc4random_uniform
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [sp]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_sshbuf_avail
	mov	x21, x0
	mov	x0, x19
	bl	_sshbuf_len
	mov	x20, x0
	ldr	x1, [sp]
	add	x2, sp, #8
	mov	x0, x19
	bl	_sshbuf_reserve
	mov	x8, x0
	ldr	x0, [sp, #8]
	mov	x1, #0
	tbz	w8, #31, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_ASSERT_PTR_EQ
	ldr	x1, [sp]
	mov	x0, x21
	b	LBB0_18
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #3
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #10
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #8
	b.hs	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #2048
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_arc4random_uniform
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [sp]
	mov	x0, x19
	bl	_sshbuf_avail
	mov	x21, x0
	mov	x0, x19
	bl	_sshbuf_len
	mov	x20, x0
	bl	_arc4random
	tst	w0, #0x1
	csel	x8, x25, x24, eq
	ldr	x1, [sp]
	mov	x0, x19
	blr	x8
	ldr	x1, [sp]
	tbnz	w0, #31, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_ASSERT_SIZE_T_GE
	mov	x0, x19
	bl	_sshbuf_avail
	ldr	x8, [sp]
	add	x1, x8, x21
	bl	_ASSERT_SIZE_T_EQ
	mov	x0, x19
	bl	_sshbuf_len
	ldr	x8, [sp]
	sub	x1, x20, x8
	bl	_ASSERT_SIZE_T_EQ
	b	LBB0_3
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_ASSERT_SIZE_T_LT
	mov	x0, x19
	bl	_sshbuf_avail
	mov	x1, x21
	bl	_ASSERT_SIZE_T_EQ
	mov	x0, x19
	bl	_sshbuf_len
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x20
	bl	_ASSERT_SIZE_T_EQ
	b	LBB0_3
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	b.ne	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #16384
	bl	_arc4random_uniform
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [sp]
	mov	x0, x19
	bl	_sshbuf_max_size
	mov	x20, x0
	ldr	w1, [sp]
	mov	x0, x19
	bl	_sshbuf_set_max_size
	mov	x21, x0
	mov	x0, x19
	bl	_sshbuf_max_size
	tbnz	x21, #63, LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp]
	bl	_ASSERT_SIZE_T_EQ
	b	LBB0_3
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #8192
	bl	_arc4random_uniform
	cbz	w0, LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, sp
	mov	w1, #8
	bl	_arc4random_buf
	ldr	x8, [sp]
LBB0_25:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x26]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	cmp	x8, w9, sxtw
	b.hs	LBB0_9
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	lsl	x8, x8, #1
	str	x8, [sp]
	bl	_arc4random
	and	w8, w0, #0x1
	ldr	x9, [sp]
	orr	x8, x9, x8
	str	x8, [sp]
	b	LBB0_25
LBB0_27:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_sshbuf_ptr
	mov	x1, #0
	bl	_ASSERT_PTR_NE
	mov	x0, x19
	bl	_sshbuf_ptr
	mov	x20, x0
	mov	x0, x19
	bl	_sshbuf_len
	mov	x1, x0
	mov	x0, x20
	bl	_ASSERT_MEM_ZERO_NE
	mov	x0, x19
	bl	_sshbuf_free
	bl	_sshbuf_new
	mov	x19, x0
	mov	x1, #0
	bl	_ASSERT_PTR_NE
	mov	x0, x19
	mov	w1, #16384
	bl	_sshbuf_set_max_size
	mov	w1, #0
	bl	_ASSERT_INT_EQ
	b	LBB0_3
LBB0_28:
	mov	x0, x19
	bl	_sshbuf_ptr
	mov	x1, #0
	bl	_ASSERT_PTR_NE
	mov	x0, x19
	bl	_sshbuf_ptr
	mov	x20, x0
	mov	x0, x19
	bl	_sshbuf_len
	mov	x1, x0
	mov	x0, x20
	bl	_ASSERT_MEM_ZERO_NE
	mov	x0, x19
	bl	_sshbuf_free
	bl	_TEST_DONE
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fuzz alloc/dealloc"

	.comm	_NUM_FUZZ_TESTS,8,3             ; @NUM_FUZZ_TESTS
	.comm	_SSHBUF_SIZE_MAX,4,2            ; @SSHBUF_SIZE_MAX
.subsections_via_symbols
