	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_io_read
_client_io_read:                        ## @client_io_read
	.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	%rdx, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	%rsi, %rdi
	movl	$1, %esi
	movq	%r15, %rcx
	callq	_fread
	cmpq	%rbx, %rax
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	testl	$-2147483648, %eax              ## imm = 0x80000000
	cmoveq	%rax, %rbx
	movq	%r15, %rdi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_VC_CONTAINER_ERROR_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_VC_CONTAINER_ERROR_EOS@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_5:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movq	%rbx, %rdx
	callq	_LOG_DEBUG
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_EOS,4,2     ## @VC_CONTAINER_ERROR_EOS
	.comm	_VC_CONTAINER_ERROR_FAILED,4,2  ## @VC_CONTAINER_ERROR_FAILED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read: %i"

	.no_dead_strip	_client_io_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_io_read
_client_io_read:                        ; @client_io_read
	.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, x2
	mov	x20, x0
	ldr	x21, [x0, #8]
	mov	x0, x1
	mov	w1, #1
	mov	x3, x21
	bl	_fread
	cmp	x0, x19
	b.eq	LBB0_2
; %bb.1:
	tst	x0, #0x80000000
	csel	x19, x0, xzr, eq
	mov	x0, x21
	bl	_feof
Lloh0:
	adrp	x8, _VC_CONTAINER_ERROR_FAILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FAILED@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VC_CONTAINER_ERROR_EOS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VC_CONTAINER_ERROR_EOS@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_2:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	mov	x2, x19
	bl	_LOG_DEBUG
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_EOS,4,2     ; @VC_CONTAINER_ERROR_EOS
	.comm	_VC_CONTAINER_ERROR_FAILED,4,2  ; @VC_CONTAINER_ERROR_FAILED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read: %i"

	.no_dead_strip	_client_io_read
.subsections_via_symbols
