	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hap_parse_decode_instructions
_hap_parse_decode_instructions:         ## @hap_parse_decode_instructions
	.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
	testl	%esi, %esi
	jle	LBB0_24
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r14
	leaq	16(%rdi), %r13
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %r12
	leaq	-60(%rbp), %rbx
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-44(%rbp), %r12
	leaq	-60(%rbp), %rbx
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, %r15d
	addl	%edx, %ecx
	subl	%ecx, %r15d
	testl	%r15d, %r15d
	jle	LBB0_22
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movq	%r13, %rdi
	callq	_bytestream2_get_bytes_left
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_ff_hap_parse_section_header
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_34
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_bytestream2_get_bytes_left
	movl	-60(%rbp), %ecx
	cmpl	$128, %ecx
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %ecx
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %ecx
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_ff_hap_set_chunk_count
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_34
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx
	movl	$1, -68(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	testl	%edx, %edx
	jle	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	shll	$4, %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%r12)
	incq	%rbx
	movslq	-44(%rbp), %rdx
	addq	$24, %r12
	cmpq	%rdx, %rbx
	jl	LBB0_10
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %eax
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$2, %esi
	movq	%r14, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_ff_hap_set_chunk_count
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_34
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx
	movl	$1, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	cmpl	$4, %edx
	jl	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$16, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_bytestream2_get_le32
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%r12)
	incq	%rbx
	movl	-44(%rbp), %edx
	leal	3(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rcx
	addq	$24, %r12
	cmpq	%rcx, %rbx
	jl	LBB0_14
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %eax
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$2, %esi
	movq	%r14, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_ff_hap_set_chunk_count
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_34
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx
	movl	$1, -64(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	cmpl	$4, %edx
	jl	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$8, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_bytestream2_get_le32
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%r12)
	incq	%rbx
	movl	-44(%rbp), %edx
	leal	3(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rcx
	addq	$24, %r12
	cmpq	%rcx, %rbx
	jl	LBB0_18
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_21
LBB0_22:
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_24
## %bb.23:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_24
## %bb.25:
	xorl	%eax, %eax
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_34
## %bb.26:
	movl	(%r14), %edi
	testl	%edi, %edi
	jle	LBB0_34
## %bb.27:
	movq	8(%r14), %r8
	leaq	-1(%rdi), %rcx
	movl	%edi, %edx
	andl	$3, %edx
	xorl	%eax, %eax
	cmpq	$3, %rcx
	jae	LBB0_29
## %bb.28:
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	jmp	LBB0_31
LBB0_24:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_34:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	andl	$-4, %edi
	leaq	88(%r8), %rcx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	%rsi, -80(%rcx)
	addq	-72(%rcx), %rsi
	movq	%rsi, -56(%rcx)
	addq	-48(%rcx), %rsi
	movq	%rsi, -32(%rcx)
	addq	-24(%rcx), %rsi
	movq	%rsi, -8(%rcx)
	addq	(%rcx), %rsi
	addq	$4, %rbx
	addq	$96, %rcx
	cmpq	%rbx, %rdi
	jne	LBB0_30
LBB0_31:
	testq	%rdx, %rdx
	je	LBB0_34
## %bb.32:
	leaq	(%rbx,%rbx,2), %rax
	leaq	(%r8,%rax,8), %rcx
	addq	$16, %rcx
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	xorl	%eax, %eax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	%rsi, -8(%rcx,%rdi)
	addq	(%rcx,%rdi), %rsi
	addq	$24, %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_33
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_hap_parse_decode_instructions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hap_parse_decode_instructions
_hap_parse_decode_instructions:         ; @hap_parse_decode_instructions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w1, #1
	b.lt	LBB0_27
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w27, #0
	mov	w25, #0
	mov	w26, #0
	add	x21, x0, #16
	mov	w24, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w20, w23
	add	w8, w22, w8
	sub	w20, w9, w8
	cmp	w20, #0
	b.le	LBB0_23
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	mov	x0, x21
	bl	_bytestream2_get_bytes_left
	mov	x22, x0
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x21
	bl	_ff_hap_parse_section_header
	cbnz	w0, LBB0_28
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_bytestream2_get_bytes_left
	mov	x23, x0
	ldr	w8, [sp, #8]
	cmp	w8, #128
	b.eq	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #129
	b.eq	LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #130
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	x2, x24
	bl	_ff_hap_set_chunk_count
	cbnz	w0, LBB0_28
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, #0
	mov	x25, #0
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_bytestream2_get_byte
	lsl	w8, w0, #4
	ldr	x9, [x19, #8]
	str	w8, [x9, x24]
	add	x25, x25, #1
	ldrsw	x8, [sp, #12]
	add	x24, x24, #24
	cmp	x25, x8
	b.lt	LBB0_11
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #0
	mov	w25, #1
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #2
	mov	x0, x19
	mov	x2, x24
	bl	_ff_hap_set_chunk_count
	cbnz	w0, LBB0_28
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #4
	b.lt	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, #0
	mov	w27, #16
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_bytestream2_get_le32
	ldr	x8, [x19, #8]
	str	x0, [x8, x27]
	add	x24, x24, #1
	ldr	w8, [sp, #12]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #2
	add	x27, x27, #24
	cmp	x24, w9, sxtw
	b.lt	LBB0_16
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #0
	mov	w27, #1
	b	LBB0_3
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #2
	mov	x0, x19
	mov	x2, x24
	bl	_ff_hap_set_chunk_count
	cbnz	w0, LBB0_28
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #4
	b.lt	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, #0
	mov	w26, #8
LBB0_21:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_bytestream2_get_le32
	ldr	x8, [x19, #8]
	str	x0, [x8, x26]
	add	x24, x24, #1
	ldr	w8, [sp, #12]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #2
	add	x26, x26, #24
	cmp	x24, w9, sxtw
	b.lt	LBB0_21
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #0
	mov	w26, #1
	b	LBB0_3
LBB0_23:
	cbz	w27, LBB0_27
; %bb.24:
	cbz	w25, LBB0_27
; %bb.25:
	cbz	w26, LBB0_29
LBB0_26:
	mov	w0, #0
	b	LBB0_28
LBB0_27:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_29:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.30:
	mov	x9, #0
	ldr	x10, [x19, #8]
	add	x10, x10, #16
	mov	w0, #0
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	stur	x9, [x10, #-8]
	ldr	x11, [x10], #24
	add	x9, x11, x9
	subs	x8, x8, #1
	b.ne	LBB0_31
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_hap_parse_decode_instructions
.subsections_via_symbols
