	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_strk
_parse_strk:                            ## @parse_strk
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_strk_SIZE@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_2
## %bb.1:
	addl	$8, %ecx
	cmpl	%r8d, %ecx
	jg	LBB0_2
## %bb.3:
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	32(%rdx), %rdi
	callq	_AV_RL32
	movq	%rax, %r15
	movl	%r15d, %eax
	movq	_UINT_MAX@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shrq	$2, %rcx
	decq	%rcx
	cmpq	%rcx, %rax
	jae	LBB0_4
## %bb.6:
	cmpl	%r15d, (%r12)
	jg	LBB0_9
## %bb.7:
	leal	1(%r15), %r13d
	leaq	8(%r12), %rdi
	movl	%r13d, %esi
	movl	$4, %edx
	callq	_av_reallocp_array
	testq	%rax, %rax
	je	LBB0_8
LBB0_28:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_5
LBB0_8:
	movslq	(%r12), %rdi
	movl	%r13d, %edx
	subl	%edi, %edx
	shlq	$5, %rdi
	addq	8(%r12), %rdi
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	%r13d, (%r12)
LBB0_9:
	leaq	48(%rbx), %rdi
	callq	_AV_RL32
	movq	8(%r12), %rcx
	movslq	%r15d, %r13
	shlq	$5, %r13
	movl	%eax, (%rcx,%r13)
	leaq	144(%rbx), %rdi
	callq	_AV_RL32
	movq	8(%r12), %rcx
	movl	%eax, 4(%rcx,%r13)
	leaq	160(%rbx), %rdi
	callq	_AV_RL32
	movq	8(%r12), %rcx
	movl	%eax, 8(%rcx,%r13)
	addq	$176, %rbx
	movq	%rbx, %rdi
	callq	_AV_RL32
	movq	%rax, %r8
	movq	8(%r12), %rsi
	movl	%r8d, 12(%rsi,%r13)
	movq	$0, 24(%rsi,%r13)
	movl	4(%rsi,%r13), %r9d
	testl	%r9d, %r9d
	jle	LBB0_14
## %bb.10:
	movq	_FF_SANE_NB_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	%edi, %r9d
	jg	LBB0_14
## %bb.11:
	movl	8(%rsi,%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.12:
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.13:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%edi
	cmpl	%r8d, %eax
	jge	LBB0_15
LBB0_14:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_5:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	cmpl	$0, (%rsi,%r13)
	jne	LBB0_18
## %bb.16:
	cmpl	$7, %r8d
	ja	LBB0_18
## %bb.17:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_5
LBB0_18:
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%r8d
	cltd
	idivl	%r9d
	cmpl	%eax, %ecx
	jle	LBB0_20
## %bb.19:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_2
LBB0_20:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_28
## %bb.21:
	movq	%rax, %rbx
	movl	%r15d, (%rax)
	movq	8(%r12), %rax
	movl	8(%rax,%r13), %ecx
	movq	%rbx, %rdi
	movl	$60, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	movl	16(%rbx), %eax
	movq	8(%r12), %rdx
	movl	%eax, 16(%rdx,%r13)
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%rbx), %rax
	movl	%ecx, 32(%rax)
	movq	$0, 24(%rax)
	movl	4(%rdx,%r13), %esi
	movl	%esi, (%rax)
	movl	8(%rdx,%r13), %edi
	movl	%edi, 4(%rax)
	movl	12(%rdx,%r13), %ecx
	movl	%ecx, 8(%rax)
	imull	%ecx, %esi
	imull	%esi, %edi
	movl	%edi, 12(%rax)
	movl	%esi, 16(%rax)
	cmpl	$0, (%rdx,%r13)
	je	LBB0_23
## %bb.22:
	movq	_AV_CODEC_ID_ADPCM_4XM@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_23:
	cmpl	$8, %ecx
	jne	LBB0_25
## %bb.24:
	movq	_AV_CODEC_ID_PCM_U8@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_25:
	movq	_AV_CODEC_ID_PCM_S16LE@GOTPCREL(%rip), %rcx
LBB0_26:
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	xorl	%eax, %eax
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_strk_SIZE,4,2                  ## @strk_SIZE
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"current_track too large\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FF_SANE_NB_CHANNELS,4,2        ## @FF_SANE_NB_CHANNELS
	.comm	_INT_MAX,4,2                    ## @INT_MAX
L_.str.1:                               ## @.str.1
	.asciz	"audio header invalid\n"

L_.str.2:                               ## @.str.2
	.asciz	"bits unspecified for non ADPCM\n"

	.comm	_INT64_MAX,4,2                  ## @INT64_MAX
L_.str.3:                               ## @.str.3
	.asciz	"Overflow during bit rate calculation %d * %d * %d\n"

	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_ADPCM_4XM,4,2      ## @AV_CODEC_ID_ADPCM_4XM
	.comm	_AV_CODEC_ID_PCM_U8,4,2         ## @AV_CODEC_ID_PCM_U8
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ## @AV_CODEC_ID_PCM_S16LE
	.no_dead_strip	_parse_strk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_strk
_parse_strk:                            ; @parse_strk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	add	w8, w3, #8
Lloh0:
	adrp	x9, _strk_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _strk_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w3
	ccmp	w8, w4, #0, eq
	b.gt	LBB0_14
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, x2, #32
	bl	_AV_RL32
	mov	x21, x0
Lloh3:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	lsr	x8, x8, #2
	sub	x8, x8, #1
	cmp	x8, w21, uxtw
	b.ls	LBB0_5
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, w21
	b.gt	LBB0_7
; %bb.3:
	add	w23, w21, #1
	add	x0, x20, #8
	mov	x1, x23
	mov	w2, #4
	bl	_av_reallocp_array
	cbz	x0, LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	b	_AVERROR
LBB0_5:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_13
LBB0_6:
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	add	x0, x8, x9, lsl #5
	sub	w8, w23, w9
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	str	w23, [x20]
LBB0_7:
	add	x0, x22, #48
	bl	_AV_RL32
	ldr	x8, [x20, #8]
	sbfiz	x23, x21, #5, #32
	str	w0, [x8, x23]
	add	x0, x22, #144
	bl	_AV_RL32
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	str	w0, [x8, #4]
	add	x0, x22, #160
	bl	_AV_RL32
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	str	w0, [x8, #8]
	add	x0, x22, #176
	bl	_AV_RL32
	ldr	x10, [x20, #8]
	add	x8, x10, x23
	str	w0, [x8, #12]
	str	xzr, [x8, #24]
	ldr	w8, [x8, #4]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:
Lloh14:
	adrp	x9, _FF_SANE_NB_CHANNELS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FF_SANE_NB_CHANNELS@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x9]
	cmp	w8, w12
	b.gt	LBB0_12
; %bb.9:
	sxtw	x11, w21
	add	x9, x10, x11, lsl #5
	ldr	w9, [x9, #8]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.10:
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.11:
Lloh17:
	adrp	x13, _INT_MAX@GOTPAGE
Lloh18:
	ldr	x13, [x13, _INT_MAX@GOTPAGEOFF]
Lloh19:
	ldr	w13, [x13]
	sdiv	w12, w13, w12
	cmp	w12, w0
	b.ge	LBB0_16
LBB0_12:
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.1@PAGE
Lloh24:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_av_log
LBB0_14:
Lloh25:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
LBB0_15:
	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
	add	sp, sp, #96
	ret
LBB0_16:
	lsl	x22, x11, #5
	ldr	w10, [x10, x22]
	cbnz	w10, LBB0_19
; %bb.17:
	cmp	w0, #7
	b.hi	LBB0_19
; %bb.18:
Lloh28:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x2, l_.str.2@PAGE
Lloh32:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_19:
Lloh33:
	adrp	x10, _INT64_MAX@GOTPAGE
Lloh34:
	ldr	x10, [x10, _INT64_MAX@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	sdiv	w10, w10, w0
	sdiv	w10, w10, w8
	cmp	w9, w10
	b.le	LBB0_21
; %bb.20:
Lloh36:
	adrp	x10, _AV_LOG_ERROR@GOTPAGE
Lloh37:
	ldr	x10, [x10, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x10]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	stp	x0, x8, [sp, #8]
	str	x9, [sp]
Lloh39:
	adrp	x2, l_.str.3@PAGE
Lloh40:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_21:
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_4
; %bb.22:
	mov	x19, x0
	str	w21, [x0]
	ldr	x8, [x20, #8]
	add	x8, x8, x22
	ldr	w3, [x8, #8]
	mov	w1, #60
	mov	w2, #1
	bl	_avpriv_set_pts_info
	ldr	w8, [x19, #16]
	ldr	x9, [x20, #8]
	add	x10, x9, x22
	str	w8, [x10, #16]
Lloh41:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x8]
	ldr	x8, [x19, #8]
	str	w9, [x8, #32]
	str	xzr, [x8, #24]
	ldp	w11, w9, [x10, #8]
	ldp	w10, w12, [x10]
	stp	w12, w11, [x8]
	mul	w12, w9, w12
	mul	w11, w12, w11
	stp	w9, w11, [x8, #8]
	str	w12, [x8, #16]
	cbz	w10, LBB0_24
; %bb.23:
	mov	w0, #0
Lloh44:
	adrp	x9, _AV_CODEC_ID_ADPCM_4XM@GOTPAGE
Lloh45:
	ldr	x9, [x9, _AV_CODEC_ID_ADPCM_4XM@GOTPAGEOFF]
	b	LBB0_27
LBB0_24:
	cmp	w9, #8
	b.ne	LBB0_26
; %bb.25:
	mov	w0, #0
Lloh46:
	adrp	x9, _AV_CODEC_ID_PCM_U8@GOTPAGE
Lloh47:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_U8@GOTPAGEOFF]
	b	LBB0_27
LBB0_26:
	mov	w0, #0
Lloh48:
	adrp	x9, _AV_CODEC_ID_PCM_S16LE@GOTPAGE
Lloh49:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_S16LE@GOTPAGEOFF]
LBB0_27:
	ldr	w9, [x9]
	str	w9, [x8, #20]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_strk_SIZE,4,2                  ; @strk_SIZE
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"current_track too large\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FF_SANE_NB_CHANNELS,4,2        ; @FF_SANE_NB_CHANNELS
	.comm	_INT_MAX,4,2                    ; @INT_MAX
l_.str.1:                               ; @.str.1
	.asciz	"audio header invalid\n"

l_.str.2:                               ; @.str.2
	.asciz	"bits unspecified for non ADPCM\n"

	.comm	_INT64_MAX,4,2                  ; @INT64_MAX
l_.str.3:                               ; @.str.3
	.asciz	"Overflow during bit rate calculation %d * %d * %d\n"

	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_ADPCM_4XM,4,2      ; @AV_CODEC_ID_ADPCM_4XM
	.comm	_AV_CODEC_ID_PCM_U8,4,2         ; @AV_CODEC_ID_PCM_U8
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ; @AV_CODEC_ID_PCM_S16LE
	.no_dead_strip	_parse_strk
.subsections_via_symbols
