	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unpack_block_qpis
_unpack_block_qpis:                     ## @unpack_block_qpis
	.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
	xorl	%eax, %eax
	cmpl	$2, 4(%rdi)
	jl	LBB0_20
## %bb.1:
	movq	%rdi, %r12
	movl	(%rdi), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_20
## %bb.2:
	xorl	%r13d, %r13d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_11 Depth 3
	movq	%rsi, %rdi
	callq	_get_bits1
	movl	%eax, %ecx
	xorl	$1, %ecx
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_11 Depth 3
	movq	_MAXIMUM_LONG_BIT_RUN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_get_bits1
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorl	$1, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	24(%r12), %esi
	movq	%rbx, %rdi
	movl	$6, %edx
	movl	$2, %ecx
	callq	_get_vlc2
	movl	%eax, %ebx
	incl	%ebx
	cmpl	$34, %ebx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$12, %esi
	callq	_get_bits
	movq	%rax, %rbx
	addl	$34, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	testl	%edx, %edx
	movl	$0, %r8d
	cmovel	%ebx, %r8d
	testl	%ebx, %ebx
	jle	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r12), %eax
	movslq	%r14d, %r14
	cmpl	%eax, %r14d
	cmovgl	%r14d, %eax
	movslq	%eax, %rcx
	addl	%r13d, %edx
	xorl	%esi, %esi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=3
	incq	%r14
	cmpl	%ebx, %esi
	jge	LBB0_16
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%r14, %rcx
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=3
	movq	8(%r12), %rax
	movq	16(%r12), %rdi
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	cmpl	%r13d, (%rdi,%rax,4)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=3
	movl	%edx, (%rdi,%rax,4)
	incl	%esi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=2
	addl	%ebx, %r15d
	addl	%r8d, -60(%rbp)                 ## 4-byte Folded Spill
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_bits_left
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	jg	LBB0_4
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	movl	4(%r12), %ecx
	decl	%ecx
	xorl	%eax, %eax
	cmpl	%ecx, %r13d
	jge	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	subl	-60(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jg	LBB0_3
	jmp	LBB0_20
LBB0_12:
	movl	$-1, %eax
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXIMUM_LONG_BIT_RUN,4,2       ## @MAXIMUM_LONG_BIT_RUN
	.no_dead_strip	_unpack_block_qpis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unpack_block_qpis
_unpack_block_qpis:                     ; @unpack_block_qpis
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldp	w22, w8, [x0]
	cmp	w8, #2
	ccmp	w22, #1, #8, ge
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_21
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	mov	w23, #0
Lloh0:
	adrp	x24, _MAXIMUM_LONG_BIT_RUN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAXIMUM_LONG_BIT_RUN@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	mov	x0, x19
	bl	_get_bits1
	mov	w28, #0
	mov	w27, #0
	mov	w26, #0
	mov	w25, #0
	eor	w21, w0, #0x1
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	w8, [x24]
	cmp	w27, w8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x19
	bl	_get_bits1
	mov	x21, x0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=2
	eor	w21, w21, #0x1
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w1, [x20, #24]
	mov	x0, x19
	mov	w2, #6
	mov	w3, #2
	bl	_get_vlc2
	add	w27, w0, #1
	cmp	w27, #34
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x19
	mov	w1, #12
	bl	_get_bits
	add	w27, w0, #34
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=2
	cmp	w21, #0
	csel	w8, w27, wzr, eq
	cmp	w27, #1
	b.lt	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=2
	mov	w9, #0
	ldr	w11, [x20]
	sxtw	x10, w28
	cmp	w28, w11
	csel	w11, w28, w11, gt
	sxtw	x11, w11
	add	w12, w23, w21
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=3
	add	x10, x10, #1
	cmp	w9, w27
	b.ge	LBB0_15
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	x11, x10
	b.eq	LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	ldp	x14, x13, [x20, #8]
	ldr	x14, [x14]
	ldr	x14, [x14, x10, lsl #3]
	ldr	w15, [x13, x14, lsl #2]
	cmp	w15, w23
	b.ne	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=3
	str	w12, [x13, x14, lsl #2]
	add	w9, w9, #1
	b	LBB0_11
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x28, x10
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=2
	add	w25, w8, w25
	add	w26, w27, w26
	cmp	w26, w22
	b.ge	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x19
	bl	_get_bits_left
	cmp	x0, #0
	b.gt	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	add	w23, w23, #1
	ldr	w8, [x20, #4]
	sub	w8, w8, #1
	cmp	w23, w8
	b.ge	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	w22, w22, w25
	cmp	w22, #0
	b.gt	LBB0_3
	b	LBB0_21
LBB0_20:
	mov	w0, #-1
LBB0_21:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXIMUM_LONG_BIT_RUN,4,2       ; @MAXIMUM_LONG_BIT_RUN
	.no_dead_strip	_unpack_block_qpis
.subsections_via_symbols
