	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stream_component_close
_stream_component_close:                ## @stream_component_close
	.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
	testl	%esi, %esi
	js	LBB0_17
## %bb.1:
	movq	%rdi, %rbx
	movq	112(%rdi), %r15
	cmpl	%esi, (%r15)
	jle	LBB0_17
## %bb.2:
	movq	8(%r15), %rax
	movl	%esi, %r12d
	movq	(%rax,%r12,8), %rcx
	movq	8(%rcx), %r13
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.5:
	leaq	100(%rbx), %r14
	leaq	104(%rbx), %rsi
	movq	%r14, %rdi
	callq	_decoder_abort
	movq	_audio_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_CloseAudioDevice
	movq	%r14, %rdi
	callq	_decoder_destroy
	leaq	96(%rbx), %rdi
	callq	_swr_free
	leaq	92(%rbx), %rdi
	callq	_av_freep
	movl	$0, 88(%rbx)
	movq	$0, 80(%rbx)
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.6:
	callq	_av_rdft_end
	leaq	72(%rbx), %rdi
	callq	_av_freep
	movq	$0, 64(%rbx)
	movl	$0, 56(%rbx)
	jmp	LBB0_10
LBB0_7:
	leaq	48(%rbx), %r14
	leaq	52(%rbx), %rsi
	jmp	LBB0_9
LBB0_8:
	leaq	40(%rbx), %r14
	leaq	44(%rbx), %rsi
LBB0_9:
	movq	%r14, %rdi
	callq	_decoder_abort
	movq	%r14, %rdi
	callq	_decoder_destroy
LBB0_10:
	movl	(%r13), %eax
	movq	8(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
LBB0_11:
	movq	_AVDISCARD_ALL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rcx)
	cmpl	$128, %eax
	je	LBB0_15
## %bb.12:
	cmpl	$129, %eax
	je	LBB0_16
## %bb.13:
	cmpl	$130, %eax
	jne	LBB0_17
## %bb.14:
	movq	$0, 32(%rbx)
	movl	$-1, (%rbx)
	jmp	LBB0_17
LBB0_15:
	movq	$0, 24(%rbx)
	movl	$-1, 4(%rbx)
	jmp	LBB0_17
LBB0_16:
	movq	$0, 16(%rbx)
	movl	$-1, 8(%rbx)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_dev,4,2                  ## @audio_dev
	.comm	_AVDISCARD_ALL,4,2              ## @AVDISCARD_ALL
	.no_dead_strip	_stream_component_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stream_component_close
_stream_component_close:                ; @stream_component_close
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	tbnz	w1, #31, LBB0_17
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #112]
	ldr	w8, [x22]
	cmp	w8, w1
	b.le	LBB0_17
; %bb.2:
	ldr	x8, [x22, #8]
	ldr	x9, [x8, w20, uxtw #3]
	ldr	x23, [x9, #8]
	ldr	w8, [x23]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.4:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.5:
	add	x21, x19, #100
	add	x1, x19, #104
	mov	x0, x21
	bl	_decoder_abort
Lloh0:
	adrp	x8, _audio_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _audio_dev@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SDL_CloseAudioDevice
	mov	x0, x21
	bl	_decoder_destroy
	add	x0, x19, #96
	bl	_swr_free
	add	x0, x19, #92
	bl	_av_freep
	str	wzr, [x19, #88]
	str	xzr, [x19, #80]
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_10
; %bb.6:
	bl	_av_rdft_end
	add	x0, x19, #72
	bl	_av_freep
	str	xzr, [x19, #64]
	str	wzr, [x19, #56]
	b	LBB0_10
LBB0_7:
	add	x21, x19, #48
	add	x1, x19, #52
	b	LBB0_9
LBB0_8:
	add	x21, x19, #40
	add	x1, x19, #44
LBB0_9:
	mov	x0, x21
	bl	_decoder_abort
	mov	x0, x21
	bl	_decoder_destroy
LBB0_10:
	mov	w9, w20
	ldr	w8, [x23]
	ldr	x10, [x22, #8]
	ldr	x9, [x10, x9, lsl #3]
LBB0_11:
Lloh3:
	adrp	x10, _AVDISCARD_ALL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AVDISCARD_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	str	w10, [x9]
	cmp	w8, #128
	b.eq	LBB0_15
; %bb.12:
	cmp	w8, #129
	b.eq	LBB0_16
; %bb.13:
	cmp	w8, #130
	b.ne	LBB0_17
; %bb.14:
	str	xzr, [x19, #32]
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_17
LBB0_15:
	str	xzr, [x19, #24]
	mov	w8, #-1
	str	w8, [x19, #4]
	b	LBB0_17
LBB0_16:
	str	xzr, [x19, #16]
	mov	w8, #-1
	str	w8, [x19, #8]
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_dev,4,2                  ; @audio_dev
	.comm	_AVDISCARD_ALL,4,2              ; @AVDISCARD_ALL
	.no_dead_strip	_stream_component_close
.subsections_via_symbols
