	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readblock
_readblock:                             ## @readblock
	.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
	movl	%esi, %r14d
	movl	%edi, %r15d
	movl	%esi, %edi
	callq	_mkuz_blk_ctor
	movq	%rax, %r12
	movl	_readblock.blockcnt(%rip), %eax
	movl	%eax, (%r12)
	incl	%eax
	movl	%eax, _readblock.blockcnt(%rip)
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_lseek
	movq	%rax, %rbx
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	%rbx, 8(%r12)
	movl	16(%r12), %esi
	movl	%r15d, %edi
	movl	%r14d, %edx
	callq	_read
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	jne	LBB0_4
## %bb.6:
	movq	%r12, %rdi
	callq	_free
	movq	_MKUZ_BLK_EOF@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	movl	%r14d, 4(%r12)
LBB0_7:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_readblock.blockcnt,4,2 ## @readblock.blockcnt
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"readblock: lseek() failed"

L_.str.1:                               ## @.str.1
	.asciz	"readblock: read() failed"

	.comm	_MKUZ_BLK_EOF,8,3               ## @MKUZ_BLK_EOF
	.no_dead_strip	_readblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readblock
_readblock:                             ; @readblock
	.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	x0, x1
	bl	_mkuz_blk_ctor
	mov	x19, x0
Lloh0:
	adrp	x8, _readblock.blockcnt@PAGE
	ldr	w9, [x8, _readblock.blockcnt@PAGEOFF]
	str	w9, [x0]
	add	w9, w9, #1
	str	w9, [x8, _readblock.blockcnt@PAGEOFF]
Lloh1:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh2:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh3:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_lseek
	mov	x22, x0
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	str	x22, [x19, #8]
	ldr	w1, [x19, #16]
	mov	x0, x21
	mov	x2, x20
	bl	_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.3:
	cbnz	w20, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_free
Lloh6:
	adrp	x8, _MKUZ_BLK_EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MKUZ_BLK_EOF@GOTPAGEOFF]
Lloh8:
	ldr	x19, [x8]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	str	w20, [x19, #4]
LBB0_7:
	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	Lloh1, Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_readblock.blockcnt,4,2 ; @readblock.blockcnt
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"readblock: lseek() failed"

l_.str.1:                               ; @.str.1
	.asciz	"readblock: read() failed"

	.comm	_MKUZ_BLK_EOF,8,3               ; @MKUZ_BLK_EOF
	.no_dead_strip	_readblock
.subsections_via_symbols
