	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_string
_decode_string:                         ## @decode_string
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	8(%rdi), %r11
	movl	$128, (%rcx)
	xorl	%r14d, %r14d
	testq	%r8, %r8
	je	LBB0_19
## %bb.1:
	cmpl	$128, %edx
	je	LBB0_19
## %bb.2:
	movq	_FIRST_CODE@GOTPCREL(%rip), %r9
	movl	(%r9), %r15d
	xorl	%eax, %eax
	movq	_DIC_INDEX_MAX@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r14
	cmpl	%r15d, %edx
	jl	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%edx, %rax
	leaq	(%rax,%rax,2), %rax
	movslq	8(%r11,%rax,4), %rdx
	decq	%rdx
	cmpq	%r8, %rdx
	jae	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%r11,%rax,4), %ebx
	movb	%bl, (%rsi,%rdx)
	movl	4(%r11,%rax,4), %edx
	testl	%edx, %edx
	js	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r10), %eax
	cmpl	%eax, %edx
	jge	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r9), %r15d
	cmpl	%r15d, %edx
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rdx,%rdx,2), %r12
	movl	4(%r11,%r12,4), %ebx
	testl	%ebx, %ebx
	js	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, %ebx
	jge	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	decl	%eax
	movl	8(%r11,%r12,4), %ebx
	decl	%ebx
	cmpl	%eax, %ebx
	ja	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r14), %rax
	cmpq	%r8, %rax
	jae	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$128, %edx
	jne	LBB0_3
	jmp	LBB0_18
LBB0_13:
	movl	(%rdi), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_17:
	callq	_av_log
	jmp	LBB0_18
LBB0_14:
	movl	%edx, (%rcx)
	movb	%dl, (%rsi)
LBB0_18:
	incq	%r14
LBB0_19:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	(%rdi), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	jmp	LBB0_19
LBB0_16:
	movl	(%rdi), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_FIRST_CODE,4,2                 ## @FIRST_CODE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MLZ offset error.\n"

	.comm	_DIC_INDEX_MAX,4,2              ## @DIC_INDEX_MAX
L_.str.1:                               ## @.str.1
	.asciz	"MLZ dic index error.\n"

L_.str.2:                               ## @.str.2
	.asciz	"MLZ dic offset error.\n"

	.no_dead_strip	_decode_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_string
_decode_string:                         ; @decode_string
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, #0
	ldr	x8, [x0, #8]
	mov	w9, #128
	str	w9, [x3]
	cbz	x4, LBB0_20
; %bb.1:
	cmp	w2, #128
	b.eq	LBB0_20
; %bb.2:
	mov	x19, #0
Lloh0:
	adrp	x9, _FIRST_CODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FIRST_CODE@GOTPAGEOFF]
	ldr	w12, [x9]
	mov	w10, #12
Lloh2:
	adrp	x11, _DIC_INDEX_MAX@GOTPAGE
Lloh3:
	ldr	x11, [x11, _DIC_INDEX_MAX@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w2, w12
	b.lt	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	smaddl	x12, w2, w10, x8
	ldrsw	x12, [x12, #8]
	sub	x12, x12, #1
	cmp	x12, x4
	b.hs	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x13, w2
	madd	x13, x13, x10, x8
	ldr	w14, [x13]
	strb	w14, [x1, x12]
	add	x20, x19, #1
	ldr	w13, [x13, #4]
	tbnz	w13, #31, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w14, [x11]
	cmp	w13, w14
	b.ge	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x9]
	cmp	w13, w12
	b.le	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x15, x13, x10, x8
	ldr	w15, [x15, #4]
	tbnz	w15, #31, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w15, w14
	b.ge	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	w14, w14, #1
	madd	x15, x13, x10, x8
	ldr	w15, [x15, #8]
	sub	w15, w15, #1
	cmp	w15, w14
	b.hi	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #1
	cmp	x20, x4
	b.hs	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x13
	cmp	w13, #128
	b.ne	LBB0_3
	b	LBB0_20
LBB0_13:
	ldr	w0, [x0]
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	mov	x19, x20
	b	LBB0_20
LBB0_14:
	str	w2, [x3]
	strb	w2, [x1]
	b	LBB0_19
LBB0_15:
	ldr	w0, [x0]
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	b	LBB0_20
LBB0_16:
	ldr	w0, [x0]
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_17:
	ldr	w0, [x0]
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_18:
	bl	_av_log
LBB0_19:
	add	x19, x19, #1
LBB0_20:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FIRST_CODE,4,2                 ; @FIRST_CODE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MLZ offset error.\n"

	.comm	_DIC_INDEX_MAX,4,2              ; @DIC_INDEX_MAX
l_.str.1:                               ; @.str.1
	.asciz	"MLZ dic index error.\n"

l_.str.2:                               ; @.str.2
	.asciz	"MLZ dic offset error.\n"

	.no_dead_strip	_decode_string
.subsections_via_symbols
