	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_io_open
_client_io_open:                        ## @client_io_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_VC_CONTAINER_IO_CAPS_NO_CACHING@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movq	%r14, %rcx
	callq	_vc_container_io_create
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r15, 16(%rax)
	movq	_client_io_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_client_io_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_client_io_seek@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	%r15, %rdi
	callq	_ftell
	movl	%eax, (%rbx)
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_5
LBB0_1:
	movq	_VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_LOG_ERROR
	movq	%r15, %rdi
	callq	_fclose
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_IO_CAPS_NO_CACHING,4,2 ## @VC_CONTAINER_IO_CAPS_NO_CACHING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

	.comm	_VC_CONTAINER_ERROR_URI_OPEN_FAILED,4,2 ## @VC_CONTAINER_ERROR_URI_OPEN_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"error creating io (%i)"

	.comm	_client_io_close,4,2            ## @client_io_close
	.comm	_client_io_read,4,2             ## @client_io_read
	.comm	_client_io_seek,4,2             ## @client_io_seek
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.no_dead_strip	_client_io_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_io_open
_client_io_open:                        ; @client_io_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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _VC_CONTAINER_IO_CAPS_NO_CACHING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_IO_CAPS_NO_CACHING@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
	mov	x3, x19
	bl	_vc_container_io_create
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.2:
	str	x20, [x21, #16]
Lloh5:
	adrp	x8, _client_io_close@GOTPAGE
Lloh6:
	ldr	x8, [x8, _client_io_close@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x21, #12]
Lloh8:
	adrp	x8, _client_io_read@GOTPAGE
Lloh9:
	ldr	x8, [x8, _client_io_read@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _client_io_seek@GOTPAGE
Lloh12:
	ldr	x9, [x9, _client_io_seek@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #4]
Lloh14:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_fseek
	mov	x0, x20
	bl	_ftell
	str	w0, [x21]
Lloh17:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_fseek
Lloh20:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	mov	x21, #0
Lloh22:
	adrp	x8, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
	ldr	w2, [x19]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
	mov	x0, x20
	bl	_fclose
LBB0_6:
	mov	x0, x21
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_IO_CAPS_NO_CACHING,4,2 ; @VC_CONTAINER_IO_CAPS_NO_CACHING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

	.comm	_VC_CONTAINER_ERROR_URI_OPEN_FAILED,4,2 ; @VC_CONTAINER_ERROR_URI_OPEN_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"error creating io (%i)"

	.comm	_client_io_close,4,2            ; @client_io_close
	.comm	_client_io_read,4,2             ; @client_io_read
	.comm	_client_io_seek,4,2             ; @client_io_seek
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.no_dead_strip	_client_io_open
.subsections_via_symbols
