	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function modplug_read_packet
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_modplug_read_packet:                   ## @modplug_read_packet
	.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
	movq	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	cmpq	$0, 48(%r15)
	je	LBB0_15
## %bb.1:
	xorl	$1, (%r15)
	je	LBB0_15
## %bb.2:
	movq	%rsp, %rbx
	movq	_VAR_VARS_NB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movsd	8(%r15), %xmm0                  ## xmm0 = mem[0],zero
	movq	_VAR_W@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movsd	%xmm0, (%r14,%rax,8)
	movsd	16(%r15), %xmm0                 ## xmm0 = mem[0],zero
	movq	_VAR_H@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movsd	%xmm0, (%r14,%rax,8)
	movsd	24(%r15), %xmm0                 ## xmm0 = mem[0],zero
	mulsd	32(%r15), %xmm0
	movq	_VAR_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movsd	%xmm0, (%r14,%rax,8)
	movl	44(%r15), %edi
	callq	_ModPlug_GetCurrentSpeed
	movq	_VAR_SPEED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movsd	%xmm0, (%r14,%rax,8)
	movl	44(%r15), %edi
	callq	_ModPlug_GetCurrentTempo
	movq	_VAR_TEMPO@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movsd	%xmm0, (%r14,%rax,8)
	movl	44(%r15), %edi
	callq	_ModPlug_GetCurrentOrder
	movq	_VAR_ORDER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movsd	%xmm0, (%r14,%rax,8)
	movl	44(%r15), %edi
	callq	_ModPlug_GetCurrentPattern
	movq	_VAR_PATTERN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movsd	%xmm0, (%r14,%rax,8)
	movl	44(%r15), %edi
	callq	_ModPlug_GetCurrentRow
	movq	_VAR_ROW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movsd	%xmm0, (%r14,%rax,8)
	movl	72(%r15), %esi
	movq	%r13, %rdi
	callq	_av_new_packet
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movl	$1, (%r13)
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rdi
	movl	72(%r15), %edx
	xorl	%esi, %esi
	callq	_memset
	cmpq	$0, 64(%r15)
	je	LBB0_6
## %bb.5:
	movq	_VAR_SPEED@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	callq	_PRINT_INFO
	movq	(%r12), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_PRINT_INFO
	movq	_VAR_ORDER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	callq	_PRINT_INFO
	movq	_VAR_PATTERN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.3(%rip), %rsi
	movl	$3, %edi
	callq	_PRINT_INFO
	movq	_VAR_ROW@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.4(%rip), %rsi
	movl	$4, %edi
	callq	_PRINT_INFO
	movq	_VAR_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.5(%rip), %rsi
	movl	$5, %edi
	callq	_PRINT_INFO
LBB0_6:
	cmpq	$0, 56(%r15)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_14
## %bb.7:
	movsd	16(%r15), %xmm1                 ## xmm1 = mem[0],zero
	xorpd	%xmm2, %xmm2
	ucomisd	%xmm2, %xmm1
	jbe	LBB0_14
## %bb.8:
	movsd	8(%r15), %xmm0                  ## xmm0 = mem[0],zero
	xorl	%edi, %edi
	movq	_VAR_X@GOTPCREL(%rip), %r13
	movq	_VAR_Y@GOTPCREL(%rip), %rcx
	xorpd	%xmm3, %xmm3
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%edi
	xorps	%xmm3, %xmm3
	cvtsi2sd	%edi, %xmm3
	ucomisd	%xmm3, %xmm1
	jbe	LBB0_14
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	ucomisd	%xmm2, %xmm0
	jbe	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorpd	%xmm1, %xmm1
	movl	$2, %r12d
	movl	$1, %r14d
	movsd	%xmm3, -88(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rax
	movsd	%xmm1, (%rsi,%rax,8)
	movq	(%rcx), %rax
	movsd	%xmm3, (%rsi,%rax,8)
	movq	%rdi, %rbx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	56(%r15), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_av_expr_eval
	cvttsd2si	%xmm0, %edi
	xorl	%esi, %esi
	movl	$15, %edx
	callq	_av_clip
	movsd	-88(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	shll	$4, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	40(%r15), %edx
	imull	%edi, %edx
	addl	%r12d, %edx
	movslq	%edx, %rdx
	orl	%eax, (%rcx,%rdx,4)
	movq	_VAR_Y@GOTPCREL(%rip), %rcx
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r14d, %xmm1
	movsd	8(%r15), %xmm0                  ## xmm0 = mem[0],zero
	addl	$3, %r12d
	incl	%r14d
	ucomisd	%xmm1, %xmm0
	ja	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movsd	16(%r15), %xmm1                 ## xmm1 = mem[0],zero
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	xorpd	%xmm2, %xmm2
	jmp	LBB0_13
LBB0_15:
	movq	_AUDIO_PKT_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_av_new_packet
	testq	%rax, %rax
	js	LBB0_16
## %bb.19:
	cmpq	$0, 48(%r15)
	je	LBB0_21
## %bb.20:
	movsd	24(%r15), %xmm0                 ## xmm0 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	%xmm1, 24(%r15)
	mulsd	32(%r15), %xmm0
	movsd	%xmm0, 24(%r13)
	movsd	%xmm0, 16(%r13)
LBB0_21:
	movl	44(%r15), %edi
	movq	8(%r13), %rsi
	movl	(%rbx), %edx
	callq	_ModPlug_Read
	movq	%rax, %rcx
	movq	%rax, 32(%r13)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jg	LBB0_24
## %bb.22:
	movq	%r13, %rdi
	callq	_av_packet_unref
	cmpq	$0, 32(%r13)
	je	LBB0_23
## %bb.26:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movq	_VAR_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movddup	(%rsi,%rax,8), %xmm0            ## xmm0 = mem[0,0]
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movupd	%xmm0, 16(%rcx)
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%rcx)
	xorl	%eax, %eax
	movq	%rbx, %rsp
	jmp	LBB0_24
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movq	%rbx, %rsp
	jmp	LBB0_24
LBB0_23:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_27
## %bb.25:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VAR_VARS_NB,4,2                ## @VAR_VARS_NB
	.comm	_VAR_W,8,3                      ## @VAR_W
	.comm	_VAR_H,8,3                      ## @VAR_H
	.comm	_VAR_TIME,8,3                   ## @VAR_TIME
	.comm	_VAR_SPEED,8,3                  ## @VAR_SPEED
	.comm	_VAR_TEMPO,8,3                  ## @VAR_TEMPO
	.comm	_VAR_ORDER,8,3                  ## @VAR_ORDER
	.comm	_VAR_PATTERN,8,3                ## @VAR_PATTERN
	.comm	_VAR_ROW,8,3                    ## @VAR_ROW
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"speed"

L_.str.1:                               ## @.str.1
	.asciz	"tempo"

L_.str.2:                               ## @.str.2
	.asciz	"order"

L_.str.3:                               ## @.str.3
	.asciz	"pattern"

L_.str.4:                               ## @.str.4
	.asciz	"row"

L_.str.5:                               ## @.str.5
	.asciz	"ts"

	.comm	_VAR_X,8,3                      ## @VAR_X
	.comm	_VAR_Y,8,3                      ## @VAR_Y
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_AUDIO_PKT_SIZE,4,2             ## @AUDIO_PKT_SIZE
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_modplug_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function modplug_read_packet
_modplug_read_packet:                   ; @modplug_read_packet
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
	ldr	x21, [x0]
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_13
; %bb.1:
	ldr	w8, [x21]
	eor	w8, w8, #0x1
	str	w8, [x21]
	cbz	w8, LBB0_13
; %bb.2:
	mov	x22, sp
Lloh3:
	adrp	x8, _VAR_VARS_NB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VAR_VARS_NB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	d0, [x21, #8]
Lloh8:
	adrp	x8, _VAR_W@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VAR_W@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	d0, [x20, x8, lsl #3]
	ldr	d0, [x21, #16]
Lloh11:
	adrp	x8, _VAR_H@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VAR_H@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	d0, [x20, x8, lsl #3]
	ldp	d0, d1, [x21, #24]
	fmul	d0, d0, d1
Lloh14:
	adrp	x23, _VAR_TIME@GOTPAGE
Lloh15:
	ldr	x23, [x23, _VAR_TIME@GOTPAGEOFF]
	ldr	x8, [x23]
	str	d0, [x20, x8, lsl #3]
	ldr	w0, [x21, #44]
	bl	_ModPlug_GetCurrentSpeed
Lloh16:
	adrp	x24, _VAR_SPEED@GOTPAGE
Lloh17:
	ldr	x24, [x24, _VAR_SPEED@GOTPAGEOFF]
	ldr	x8, [x24]
	str	d0, [x20, x8, lsl #3]
	ldr	w0, [x21, #44]
	bl	_ModPlug_GetCurrentTempo
Lloh18:
	adrp	x25, _VAR_TEMPO@GOTPAGE
Lloh19:
	ldr	x25, [x25, _VAR_TEMPO@GOTPAGEOFF]
	ldr	x8, [x25]
	str	d0, [x20, x8, lsl #3]
	ldr	w0, [x21, #44]
	bl	_ModPlug_GetCurrentOrder
Lloh20:
	adrp	x26, _VAR_ORDER@GOTPAGE
Lloh21:
	ldr	x26, [x26, _VAR_ORDER@GOTPAGEOFF]
	ldr	x8, [x26]
	str	d0, [x20, x8, lsl #3]
	ldr	w0, [x21, #44]
	bl	_ModPlug_GetCurrentPattern
Lloh22:
	adrp	x27, _VAR_PATTERN@GOTPAGE
Lloh23:
	ldr	x27, [x27, _VAR_PATTERN@GOTPAGEOFF]
	ldr	x8, [x27]
	str	d0, [x20, x8, lsl #3]
	ldr	w0, [x21, #44]
	bl	_ModPlug_GetCurrentRow
Lloh24:
	adrp	x28, _VAR_ROW@GOTPAGE
Lloh25:
	ldr	x28, [x28, _VAR_ROW@GOTPAGEOFF]
	ldr	x8, [x28]
	str	d0, [x20, x8, lsl #3]
	ldr	w1, [x21, #72]
	mov	x0, x19
	bl	_av_new_packet
	tbnz	x0, #63, LBB0_20
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
	ldr	x0, [x19, #8]
	ldr	w2, [x21, #72]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x2, [x24]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_PRINT_INFO
	ldr	x2, [x25]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_PRINT_INFO
	ldr	x2, [x26]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	bl	_PRINT_INFO
	ldr	x2, [x27]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #3
	bl	_PRINT_INFO
	ldr	x2, [x28]
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #4
	bl	_PRINT_INFO
	ldr	x2, [x23]
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #5
	bl	_PRINT_INFO
LBB0_5:
	ldr	x8, [x21, #56]
	cbz	x8, LBB0_18
; %bb.6:
	ldr	d1, [x21, #16]
	fcmp	d1, #0.0
	b.le	LBB0_18
; %bb.7:
	mov	w24, #0
	ldr	d0, [x21, #8]
	movi	d8, #0000000000000000
Lloh38:
	adrp	x25, _VAR_X@GOTPAGE
Lloh39:
	ldr	x25, [x25, _VAR_X@GOTPAGEOFF]
Lloh40:
	adrp	x26, _VAR_Y@GOTPAGE
Lloh41:
	ldr	x26, [x26, _VAR_Y@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w24, w24, #1
	scvtf	d8, w24
	fcmp	d1, d8
	b.le	LBB0_18
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	fcmp	d0, #0.0
	b.le	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	movi	d1, #0000000000000000
	mov	w27, #2
	mov	w28, #1
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25]
	str	d1, [x20, x8, lsl #3]
	ldr	x8, [x26]
	str	d8, [x20, x8, lsl #3]
	ldr	x0, [x21, #56]
	mov	x1, x20
	mov	x2, #0
	bl	_av_expr_eval
	fcvtzs	w0, d0
	mov	w1, #0
	mov	w2, #15
	bl	_av_clip
	ldr	x8, [x19, #8]
	ldr	w9, [x21, #40]
	madd	w9, w24, w9, w27
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x8, x9]
	orr	w10, w10, w0, lsl #4
	str	w10, [x8, x9]
	scvtf	d1, w28
	ldr	d0, [x21, #8]
	add	w27, w27, #3
	add	w28, w28, #1
	fcmp	d0, d1
	b.gt	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	d1, [x21, #16]
	b	LBB0_8
LBB0_13:
Lloh42:
	adrp	x20, _AUDIO_PKT_SIZE@GOTPAGE
Lloh43:
	ldr	x20, [x20, _AUDIO_PKT_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_av_new_packet
	tbnz	x0, #63, LBB0_19
; %bb.14:
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_16
; %bb.15:
	fmov	d0, #1.00000000
	ldp	d1, d2, [x21, #24]
	fadd	d0, d1, d0
	str	d0, [x21, #24]
	fmul	d0, d1, d2
	stp	d0, d0, [x19, #16]
LBB0_16:
	ldr	w0, [x21, #44]
	ldr	x1, [x19, #8]
	ldr	w2, [x20]
	bl	_ModPlug_Read
	str	x0, [x19, #32]
	cmp	x0, #0
	b.le	LBB0_21
; %bb.17:
	mov	w0, #0
	b	LBB0_26
LBB0_18:
	ldr	x8, [x23]
	ldr	d0, [x20, x8, lsl #3]
	str	d0, [x19, #24]
	str	d0, [x19, #16]
Lloh44:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	orr	w8, w9, w8
	str	w8, [x19, #40]
	mov	sp, x22
	mov	w0, #0
	b	LBB0_26
LBB0_19:
Lloh47:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_23
LBB0_20:
Lloh49:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	sp, x22
	b	LBB0_26
LBB0_21:
	mov	x0, x19
	bl	_av_packet_unref
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_25
; %bb.22:
Lloh52:
	adrp	x8, _EIO@GOTPAGE
Lloh53:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x8]
	ldur	x8, [x29, #-104]
Lloh54:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh55:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.24:
	sub	sp, x29, #96
	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
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	b	_AVERROR
LBB0_25:
Lloh57:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
LBB0_26:
	ldur	x8, [x29, #-104]
Lloh60:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh61:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	sub	sp, x29, #96
	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
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_VAR_VARS_NB,4,2                ; @VAR_VARS_NB
	.comm	_VAR_W,8,3                      ; @VAR_W
	.comm	_VAR_H,8,3                      ; @VAR_H
	.comm	_VAR_TIME,8,3                   ; @VAR_TIME
	.comm	_VAR_SPEED,8,3                  ; @VAR_SPEED
	.comm	_VAR_TEMPO,8,3                  ; @VAR_TEMPO
	.comm	_VAR_ORDER,8,3                  ; @VAR_ORDER
	.comm	_VAR_PATTERN,8,3                ; @VAR_PATTERN
	.comm	_VAR_ROW,8,3                    ; @VAR_ROW
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"speed"

l_.str.1:                               ; @.str.1
	.asciz	"tempo"

l_.str.2:                               ; @.str.2
	.asciz	"order"

l_.str.3:                               ; @.str.3
	.asciz	"pattern"

l_.str.4:                               ; @.str.4
	.asciz	"row"

l_.str.5:                               ; @.str.5
	.asciz	"ts"

	.comm	_VAR_X,8,3                      ; @VAR_X
	.comm	_VAR_Y,8,3                      ; @VAR_Y
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_AUDIO_PKT_SIZE,4,2             ; @AUDIO_PKT_SIZE
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_modplug_read_packet
.subsections_via_symbols
