	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function floor1_unpack
_floor1_unpack:                         ## @floor1_unpack
	.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	%rsi, %r14
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movl	$64, %esi
	callq	__ogg_calloc
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_oggpack_read
	movl	%eax, (%r15)
	testl	%eax, %eax
	jle	LBB0_18
## %bb.1:
	movl	$-1, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %r12d
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_oggpack_read
	movq	%rax, %r13
	movq	8(%r15), %rax
	movl	%r13d, (%rax,%rbx,4)
	cmpl	%r13d, %r12d
	cmovgl	%r12d, %r13d
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.3:
	testl	%r13d, %r13d
	js	LBB0_18
## %bb.4:
	incl	%r13d
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%r13, %rbx
	je	LBB0_18
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_oggpack_read
	incq	%rax
	movq	48(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_oggpack_read
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	js	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_oggpack_read
	movq	24(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	testq	%rax, %rax
	jns	LBB0_10
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	testq	%rax, %rax
	js	LBB0_16
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	jge	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r15), %rax
	cmpl	$31, (%rax,%rbx,4)
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_oggpack_read
	decq	%rax
	movq	32(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, (%rcx,%r12,4)
	cmpl	$-1, %eax
	jl	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	cltq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	jge	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	16(%r15), %rax
	movzbl	(%rax,%rbx,4), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	incq	%r12
	cltq
	cmpq	%rax, %r12
	jl	LBB0_14
	jmp	LBB0_17
LBB0_18:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_oggpack_read
	incq	%rax
	movq	%rax, 56(%r15)
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_oggpack_read
	movq	%rax, %rsi
	movl	(%r15), %r8d
	movl	$1, %edx
	testl	%r8d, %r8d
	jle	LBB0_19
## %bb.20:
	movl	%esi, %ecx
	shll	%cl, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	xorl	%edi, %edi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%rcx
	movslq	%r8d, %rbx
	movq	%rax, %rdi
	cmpq	%rbx, %rcx
	jge	LBB0_28
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
	movq	8(%r15), %rbx
	movq	48(%r15), %rax
	movslq	(%rbx,%rcx,4), %rbx
	movq	(%rax,%rbx,8), %r13
	movslq	%edi, %rax
	addq	%r13, %rax
	cmpl	%eax, %r9d
	jge	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movslq	%r9d, %r12
	addq	$2, %r12
	addl	%edi, %r13d
	subl	%r9d, %r13d
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%rsi, %rbx
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, %r15
	movl	%edx, %r14d
	callq	_oggpack_read
	movl	%r14d, %edx
	movq	%r15, %r14
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	40(%r15), %rcx
	movl	%eax, (%rcx,%r12,4)
	testl	%eax, %eax
	js	LBB0_16
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	cmpl	%eax, %edx
	jle	LBB0_16
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=2
	incq	%r12
	decl	%r13d
	movq	%rbx, %rsi
	jne	LBB0_23
## %bb.26:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	(%r15), %r8d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r9d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_27
LBB0_16:
	movq	%r15, %rdi
	callq	_floor1_free_info
	xorl	%r15d, %r15d
	jmp	LBB0_29
LBB0_19:
	movl	%esi, %ecx
	shll	%cl, %edx
LBB0_28:
	movq	40(%r15), %rax
	movl	$0, (%rax)
	movl	%edx, 4(%rax)
LBB0_29:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_floor1_unpack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function floor1_unpack
_floor1_unpack:                         ; @floor1_unpack
	.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	x20, x1
	ldr	x21, [x0]
	mov	w0, #1
	mov	w1, #64
	bl	__ogg_calloc
	mov	x19, x0
	mov	x0, x20
	mov	w1, #5
	bl	_oggpack_read
	str	w0, [x19]
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x22, #0
	mov	w23, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #4
	bl	_oggpack_read
	ldr	x8, [x19, #8]
	str	w0, [x8, x22, lsl #2]
	cmp	w23, w0
	csel	w23, w23, w0, gt
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_2
; %bb.3:
	tbnz	w23, #31, LBB0_16
; %bb.4:
	mov	x22, #0
	add	w23, w23, #1
	mov	w24, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	cmp	x22, x23
	b.eq	LBB0_16
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x0, x20
	mov	w1, #3
	bl	_oggpack_read
	add	x8, x0, #1
	ldr	x9, [x19, #48]
	str	x8, [x9, x22, lsl #3]
	mov	x0, x20
	mov	w1, #2
	bl	_oggpack_read
	ldr	x8, [x19, #16]
	str	w0, [x8, x22, lsl #2]
	tbnz	w0, #31, LBB0_25
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_oggpack_read
	ldr	x8, [x19, #24]
	str	x0, [x8, x22, lsl #3]
	tbz	x0, #63, LBB0_10
	b	LBB0_25
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x22, lsl #3]
	tbnz	x0, #63, LBB0_25
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21]
	cmp	x0, x8
	b.ge	LBB0_25
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x22, lsl #2]
	cmp	w8, #31
	b.eq	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, #0
LBB0_13:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	w1, #8
	bl	_oggpack_read
	sub	x8, x0, #1
	ldr	x9, [x19, #32]
	ldr	x9, [x9, x22, lsl #3]
	str	w8, [x9, x25, lsl #2]
	cmn	w8, #1
	b.lt	LBB0_25
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x9, [x21]
	cmp	x9, w8, sxtw
	b.le	LBB0_25
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x25, x25, #1
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x22, lsl #2]
	lsl	w8, w24, w8
	cmp	x25, w8, sxtw
	b.lt	LBB0_13
	b	LBB0_5
LBB0_16:
	mov	x0, x20
	mov	w1, #2
	bl	_oggpack_read
	add	x8, x0, #1
	str	x8, [x19, #56]
	mov	x0, x20
	mov	w1, #4
	bl	_oggpack_read
	mov	x21, x0
	ldr	w9, [x19]
	cmp	w9, #0
	b.le	LBB0_26
; %bb.17:
	mov	x23, #0
	mov	w8, #0
	mov	x10, #0
	mov	w11, #1
	lsl	w22, w11, w21
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x23, x23, #1
	cmp	x23, w9, sxtw
	mov	x10, x24
	b.ge	LBB0_27
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	ldr	x11, [x19, #48]
	ldr	x12, [x19, #8]
	ldrsw	x12, [x12, x23, lsl #2]
	ldr	x11, [x11, x12, lsl #3]
	add	x24, x11, w10, sxtw
	cmp	w8, w24
	b.ge	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	sbfiz	x9, x8, #2, #32
	add	x25, x9, #8
	add	w9, w10, w11
	sub	w26, w9, w8
LBB0_21:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x21
	bl	_oggpack_read
	ldr	x8, [x19, #40]
	str	w0, [x8, x25]
	tbnz	w0, #31, LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	cmp	w22, w0
	b.le	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=2
	add	x25, x25, #4
	subs	w26, w26, #1
	b.ne	LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w9, [x19]
	mov	x8, x24
	b	LBB0_18
LBB0_25:
	mov	x0, x19
	bl	_floor1_free_info
	mov	x19, #0
	b	LBB0_28
LBB0_26:
	mov	w8, #1
	lsl	w22, w8, w21
LBB0_27:
	ldr	x8, [x19, #40]
	stp	wzr, w22, [x8]
LBB0_28:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_floor1_unpack
.subsections_via_symbols
