	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _ov_getlap
__ov_getlap:                            ## @_ov_getlap
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	testl	%r8d, %r8d
	setg	%r14b
	movq	%rcx, %rbx
	jle	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	__fetch_and_process_packet
	movq	_OV_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r13d, -48(%rbp)                ## 4-byte Folded Reload
	setl	%r14b
	jge	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	-56(%rbp), %rsi
	callq	_vorbis_synthesis_pcmout
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %ecx
	subl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r15)
	movq	%r15, %r12
	movq	%rbx, %r15
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	-48(%rbp), %r13                 ## 4-byte Folded Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(,%r13,4), %rdi
	addq	(%r15,%rbx,8), %rdi
	movq	-56(%rbp), %rax
	movq	(%rax,%rbx,8), %rsi
	movl	%r14d, %edx
	callq	_memcpy
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	addl	%esi, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_vorbis_synthesis_read
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movq	%r15, %rbx
	movq	%r12, %r15
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_10:
	testb	$1, %r14b
	je	LBB0_18
## %bb.11:
	movq	%rbx, %r12
	leaq	-56(%rbp), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_vorbis_synthesis_lapout
	movl	(%r15), %ecx
	testl	%eax, %eax
	je	LBB0_12
## %bb.15:
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.16:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	subl	%ecx, %r13d
	cmpl	%r13d, %eax
	cmovll	%eax, %r13d
	movslq	%ecx, %r14
	shll	$2, %r13d
	xorl	%ebx, %ebx
	shlq	$2, %r14
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rdi
	addq	%r14, %rdi
	movq	-56(%rbp), %rax
	movq	(%rax,%rbx,8), %rsi
	movl	%r13d, %edx
	callq	_memcpy
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_17
	jmp	LBB0_18
LBB0_12:
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	%eax, %r14
	shll	$2, %r13d
	subl	%eax, %r13d
	xorl	%ebx, %ebx
	shlq	$2, %r14
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rdi
	addq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV_EOF,4,2                     ## @OV_EOF
	.no_dead_strip	__ov_getlap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _ov_getlap
__ov_getlap:                            ; @_ov_getlap
	.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
	mov	x21, x4
	mov	x19, x3
	mov	x20, x1
	mov	x22, x0
	cmp	w4, #0
	cset	w24, gt
	cmp	w4, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x23, x2
	mov	w26, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, #0
	mov	w2, #1
	mov	w3, #0
	bl	__fetch_and_process_packet
Lloh0:
	adrp	x8, _OV_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OV_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, w21
	cset	w24, lt
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	add	x1, sp, #8
	mov	x0, x23
	bl	_vorbis_synthesis_pcmout
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w21, w26
	cmp	w0, w8
	csel	w24, w0, w8, lt
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
	sxtw	x27, w26
	lsl	w25, w24, #2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x8, x28, #3
	ldr	x9, [x19, x8]
	add	x0, x9, x27, lsl #2
	ldr	x9, [sp, #8]
	ldr	x1, [x9, x8]
	mov	x2, x25
	bl	_memcpy
	add	x28, x28, #1
	ldrsw	x8, [x20]
	cmp	x28, x8
	b.lt	LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w26, w24, w26
	mov	x0, x23
	mov	x1, x24
	bl	_vorbis_synthesis_read
	b	LBB0_3
LBB0_9:
	mov	w26, #0
LBB0_10:
	tbz	w24, #0, LBB0_18
; %bb.11:
	add	x1, sp, #8
	mov	x0, x22
	bl	_vorbis_synthesis_lapout
	ldr	w8, [x20]
	cmp	w8, #1
	cbz	w0, LBB0_15
; %bb.12:
	b.lt	LBB0_18
; %bb.13:
	mov	x22, #0
	sub	w8, w21, w26
	cmp	w0, w8
	csel	w8, w0, w8, lt
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	sxtw	x23, w26
	lsl	w21, w8, #2
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	lsl	x8, x22, #3
	ldr	x9, [x19, x8]
	add	x0, x9, x23, lsl #2
	ldr	x9, [sp, #8]
	ldr	x1, [x9, x8]
	mov	x2, x21
	bl	_memcpy
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.lt	LBB0_14
	b	LBB0_18
LBB0_15:
	b.lt	LBB0_18
; %bb.16:
	mov	x22, #0
	mov	x8, x26
	sxtw	x23, w8
	lsl	w8, w21, #2
	sub	w21, w8, w26
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, x22, lsl #3]
	add	x0, x8, x23, lsl #2
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.lt	LBB0_17
LBB0_18:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OV_EOF,4,2                     ; @OV_EOF
	.no_dead_strip	__ov_getlap
.subsections_via_symbols
