	.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_16
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	112(%r15), %r12
	cmpl	%esi, (%r12)
	jle	LBB0_16
## %bb.2:
	movq	8(%r12), %rax
	movl	%esi, %r13d
	movq	(%rax,%r13,8), %rcx
	movq	8(%rcx), %r14
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$130, %eax
	jne	LBB0_10
## %bb.5:
	leaq	100(%r15), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	104(%r15), %rsi
	callq	_decoder_abort
	movl	(%rbx), %edi
	callq	_SDL_AoutCloseAudio
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_decoder_destroy
	leaq	96(%r15), %rdi
	callq	_swr_free
	leaq	92(%r15), %rdi
	callq	_av_freep
	movl	$0, 88(%r15)
	movq	$0, 80(%r15)
	jmp	LBB0_9
LBB0_6:
	leaq	48(%r15), %rbx
	leaq	52(%r15), %rsi
	jmp	LBB0_8
LBB0_7:
	leaq	40(%r15), %rbx
	leaq	44(%r15), %rsi
LBB0_8:
	movq	%rbx, %rdi
	callq	_decoder_abort
	movq	%rbx, %rdi
	callq	_decoder_destroy
LBB0_9:
	movl	(%r14), %eax
	movq	8(%r12), %rcx
	movq	(%rcx,%r13,8), %rcx
LBB0_10:
	movq	_AVDISCARD_ALL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rcx)
	cmpl	$128, %eax
	je	LBB0_14
## %bb.11:
	cmpl	$129, %eax
	je	LBB0_15
## %bb.12:
	cmpl	$130, %eax
	jne	LBB0_16
## %bb.13:
	movq	$0, 32(%r15)
	movl	$-1, (%r15)
	jmp	LBB0_16
LBB0_14:
	movq	$0, 24(%r15)
	movl	$-1, 4(%r15)
	jmp	LBB0_16
LBB0_15:
	movq	$0, 16(%r15)
	movl	$-1, 8(%r15)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_16
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
	ldr	x23, [x22, #112]
	ldr	w8, [x23]
	cmp	w8, w1
	b.le	LBB0_16
; %bb.2:
	ldr	x8, [x23, #8]
	ldr	x9, [x8, w19, uxtw #3]
	ldr	x24, [x9, #8]
	ldr	w8, [x24]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #130
	b.ne	LBB0_10
; %bb.5:
	add	x21, x22, #100
	add	x1, x22, #104
	mov	x0, x21
	bl	_decoder_abort
	ldr	w0, [x20]
	bl	_SDL_AoutCloseAudio
	mov	x0, x21
	bl	_decoder_destroy
	add	x0, x22, #96
	bl	_swr_free
	add	x0, x22, #92
	bl	_av_freep
	str	wzr, [x22, #88]
	str	xzr, [x22, #80]
	b	LBB0_9
LBB0_6:
	add	x20, x22, #48
	add	x1, x22, #52
	b	LBB0_8
LBB0_7:
	add	x20, x22, #40
	add	x1, x22, #44
LBB0_8:
	mov	x0, x20
	bl	_decoder_abort
	mov	x0, x20
	bl	_decoder_destroy
LBB0_9:
	mov	w9, w19
	ldr	w8, [x24]
	ldr	x10, [x23, #8]
	ldr	x9, [x10, x9, lsl #3]
LBB0_10:
Lloh0:
	adrp	x10, _AVDISCARD_ALL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AVDISCARD_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	str	w10, [x9]
	cmp	w8, #128
	b.eq	LBB0_14
; %bb.11:
	cmp	w8, #129
	b.eq	LBB0_15
; %bb.12:
	cmp	w8, #130
	b.ne	LBB0_16
; %bb.13:
	str	xzr, [x22, #32]
	mov	w8, #-1
	str	w8, [x22]
	b	LBB0_16
LBB0_14:
	str	xzr, [x22, #24]
	mov	w8, #-1
	str	w8, [x22, #4]
	b	LBB0_16
LBB0_15:
	str	xzr, [x22, #16]
	mov	w8, #-1
	str	w8, [x22, #8]
LBB0_16:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_AVDISCARD_ALL,4,2              ; @AVDISCARD_ALL
	.no_dead_strip	_stream_component_close
.subsections_via_symbols
