	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stream_open
_stream_open:                           ## @stream_open
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	$96, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_av_strdup
	movl	%eax, 88(%r13)
	testl	%eax, %eax
	je	LBB0_17
## %bb.2:
	movq	%r14, 80(%r13)
	leaq	60(%r13), %rdi
	leaq	36(%r13), %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r13)
	movq	_VIDEO_PICTURE_QUEUE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_frame_queue_init
	testq	%rax, %rax
	js	LBB0_17
## %bb.3:
	leaq	56(%r13), %rdi
	leaq	48(%r13), %r12
	movq	_SUBPICTURE_QUEUE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_frame_queue_init
	testq	%rax, %rax
	js	LBB0_17
## %bb.4:
	leaq	52(%r13), %rdi
	leaq	28(%r13), %r15
	movq	_SAMPLE_QUEUE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	_frame_queue_init
	testq	%rax, %rax
	js	LBB0_17
## %bb.5:
	movq	%r14, %rdi
	callq	_packet_queue_init
	testq	%rax, %rax
	js	LBB0_17
## %bb.6:
	movq	%r15, %rdi
	callq	_packet_queue_init
	testq	%rax, %rax
	js	LBB0_17
## %bb.7:
	movq	%r12, %rdi
	callq	_packet_queue_init
	testq	%rax, %rax
	js	LBB0_17
## %bb.8:
	xorl	%eax, %eax
	callq	_SDL_CreateCond
	movl	%eax, 44(%r13)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	leaq	40(%r13), %rdi
	movq	%r14, %rsi
	callq	_init_clock
	leaq	32(%r13), %rdi
	movq	%r15, %rsi
	callq	_init_clock
	movq	%r13, %rdi
	addq	$24, %rdi
	movq	%rdi, %rsi
	callq	_init_clock
	movl	$-1, (%r13)
	movq	_startup_volume@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jns	LBB0_12
## %bb.11:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	movl	(%rbx), %ecx
LBB0_12:
	cmpl	$101, %ecx
	jl	LBB0_14
## %bb.13:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	movl	(%rbx), %ecx
LBB0_14:
	movl	%ecx, %edi
	xorl	%esi, %esi
	movl	$100, %edx
	callq	_av_clip
	movl	%eax, (%rbx)
	movq	_SDL_MIX_MAXVOLUME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	imull	%edx, %eax
	cltq
	imulq	$1374389535, %rax, %rdi         ## imm = 0x51EB851F
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$37, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	callq	_av_clip
	movl	%eax, (%rbx)
	movl	%eax, 4(%r13)
	movq	$0, 16(%r13)
	movq	_av_sync_type@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	_read_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdx
	callq	_SDL_CreateThread
	movl	%eax, 8(%r13)
	testl	%eax, %eax
	jne	LBB0_19
## %bb.15:
	leaq	L_.str.4(%rip), %r14
	jmp	LBB0_16
LBB0_9:
	leaq	L_.str(%rip), %r14
LBB0_16:
	movq	_AV_LOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_SDL_GetError
	xorl	%edi, %edi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_av_log
LBB0_17:
	movq	%r13, %rdi
	callq	_stream_close
LBB0_18:
	xorl	%r13d, %r13d
LBB0_19:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_PICTURE_QUEUE_SIZE,4,2   ## @VIDEO_PICTURE_QUEUE_SIZE
	.comm	_SUBPICTURE_QUEUE_SIZE,4,2      ## @SUBPICTURE_QUEUE_SIZE
	.comm	_SAMPLE_QUEUE_SIZE,4,2          ## @SAMPLE_QUEUE_SIZE
	.comm	_AV_LOG_FATAL,4,2               ## @AV_LOG_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SDL_CreateCond(): %s\n"

	.comm	_startup_volume,4,2             ## @startup_volume
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"-volume=%d < 0, setting to 0\n"

L_.str.2:                               ## @.str.2
	.asciz	"-volume=%d > 100, setting to 100\n"

	.comm	_SDL_MIX_MAXVOLUME,4,2          ## @SDL_MIX_MAXVOLUME
	.comm	_av_sync_type,4,2               ## @av_sync_type
	.comm	_read_thread,4,2                ## @read_thread
L_.str.3:                               ## @.str.3
	.asciz	"read_thread"

L_.str.4:                               ## @.str.4
	.asciz	"SDL_CreateThread(): %s\n"

	.no_dead_strip	_stream_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stream_open
_stream_open:                           ; @stream_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	mov	w0, #96
	bl	_av_mallocz
	mov	x19, x0
	cbz	x0, LBB0_18
; %bb.1:
	mov	x0, x21
	bl	_av_strdup
	str	w0, [x19, #88]
	cbz	w0, LBB0_17
; %bb.2:
	stp	xzr, x20, [x19, #72]
	add	x0, x19, #60
	add	x20, x19, #36
	str	xzr, [x19, #64]
Lloh0:
	adrp	x8, _VIDEO_PICTURE_QUEUE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEO_PICTURE_QUEUE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	mov	w3, #1
	bl	_frame_queue_init
	tbnz	x0, #63, LBB0_17
; %bb.3:
	add	x0, x19, #56
	add	x22, x19, #48
Lloh3:
	adrp	x8, _SUBPICTURE_QUEUE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUBPICTURE_QUEUE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x22
	mov	w3, #0
	bl	_frame_queue_init
	tbnz	x0, #63, LBB0_17
; %bb.4:
	add	x0, x19, #52
	add	x21, x19, #28
Lloh6:
	adrp	x8, _SAMPLE_QUEUE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SAMPLE_QUEUE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x21
	mov	w3, #1
	bl	_frame_queue_init
	tbnz	x0, #63, LBB0_17
; %bb.5:
	mov	x0, x20
	bl	_packet_queue_init
	tbnz	x0, #63, LBB0_17
; %bb.6:
	mov	x0, x21
	bl	_packet_queue_init
	tbnz	x0, #63, LBB0_17
; %bb.7:
	mov	x0, x22
	bl	_packet_queue_init
	tbnz	x0, #63, LBB0_17
; %bb.8:
	bl	_SDL_CreateCond
	str	w0, [x19, #44]
	cbz	w0, LBB0_15
; %bb.9:
	add	x0, x19, #40
	mov	x1, x20
	bl	_init_clock
	add	x0, x19, #32
	mov	x1, x21
	bl	_init_clock
	add	x0, x19, #24
	mov	x1, x0
	bl	_init_clock
	mov	w8, #-1
	str	w8, [x19]
Lloh9:
	adrp	x20, _startup_volume@GOTPAGE
Lloh10:
	ldr	x20, [x20, _startup_volume@GOTPAGEOFF]
	ldr	w3, [x20]
	tbz	w3, #31, LBB0_11
; %bb.10:
Lloh11:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_av_log
	ldr	w3, [x20]
LBB0_11:
	cmp	w3, #101
	b.lt	LBB0_13
; %bb.12:
Lloh16:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_av_log
	ldr	w3, [x20]
LBB0_13:
	mov	x0, x3
	mov	w1, #0
	mov	w2, #100
	bl	_av_clip
	str	w0, [x20]
Lloh21:
	adrp	x8, _SDL_MIX_MAXVOLUME@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SDL_MIX_MAXVOLUME@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mul	w8, w2, w0
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w0, w8, w9
	mov	w1, #0
	bl	_av_clip
	str	w0, [x20]
	str	w0, [x19, #4]
Lloh24:
	adrp	x8, _av_sync_type@GOTPAGE
Lloh25:
	ldr	x8, [x8, _av_sync_type@GOTPAGEOFF]
	str	xzr, [x19, #16]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh27:
	adrp	x8, _read_thread@GOTPAGE
Lloh28:
	ldr	x8, [x8, _read_thread@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_SDL_CreateThread
	str	w0, [x19, #8]
	cbnz	w0, LBB0_18
; %bb.14:
Lloh32:
	adrp	x20, l_.str.4@PAGE
Lloh33:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh34:
	adrp	x20, l_.str@PAGE
Lloh35:
	add	x20, x20, l_.str@PAGEOFF
LBB0_16:
Lloh36:
	adrp	x8, _AV_LOG_FATAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AV_LOG_FATAL@GOTPAGEOFF]
Lloh38:
	ldr	w21, [x8]
	bl	_SDL_GetError
	mov	x3, x0
	mov	x0, #0
	mov	x1, x21
	mov	x2, x20
	bl	_av_log
LBB0_17:
	mov	x0, x19
	bl	_stream_close
	mov	x19, #0
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_PICTURE_QUEUE_SIZE,4,2   ; @VIDEO_PICTURE_QUEUE_SIZE
	.comm	_SUBPICTURE_QUEUE_SIZE,4,2      ; @SUBPICTURE_QUEUE_SIZE
	.comm	_SAMPLE_QUEUE_SIZE,4,2          ; @SAMPLE_QUEUE_SIZE
	.comm	_AV_LOG_FATAL,4,2               ; @AV_LOG_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SDL_CreateCond(): %s\n"

	.comm	_startup_volume,4,2             ; @startup_volume
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"-volume=%d < 0, setting to 0\n"

l_.str.2:                               ; @.str.2
	.asciz	"-volume=%d > 100, setting to 100\n"

	.comm	_SDL_MIX_MAXVOLUME,4,2          ; @SDL_MIX_MAXVOLUME
	.comm	_av_sync_type,4,2               ; @av_sync_type
	.comm	_read_thread,4,2                ; @read_thread
l_.str.3:                               ; @.str.3
	.asciz	"read_thread"

l_.str.4:                               ; @.str.4
	.asciz	"SDL_CreateThread(): %s\n"

	.no_dead_strip	_stream_open
.subsections_via_symbols
