	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_binary_writer_open             ## -- Begin function binary_writer_open
	.p2align	4, 0x90
_binary_writer_open:                    ## @binary_writer_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	24(%rax), %edi
	callq	_vc_uri_path_extension
	movq	%rax, -32(%rbp)
	movq	(%r14), %rax
	movl	24(%rax), %edi
	leaq	L_.str(%rip), %rdx
	leaq	-32(%rbp), %rcx
	xorl	%esi, %esi
	callq	_vc_uri_find_query
	movq	-32(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	_extensions@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.2:
	callq	_strcasecmp
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-32(%rbp), %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	movl	%ebx, %ebx
LBB0_6:
	movq	(%r15), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_7
## %bb.8:
	movl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r14), %rax
	movq	%rbx, 16(%rax)
	movq	%rbx, 8(%r14)
	movq	_binary_writer_close@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_binary_writer_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_binary_writer_control@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_LOG_DEBUG
	jmp	LBB0_12
	.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	_extensions,8,3                 ## @extensions
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_binary_writer_close,4,2        ## @binary_writer_close
	.comm	_binary_writer_write,4,2        ## @binary_writer_write
	.comm	_binary_writer_control,4,2      ## @binary_writer_control
	.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_writer_open             ; -- Begin function binary_writer_open
	.p2align	2
_binary_writer_open:                    ; @binary_writer_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #24]
	bl	_vc_uri_path_extension
	str	x0, [sp, #8]
	ldr	x8, [x19]
	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	x0, [sp, #8]
	cbz	x0, LBB0_10
; %bb.1:
Lloh2:
	adrp	x20, _extensions@GOTPAGE
Lloh3:
	ldr	x20, [x20, _extensions@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x1, [x8]
	cbz	x1, LBB0_10
; %bb.2:
	bl	_strcasecmp
	cbz	w0, LBB0_6
; %bb.3:
	mov	w21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w21, w21, #1
	ldr	x8, [x20]
	ldr	x1, [x8, w21, uxtw #3]
	cbz	x1, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
	bl	_strcasecmp
	cbnz	w0, LBB0_4
	b	LBB0_7
LBB0_6:
	mov	x21, #0
LBB0_7:
	ldr	x8, [x20]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_10
; %bb.8:
	mov	w0, #4
	bl	_malloc
	cbz	x0, LBB0_13
; %bb.9:
	mov	x20, x0
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19]
	str	x20, [x8, #16]
	str	x20, [x19, #8]
Lloh4:
	adrp	x9, _binary_writer_close@GOTPAGE
Lloh5:
	ldr	x9, [x9, _binary_writer_close@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	str	w9, [x8, #8]
Lloh7:
	adrp	x9, _binary_writer_write@GOTPAGE
Lloh8:
	ldr	x9, [x9, _binary_writer_write@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _binary_writer_control@GOTPAGE
Lloh11:
	ldr	x10, [x10, _binary_writer_control@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
Lloh13:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh15:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_11:
	ldr	w20, [x8]
LBB0_12:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_13:
Lloh17:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_LOG_DEBUG
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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	_extensions,8,3                 ; @extensions
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_binary_writer_close,4,2        ; @binary_writer_close
	.comm	_binary_writer_write,4,2        ; @binary_writer_write
	.comm	_binary_writer_control,4,2      ; @binary_writer_control
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"binary: error opening stream (%i)"

.subsections_via_symbols
