	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdmega
_rdmega:                                ## @rdmega
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MEGATX@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_read
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	cmpl	(%r14), %ebx
	jne	LBB0_4
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
	cmpl	(%r14), %ebx
	je	LBB0_3
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_errx                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_buf,4,2                        ## @buf
	.comm	_MEGATX,4,2                     ## @MEGATX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read"

L_.str.1:                               ## @.str.1
	.asciz	"disk too small for test."

	.no_dead_strip	_rdmega
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdmega
_rdmega:                                ; @rdmega
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _buf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _buf@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x20, _MEGATX@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MEGATX@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_read
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	ldr	w8, [x20]
	cmp	w19, w8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_errx
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_buf,4,2                        ; @buf
	.comm	_MEGATX,4,2                     ; @MEGATX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read"

l_.str.1:                               ; @.str.1
	.asciz	"disk too small for test."

	.no_dead_strip	_rdmega
.subsections_via_symbols
