	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_binary_reader_open             ## -- Begin function binary_reader_open
	.p2align	4, 0x90
_binary_reader_open:                    ## @binary_reader_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	%rdi, %r15
	movq	8(%rdi), %rax
	movl	24(%rax), %edi
	callq	_vc_uri_path_extension
	movq	%rax, -48(%rbp)
	movq	8(%r15), %rax
	movl	24(%rax), %edi
	leaq	L_.str(%rip), %rdx
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	callq	_vc_uri_find_query
	cmpq	$0, -48(%rbp)
	je	LBB0_28
## %bb.1:
	movq	8(%r15), %rax
	movl	24(%rax), %edi
	callq	_vc_uri_path
	testq	%rax, %rax
	je	LBB0_28
## %bb.2:
	movq	_extension_to_format_table@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	movq	(%r14), %rax
	leaq	(%rbx,%rbx,2), %rcx
	movq	8(%rax,%rcx,8), %rsi
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.8:
	movl	%ebx, %ecx
	jmp	LBB0_9
LBB0_3:
	xorl	%ecx, %ecx
LBB0_9:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_6:
	movl	%ebx, %ecx
	movq	(%r14), %rax
	leaq	(%rcx,%rcx,2), %rdx
	movl	16(%rax,%rdx,8), %r12d
	movq	(%rax,%rdx,8), %r13
LBB0_10:
	leaq	(%rcx,%rcx,2), %rcx
	cmpq	$0, 8(%rax,%rcx,8)
	je	LBB0_28
## %bb.11:
	testq	%r13, %r13
	je	LBB0_12
LBB0_19:
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	8(%r15), %rax
	movq	%r14, 16(%rax)
	movl	$1, (%r15)
	movq	%r14, %rax
	addq	$16, %rax
	movq	%rax, 16(%r15)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vc_container_allocate_track
	movq	16(%r15), %rcx
	movq	%rax, (%rcx)
	movq	16(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	movq	8(%rax), %rcx
	movl	%r12d, 8(%rcx)
	movq	%r13, (%rcx)
	movl	$1, (%rax)
	movq	_DEFAULT_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_VC_CONTAINER_CODEC_JPEG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	jne	LBB0_25
## %bb.24:
	movq	_DEFAULT_JPEG_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_25:
	movl	%eax, 8(%r14)
	movl	$1, (%r14)
	movq	_binary_reader_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rcx
	movl	%eax, 8(%rcx)
	movq	_binary_reader_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_binary_reader_seek@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_12:
	movq	_bin_extension_to_format_table@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_28
## %bb.13:
	movl	$1, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	24(%rax), %edi
	callq	_vc_uri_path
	movq	(%r14), %rcx
	leaq	(%rbx,%rbx,2), %rbx
	movq	16(%rcx,%rbx,8), %rsi
	movq	%rax, %rdi
	callq	_strstr
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-48(%rbp), %rdi
	movq	(%r14), %rax
	movq	16(%rax,%rbx,8), %rsi
	callq	_strstr
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%r14), %rax
	movl	%r12d, %ebx
	leaq	(%rbx,%rbx,2), %rcx
	incl	%r12d
	cmpq	$0, 16(%rax,%rcx,8)
	jne	LBB0_15
	jmp	LBB0_28
LBB0_20:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_LOG_DEBUG
	jmp	LBB0_27
LBB0_22:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_17:
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %r13
	testq	%r13, %r13
	je	LBB0_28
## %bb.18:
	movl	8(%rax,%rbx,8), %r12d
	jmp	LBB0_19
LBB0_28:
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"container"

	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,4,2 ## @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_extension_to_format_table,8,3  ## @extension_to_format_table
	.comm	_bin_extension_to_format_table,8,3 ## @bin_extension_to_format_table
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_DEFAULT_BLOCK_SIZE,4,2         ## @DEFAULT_BLOCK_SIZE
	.comm	_VC_CONTAINER_CODEC_JPEG,8,3    ## @VC_CONTAINER_CODEC_JPEG
	.comm	_DEFAULT_JPEG_BLOCK_SIZE,4,2    ## @DEFAULT_JPEG_BLOCK_SIZE
	.comm	_binary_reader_close,4,2        ## @binary_reader_close
	.comm	_binary_reader_read,4,2         ## @binary_reader_read
	.comm	_binary_reader_seek,4,2         ## @binary_reader_seek
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"binary: error opening stream (%i)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_binary_reader_open             ; -- Begin function binary_reader_open
	.p2align	2
_binary_reader_open:                    ; @binary_reader_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #24]
	bl	_vc_uri_path_extension
	str	x0, [sp, #8]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #24]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	w1, #0
	bl	_vc_uri_find_query
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_25
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #24]
	bl	_vc_uri_path
	cbz	x0, LBB0_25
; %bb.2:
Lloh2:
	adrp	x21, _extension_to_format_table@GOTPAGE
Lloh3:
	ldr	x21, [x21, _extension_to_format_table@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_7
; %bb.3:
	mov	w20, #0
	mov	w22, #24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	bl	_strcasecmp
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	ldr	x8, [x21]
	umaddl	x9, w20, w22, x8
	ldr	x1, [x9, #8]
	cbnz	x1, LBB0_4
; %bb.6:
	mov	w22, #0
	mov	x21, #0
	mov	x9, x20
	b	LBB0_9
LBB0_7:
	mov	x9, #0
	mov	w22, #0
	mov	x21, #0
	b	LBB0_9
LBB0_8:
	mov	w9, w20
	ldr	x8, [x21]
	mov	w10, #24
	umaddl	x10, w20, w10, x8
	ldr	w22, [x10, #16]
	ldr	x21, [x10]
LBB0_9:
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_25
; %bb.10:
	cbz	x21, LBB0_16
LBB0_11:
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_21
; %bb.12:
	mov	x20, x0
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [x19, #8]
	str	x20, [x8, #16]
	mov	w23, #1
	str	w23, [x19]
	add	x8, x20, #16
	str	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #0
	bl	_vc_container_allocate_track
	ldr	x8, [x19, #16]
	str	x0, [x8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.13:
	ldr	x9, [x8, #8]
	str	w22, [x9, #8]
	str	x21, [x9]
	str	w23, [x8]
Lloh4:
	adrp	x8, _DEFAULT_BLOCK_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DEFAULT_BLOCK_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x20, #4]
Lloh7:
	adrp	x9, _VC_CONTAINER_CODEC_JPEG@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VC_CONTAINER_CODEC_JPEG@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x21, x9
	b.ne	LBB0_15
; %bb.14:
Lloh10:
	adrp	x8, _DEFAULT_JPEG_BLOCK_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DEFAULT_JPEG_BLOCK_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #4]
LBB0_15:
	str	w8, [x20, #8]
	mov	w8, #1
	str	w8, [x20]
Lloh13:
	adrp	x8, _binary_reader_close@GOTPAGE
Lloh14:
	ldr	x8, [x8, _binary_reader_close@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	str	w8, [x9, #8]
Lloh16:
	adrp	x8, _binary_reader_read@GOTPAGE
Lloh17:
	ldr	x8, [x8, _binary_reader_read@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x10, _binary_reader_seek@GOTPAGE
Lloh20:
	ldr	x10, [x10, _binary_reader_seek@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
Lloh22:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	b	LBB0_26
LBB0_16:
Lloh24:
	adrp	x20, _bin_extension_to_format_table@GOTPAGE
Lloh25:
	ldr	x20, [x20, _bin_extension_to_format_table@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_25
; %bb.17:
	mov	x21, #0
	mov	w22, #1
	mov	w23, #24
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #24]
	bl	_vc_uri_path
	ldr	x8, [x20]
	madd	x8, x21, x23, x8
	ldr	x1, [x8, #16]
	bl	_strstr
	cbnz	w0, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [sp, #8]
	ldr	x8, [x20]
	madd	x8, x21, x23, x8
	ldr	x1, [x8, #16]
	bl	_strstr
	cbnz	w0, LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x20]
	mov	w21, w22
	umaddl	x8, w22, w23, x8
	ldr	x8, [x8, #16]
	add	w22, w22, #1
	cbnz	x8, LBB0_18
	b	LBB0_25
LBB0_21:
Lloh26:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh28:
	ldr	w20, [x8]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_LOG_DEBUG
	b	LBB0_27
LBB0_22:
Lloh31:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
	b	LBB0_26
LBB0_23:
	ldr	x8, [x20]
	mov	w9, #24
	madd	x8, x21, x9, x8
	ldr	x21, [x8]
	cbz	x21, LBB0_25
; %bb.24:
	ldr	w22, [x8, #8]
	b	LBB0_11
LBB0_25:
Lloh33:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_26:
	ldr	w20, [x8]
LBB0_27:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"container"

	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,4,2 ; @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_extension_to_format_table,8,3  ; @extension_to_format_table
	.comm	_bin_extension_to_format_table,8,3 ; @bin_extension_to_format_table
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_DEFAULT_BLOCK_SIZE,4,2         ; @DEFAULT_BLOCK_SIZE
	.comm	_VC_CONTAINER_CODEC_JPEG,8,3    ; @VC_CONTAINER_CODEC_JPEG
	.comm	_DEFAULT_JPEG_BLOCK_SIZE,4,2    ; @DEFAULT_JPEG_BLOCK_SIZE
	.comm	_binary_reader_close,4,2        ; @binary_reader_close
	.comm	_binary_reader_read,4,2         ; @binary_reader_read
	.comm	_binary_reader_seek,4,2         ; @binary_reader_seek
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"binary: error opening stream (%i)"

.subsections_via_symbols
