	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function collect_data
_collect_data:                          ## @collect_data
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %r12
	movl	(%rdi), %ebx
	subl	4(%r12), %ebx
	movl	8(%rsi), %esi
	movl	8(%r12), %eax
	movq	_FULL_KEY_DATA@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %eax
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jne	LBB0_11
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	addl	%edx, %ebx
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_free
LBB0_3:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, 8(%r14)
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.6:
	movl	$1, 16(%r14)
	movslq	(%r12), %rax
	cmpq	$2, %rax
	jne	LBB0_8
## %bb.7:
	movq	$0, 24(%r14)
	incl	32(%r14)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_11:
	movslq	(%r12), %rax
	movl	-4(%r12,%rax,4), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	___get_buf
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rbx,%rcx), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_collect_data
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jg	LBB0_13
	jmp	LBB0_16
LBB0_5:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_8:
	movl	-4(%r12,%rax,4), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	___get_buf
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_16
## %bb.9:
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jne	LBB0_13
## %bb.10:
	incl	32(%r14)
	movq	$0, 24(%r14)
LBB0_13:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 8(%r15)
	jne	LBB0_14
## %bb.15:
	movslq	-72(%rbp), %rdi                 ## 4-byte Folded Reload
	addq	8(%r14), %rdi
	movslq	4(%r12), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edx
	callq	_memmove
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_16
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %r13d
LBB0_16:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FULL_KEY_DATA,4,2              ## @FULL_KEY_DATA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_collect_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function collect_data
_collect_data:                          ; @collect_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x24, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x25, [x1]
	ldr	w8, [x0]
	ldp	w9, w10, [x25, #4]
	sub	w21, w8, w9
	ldr	w26, [x1, #8]
Lloh0:
	adrp	x8, _FULL_KEY_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FULL_KEY_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w10, w8
	b.ne	LBB0_7
; %bb.1:
	add	w23, w21, w20
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_free
LBB0_3:
	mov	x0, x23
	bl	_malloc
	str	x0, [x22, #8]
	cbz	x0, LBB0_12
; %bb.4:
	cbz	w24, LBB0_9
; %bb.5:
	mov	w8, #1
	str	w8, [x22, #16]
	ldr	w8, [x25]
	cmp	w8, #2
	b.ne	LBB0_14
; %bb.6:
	str	xzr, [x22, #24]
	ldr	w8, [x22, #32]
	add	w8, w8, #1
	str	w8, [x22, #32]
	b	LBB0_9
LBB0_7:
	ldrsw	x8, [x25]
	add	x8, x25, x8, lsl #2
	ldur	w1, [x8, #-4]
	mov	x0, x22
	mov	x2, x19
	mov	w3, #0
	bl	___get_buf
	cbz	x0, LBB0_12
; %bb.8:
	mov	x1, x0
	add	w2, w21, w20
	mov	x0, x22
	mov	x3, x24
	bl	_collect_data
	mov	x23, x0
	cmp	w0, #1
	b.lt	LBB0_12
LBB0_9:
	ldr	w8, [x19, #8]
	cmp	w8, w26
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x22, #8]
	add	x0, x8, w20, sxtw
	ldr	x8, [x19]
	ldrsw	x9, [x25, #4]
	add	x1, x8, x9
	mov	x2, x21
	bl	_memmove
	b	LBB0_13
LBB0_11:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
LBB0_12:
	mov	w23, #-1
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	sub	w8, w8, #1
	ldr	w1, [x25, w8, sxtw #2]
	mov	x0, x22
	mov	x2, x19
	mov	w3, #0
	bl	___get_buf
	str	x0, [x22, #24]
	cbz	x0, LBB0_12
; %bb.15:
	ldr	x8, [x0]
	ldr	w8, [x8]
	cbnz	w8, LBB0_9
; %bb.16:
	ldr	w8, [x22, #32]
	add	w8, w8, #1
	str	w8, [x22, #32]
	str	xzr, [x22, #24]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FULL_KEY_DATA,4,2              ; @FULL_KEY_DATA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_collect_data
.subsections_via_symbols
