	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmsgpack_read                  ## -- Begin function rmsgpack_read
	.p2align	4, 0x90
_rmsgpack_read:                         ## @rmsgpack_read
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	movl	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_filestream_read
	cmpl	$-1, %eax
	je	LBB0_26
## %bb.1:
	movl	-48(%rbp), %edi
	movq	_MPF_FIXMAP@GOTPCREL(%rip), %rcx
	movl	%edi, %eax
	subl	(%rcx), %eax
	jge	LBB0_4
## %bb.2:
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
LBB0_3:
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r14, %rsi
	callq	*%rcx
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_4:
	movq	_MPF_FIXARRAY@GOTPCREL(%rip), %rcx
	movl	%edi, %esi
	subl	(%rcx), %esi
	jge	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	movl	%eax, %esi
LBB0_6:
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_read_map
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_7:
	movq	_MPF_FIXSTR@GOTPCREL(%rip), %rax
	movl	%edi, %r13d
	subl	(%rax), %r13d
	jge	LBB0_11
## %bb.8:
	movl	%esi, -44(%rbp)
LBB0_9:
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_read_array
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_11:
	movq	_MPF_NIL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jge	LBB0_16
## %bb.12:
	movl	%r13d, -44(%rbp)
	leal	1(%r13), %eax
	movslq	%eax, %rdi
	callq	_malloc
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_24
## %bb.13:
	movq	%r12, %rdi
	movq	%rax, %r12
	movq	%rax, %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_filestream_read
	cmpl	$-1, %eax
	je	LBB0_25
## %bb.14:
	movslq	%eax, %rcx
	movb	$0, (%r12,%rcx)
	movq	8(%r15), %rcx
	movq	-56(%rbp), %rdi
	testq	%rcx, %rcx
	je	LBB0_30
## %bb.15:
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	*%rcx
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_16:
	movq	_MPF_MAP32@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jle	LBB0_19
## %bb.17:
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.18:
	addl	$-256, %edi
	jmp	LBB0_3
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_19:
	leal	-128(%rdi), %eax
	cmpl	$20, %eax
	ja	LBB0_53
## %bb.20:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_21:
	movl	$1, %edi
	callq	_UINT64_C
	movb	-48(%rbp), %cl
	shll	%cl, %eax
	movl	%eax, -44(%rbp)
	movl	$0, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_read_uint
	cmpl	$-1, %eax
	je	LBB0_26
## %bb.22:
	movq	40(%r15), %rax
	testq	%rax, %rax
	je	LBB0_53
## %bb.23:
	movl	-64(%rbp), %edi
	jmp	LBB0_52
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_25:
	movq	%r12, %rdi
	callq	_free
LBB0_26:
	movq	_errno@GOTPCREL(%rip), %rax
LBB0_27:
	subl	(%rax), %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	callq	_free
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_31:
	movl	$1, %edi
	callq	_UINT64_C
	movb	-48(%rbp), %cl
	addb	$117, %cl
	shll	%cl, %eax
	movl	%eax, -44(%rbp)
	movl	$0, -60(%rbp)
	movslq	%eax, %rdx
	leaq	-60(%rbp), %rsi
	movq	%r12, %rdi
	callq	_read_int
	cmpl	$-1, %eax
	je	LBB0_26
## %bb.32:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_53
## %bb.33:
	movl	-60(%rbp), %edi
	jmp	LBB0_52
LBB0_34:
	addb	$123, %dil
	movl	$1, %esi
	movl	%edi, %ecx
	shll	%cl, %esi
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	callq	_read_buff
	testl	%eax, %eax
	js	LBB0_45
## %bb.35:
	movq	8(%r15), %rax
	jmp	LBB0_38
LBB0_36:
	addb	$112, %dil
	movl	$1, %esi
	movl	%edi, %ecx
	shll	%cl, %esi
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	callq	_read_buff
	testl	%eax, %eax
	js	LBB0_45
## %bb.37:
	movq	32(%r15), %rax
LBB0_38:
	testq	%rax, %rax
	je	LBB0_53
## %bb.39:
	movq	-56(%rbp), %rdi
	movl	-44(%rbp), %esi
	movq	%r14, %rdx
	callq	*%rax
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_45:
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_40:
	addb	$118, %dil
	movl	$2, %edx
	movl	%edi, %ecx
	shll	%cl, %edx
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_read_uint
	cmpl	$-1, %eax
	je	LBB0_26
## %bb.41:
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	jmp	LBB0_6
LBB0_42:
	addb	$108, %dil
	movl	$2, %edx
	movl	%edi, %ecx
	shll	%cl, %edx
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_read_uint
	cmpl	$-1, %eax
	je	LBB0_26
## %bb.43:
	movl	-44(%rbp), %esi
	jmp	LBB0_9
LBB0_46:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_53
## %bb.47:
	movl	$1, %edi
	jmp	LBB0_52
LBB0_48:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_53
## %bb.49:
	movq	%r14, %rdi
	callq	*%rax
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_50:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_53
## %bb.51:
	xorl	%edi, %edi
LBB0_52:
	movq	%r14, %rsi
	callq	*%rax
	movl	%eax, %ebx
	jmp	LBB0_28
LBB0_53:
	movq	-56(%rbp), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.54:
	callq	_free
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_46, LBB0_46-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_48, LBB0_48-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_50, LBB0_50-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
LJTI0_0:
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_46
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_48
	.long	L0_0_set_40
	.long	L0_0_set_40
	.long	L0_0_set_31
	.long	L0_0_set_31
	.long	L0_0_set_31
	.long	L0_0_set_31
	.long	L0_0_set_50
	.long	L0_0_set_36
	.long	L0_0_set_36
	.long	L0_0_set_36
	.long	L0_0_set_42
	.long	L0_0_set_42
	.end_data_region
                                        ## -- End function
	.comm	_MPF_FIXMAP,4,2                 ## @MPF_FIXMAP
	.comm	_MPF_FIXARRAY,4,2               ## @MPF_FIXARRAY
	.comm	_MPF_FIXSTR,4,2                 ## @MPF_FIXSTR
	.comm	_MPF_NIL,4,2                    ## @MPF_NIL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MPF_MAP32,4,2                  ## @MPF_MAP32
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmsgpack_read                  ; -- Begin function rmsgpack_read
	.p2align	2
_rmsgpack_read:                         ; @rmsgpack_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	stp	xzr, xzr, [sp, #32]
	str	xzr, [sp, #24]
	mov	w8, #4
	add	x9, sp, #32
	stp	x9, x8, [sp]
	bl	_filestream_read
	cmn	w0, #1
	b.eq	LBB0_26
; %bb.1:
	ldr	w0, [sp, #32]
Lloh0:
	adrp	x8, _MPF_FIXMAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPF_FIXMAP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	subs	w8, w0, w8
	b.ge	LBB0_4
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_18
LBB0_3:
	mov	x1, x19
	blr	x8
	b	LBB0_28
LBB0_4:
Lloh3:
	adrp	x9, _MPF_FIXARRAY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPF_FIXARRAY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	subs	w1, w0, w9
	b.ge	LBB0_7
; %bb.5:
	mov	x0, x21
	mov	x1, x8
LBB0_6:
	mov	x2, x20
	mov	x3, x19
	bl	_read_map
	b	LBB0_28
LBB0_7:
Lloh6:
	adrp	x8, _MPF_FIXSTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MPF_FIXSTR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	subs	w23, w0, w8
	b.ge	LBB0_10
; %bb.8:
	str	w1, [sp, #44]
LBB0_9:
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_read_array
	b	LBB0_28
LBB0_10:
Lloh9:
	adrp	x8, _MPF_NIL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MPF_NIL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_15
; %bb.11:
	str	w23, [sp, #44]
	add	w8, w23, #1
	sxtw	x0, w8
	bl	_malloc
	str	x0, [sp, #24]
	cbz	x0, LBB0_24
; %bb.12:
	mov	x22, x0
	stp	x0, x23, [sp]
	mov	x0, x21
	bl	_filestream_read
	cmn	w0, #1
	b.eq	LBB0_25
; %bb.13:
	mov	x1, x0
	strb	wzr, [x22, w0, sxtw]
	ldr	x8, [x20, #8]
	ldr	x0, [sp, #24]
	cbz	x8, LBB0_48
LBB0_14:
	mov	x2, x19
	blr	x8
	b	LBB0_28
LBB0_15:
Lloh12:
	adrp	x8, _MPF_MAP32@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MPF_MAP32@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_19
; %bb.16:
	ldr	x8, [x20]
	cbz	x8, LBB0_18
; %bb.17:
	sub	w0, w0, #256
	b	LBB0_3
LBB0_18:
	mov	w0, #0
	b	LBB0_28
LBB0_19:
	sub	w8, w0, #128
	cmp	w8, #20
	b.hi	LBB0_47
; %bb.20:
Lloh15:
	adrp	x9, lJTI0_0@PAGE
Lloh16:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_21
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_21:
	mov	w0, #1
	bl	_UINT64_C
	ldr	w8, [sp, #32]
	lsl	w2, w0, w8
	stp	wzr, w2, [sp, #40]
	add	x1, sp, #40
	mov	x0, x21
	bl	_read_uint
	cmn	w0, #1
	b.eq	LBB0_26
; %bb.22:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_47
; %bb.23:
	ldr	w0, [sp, #40]
	b	LBB0_3
LBB0_24:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_27
LBB0_25:
	mov	x0, x22
	bl	_free
LBB0_26:
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
LBB0_27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_28:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_29:
	mov	w0, #1
	bl	_UINT64_C
	ldr	w8, [sp, #32]
	sub	w8, w8, #139
	lsl	w8, w0, w8
	str	w8, [sp, #44]
	str	wzr, [sp, #36]
	sxtw	x2, w8
	add	x1, sp, #36
	mov	x0, x21
	bl	_read_int
	cmn	w0, #1
	b.eq	LBB0_26
; %bb.30:
	ldr	x8, [x20]
	cbz	x8, LBB0_47
; %bb.31:
	ldr	w0, [sp, #36]
	b	LBB0_3
LBB0_32:
	sub	w8, w0, #133
	mov	w9, #1
	lsl	w1, w9, w8
	add	x2, sp, #24
	add	x3, sp, #44
	mov	x0, x21
	bl	_read_buff
	tbnz	w0, #31, LBB0_28
; %bb.33:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_36
	b	LBB0_47
LBB0_34:
	sub	w8, w0, #144
	mov	w9, #1
	lsl	w1, w9, w8
	add	x2, sp, #24
	add	x3, sp, #44
	mov	x0, x21
	bl	_read_buff
	tbnz	w0, #31, LBB0_28
; %bb.35:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_47
LBB0_36:
	ldr	x0, [sp, #24]
	ldr	w1, [sp, #44]
	b	LBB0_14
LBB0_37:
	sub	w8, w0, #138
	mov	w9, #2
	lsl	w2, w9, w8
	add	x1, sp, #44
	mov	x0, x21
	bl	_read_uint
	cmn	w0, #1
	b.eq	LBB0_26
; %bb.38:
	ldr	w1, [sp, #44]
	mov	x0, x21
	b	LBB0_6
LBB0_39:
	sub	w8, w0, #148
	mov	w9, #2
	lsl	w2, w9, w8
	add	x1, sp, #44
	mov	x0, x21
	bl	_read_uint
	cmn	w0, #1
	b.eq	LBB0_26
; %bb.40:
	ldr	w1, [sp, #44]
	b	LBB0_9
LBB0_41:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_47
; %bb.42:
	mov	w0, #1
	b	LBB0_3
LBB0_43:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_47
; %bb.44:
	mov	x0, x19
	blr	x8
	b	LBB0_28
LBB0_45:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_47
; %bb.46:
	mov	w0, #0
	b	LBB0_3
LBB0_47:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_28
LBB0_48:
	bl	_free
	mov	w0, #0
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_41-LBB0_21)>>2
	.byte	(LBB0_32-LBB0_21)>>2
	.byte	(LBB0_32-LBB0_21)>>2
	.byte	(LBB0_32-LBB0_21)>>2
	.byte	(LBB0_43-LBB0_21)>>2
	.byte	(LBB0_37-LBB0_21)>>2
	.byte	(LBB0_37-LBB0_21)>>2
	.byte	(LBB0_29-LBB0_21)>>2
	.byte	(LBB0_29-LBB0_21)>>2
	.byte	(LBB0_29-LBB0_21)>>2
	.byte	(LBB0_29-LBB0_21)>>2
	.byte	(LBB0_45-LBB0_21)>>2
	.byte	(LBB0_34-LBB0_21)>>2
	.byte	(LBB0_34-LBB0_21)>>2
	.byte	(LBB0_34-LBB0_21)>>2
	.byte	(LBB0_39-LBB0_21)>>2
	.byte	(LBB0_39-LBB0_21)>>2
                                        ; -- End function
	.comm	_MPF_FIXMAP,4,2                 ; @MPF_FIXMAP
	.comm	_MPF_FIXARRAY,4,2               ; @MPF_FIXARRAY
	.comm	_MPF_FIXSTR,4,2                 ; @MPF_FIXSTR
	.comm	_MPF_NIL,4,2                    ; @MPF_NIL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MPF_MAP32,4,2                  ; @MPF_MAP32
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
