	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_domapread                      ## -- Begin function domapread
	.p2align	4, 0x90
_domapread:                             ## @domapread
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_readbdy@GOTPCREL(%rip), %rcx
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	subl	%edx, %ebx
	testl	%esi, %esi
	je	LBB0_1
## %bb.6:
	movl	%esi, %r14d
	leal	(%rbx,%r14), %r15d
	movq	_file_size@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jbe	LBB0_11
## %bb.7:
	movq	_quiet@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_10
## %bb.8:
	movq	_testcalls@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_simulatedopcount@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_prt
LBB0_10:
	movq	_OP_SKIPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OP_MAPREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	jmp	LBB0_5
LBB0_1:
	movq	_quiet@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	_testcalls@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_simulatedopcount@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_prt
LBB0_4:
	movq	_OP_SKIPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OP_MAPREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_log4                           ## TAILCALL
LBB0_11:
	movq	_OP_MAPREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_log4
	movq	_testcalls@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_simulatedopcount@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jle	LBB0_26
## %bb.12:
	movq	_quiet@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_21
## %bb.13:
	movq	_progressinterval@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.14:
	movl	%esi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	LBB0_20
LBB0_15:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.16:
	movq	_monitorstart@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.17:
	cmpl	%eax, %r15d
	jbe	LBB0_21
## %bb.18:
	movq	_monitorend@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.19:
	cmpl	%eax, %ebx
	ja	LBB0_21
LBB0_20:
	decl	%r15d
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_prt
LBB0_21:
	movq	_page_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	%ebx, %r13d
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_FILE@GOTPCREL(%rip), %rax
	movq	_MAP_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%ebx, %r9d
	subl	%r13d, %r9d
	movl	%r13d, %r15d
	addl	%r14d, %r15d
	xorl	%edi, %edi
	movl	%r15d, %esi
	callq	_mmap
	movq	%rax, %r12
	cmpq	$-1, %rax
	jne	LBB0_23
## %bb.22:
	leaq	L_.str.3(%rip), %rdi
	callq	_prterr
	movl	$190, %edi
	callq	_report_failure
LBB0_23:
	movq	_temp_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	addq	%r13, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	callq	_check_eofpage
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_munmap
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	leaq	L_.str.5(%rip), %rdi
	callq	_prterr
	movl	$191, %edi
	callq	_report_failure
LBB0_25:
	movl	%ebx, %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_check_buffers                  ## TAILCALL
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_readbdy,4,2                    ## @readbdy
	.comm	_quiet,4,2                      ## @quiet
	.comm	_testcalls,4,2                  ## @testcalls
	.comm	_simulatedopcount,4,2           ## @simulatedopcount
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skipping zero size read\n"

	.comm	_OP_SKIPPED,4,2                 ## @OP_SKIPPED
	.comm	_OP_MAPREAD,4,2                 ## @OP_MAPREAD
	.comm	_file_size,4,2                  ## @file_size
L_.str.1:                               ## @.str.1
	.asciz	"skipping seek/read past end of file\n"

	.comm	_progressinterval,4,2           ## @progressinterval
	.comm	_debug,8,3                      ## @debug
	.comm	_monitorstart,4,2               ## @monitorstart
	.comm	_monitorend,4,2                 ## @monitorend
L_.str.2:                               ## @.str.2
	.asciz	"%lu mapread\t0x%x thru\t0x%x\t(0x%x bytes)\n"

	.comm	_page_mask,4,2                  ## @page_mask
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_FILE,4,2                   ## @MAP_FILE
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_fd,4,2                         ## @fd
L_.str.3:                               ## @.str.3
	.asciz	"domapread: mmap"

	.comm	_temp_buf,4,2                   ## @temp_buf
L_.str.4:                               ## @.str.4
	.asciz	"Read"

L_.str.5:                               ## @.str.5
	.asciz	"domapread: munmap"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_domapread                      ; -- Begin function domapread
	.p2align	2
_domapread:                             ; @domapread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _readbdy@GOTPAGE
Lloh1:
	ldr	x8, [x8, _readbdy@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	udiv	w9, w0, w8
	mul	w19, w9, w8
	cbz	w1, LBB0_6
; %bb.1:
	mov	x20, x1
Lloh3:
	adrp	x8, _file_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _file_size@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w21, w19, w1
	cmp	w21, w8
	b.ls	LBB0_11
; %bb.2:
Lloh6:
	adrp	x8, _quiet@GOTPAGE
Lloh7:
	ldr	x8, [x8, _quiet@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbnz	w8, LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _testcalls@GOTPAGE
Lloh10:
	ldr	x8, [x8, _testcalls@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _simulatedopcount@GOTPAGE
Lloh13:
	ldr	x9, [x9, _simulatedopcount@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_5
; %bb.4:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_prt
LBB0_5:
Lloh17:
	adrp	x8, _OP_SKIPPED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OP_SKIPPED@GOTPAGEOFF]
Lloh19:
	adrp	x9, _OP_MAPREAD@GOTPAGE
Lloh20:
	ldr	x9, [x9, _OP_MAPREAD@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	ldr	w1, [x9]
	mov	x2, x19
	mov	x3, x20
	b	LBB0_10
LBB0_6:
Lloh23:
	adrp	x8, _quiet@GOTPAGE
Lloh24:
	ldr	x8, [x8, _quiet@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cbnz	w8, LBB0_9
; %bb.7:
Lloh26:
	adrp	x8, _testcalls@GOTPAGE
Lloh27:
	ldr	x8, [x8, _testcalls@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _simulatedopcount@GOTPAGE
Lloh30:
	ldr	x9, [x9, _simulatedopcount@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_9
; %bb.8:
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	bl	_prt
LBB0_9:
Lloh34:
	adrp	x8, _OP_SKIPPED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _OP_SKIPPED@GOTPAGEOFF]
Lloh36:
	adrp	x9, _OP_MAPREAD@GOTPAGE
Lloh37:
	ldr	x9, [x9, _OP_MAPREAD@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	ldr	w1, [x9]
	mov	x2, x19
	mov	w3, #0
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_log4
LBB0_11:
Lloh40:
	adrp	x8, _OP_MAPREAD@GOTPAGE
Lloh41:
	ldr	x8, [x8, _OP_MAPREAD@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, x20
	mov	w3, #0
	bl	_log4
Lloh43:
	adrp	x8, _testcalls@GOTPAGE
Lloh44:
	ldr	x8, [x8, _testcalls@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _simulatedopcount@GOTPAGE
Lloh47:
	ldr	x9, [x9, _simulatedopcount@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_26
; %bb.12:
Lloh49:
	adrp	x9, _quiet@GOTPAGE
Lloh50:
	ldr	x9, [x9, _quiet@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	cbnz	w9, LBB0_21
; %bb.13:
Lloh52:
	adrp	x9, _progressinterval@GOTPAGE
Lloh53:
	ldr	x9, [x9, _progressinterval@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	cbz	w9, LBB0_15
; %bb.14:
	sdiv	w10, w8, w9
	msub	w9, w10, w9, w8
	cbz	w9, LBB0_20
LBB0_15:
Lloh55:
	adrp	x9, _debug@GOTPAGE
Lloh56:
	ldr	x9, [x9, _debug@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cbz	x9, LBB0_21
; %bb.16:
Lloh58:
	adrp	x9, _monitorstart@GOTPAGE
Lloh59:
	ldr	x9, [x9, _monitorstart@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	cmn	w9, #1
	b.eq	LBB0_20
; %bb.17:
	cmp	w21, w9
	b.ls	LBB0_21
; %bb.18:
Lloh61:
	adrp	x9, _monitorend@GOTPAGE
Lloh62:
	ldr	x9, [x9, _monitorend@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	cmn	w9, #1
	b.eq	LBB0_20
; %bb.19:
	cmp	w19, w9
	b.hi	LBB0_21
LBB0_20:
	sub	w9, w21, #1
	stp	x8, x19, [sp]
	stp	x9, x20, [sp, #16]
Lloh64:
	adrp	x0, l_.str.2@PAGE
Lloh65:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_prt
LBB0_21:
Lloh66:
	adrp	x8, _page_mask@GOTPAGE
Lloh67:
	ldr	x8, [x8, _page_mask@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	and	w23, w8, w19
	add	w21, w23, w20
Lloh69:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh70:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh71:
	ldr	w2, [x8]
Lloh72:
	adrp	x8, _MAP_FILE@GOTPAGE
Lloh73:
	ldr	x8, [x8, _MAP_FILE@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
Lloh75:
	adrp	x9, _MAP_SHARED@GOTPAGE
Lloh76:
	ldr	x9, [x9, _MAP_SHARED@GOTPAGEOFF]
Lloh77:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh78:
	adrp	x8, _fd@GOTPAGE
Lloh79:
	ldr	x8, [x8, _fd@GOTPAGEOFF]
Lloh80:
	ldr	w4, [x8]
	sub	w5, w19, w23
	mov	w0, #0
	mov	x1, x21
	bl	_mmap
	mov	x22, x0
	cmn	x0, #1
	b.ne	LBB0_23
; %bb.22:
Lloh81:
	adrp	x0, l_.str.3@PAGE
Lloh82:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_prterr
	mov	w0, #190
	bl	_report_failure
LBB0_23:
Lloh83:
	adrp	x8, _temp_buf@GOTPAGE
Lloh84:
	ldr	x8, [x8, _temp_buf@GOTPAGEOFF]
Lloh85:
	ldr	w0, [x8]
	add	x1, x22, x23
	mov	x2, x20
	bl	_memcpy
Lloh86:
	adrp	x0, l_.str.4@PAGE
Lloh87:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	bl	_check_eofpage
	mov	x0, x22
	mov	x1, x21
	bl	_munmap
	cbz	x0, LBB0_25
; %bb.24:
Lloh88:
	adrp	x0, l_.str.5@PAGE
Lloh89:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_prterr
	mov	w0, #191
	bl	_report_failure
LBB0_25:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_check_buffers
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh38
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh88, Lloh89
	.cfi_endproc
                                        ; -- End function
	.comm	_readbdy,4,2                    ; @readbdy
	.comm	_quiet,4,2                      ; @quiet
	.comm	_testcalls,4,2                  ; @testcalls
	.comm	_simulatedopcount,4,2           ; @simulatedopcount
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skipping zero size read\n"

	.comm	_OP_SKIPPED,4,2                 ; @OP_SKIPPED
	.comm	_OP_MAPREAD,4,2                 ; @OP_MAPREAD
	.comm	_file_size,4,2                  ; @file_size
l_.str.1:                               ; @.str.1
	.asciz	"skipping seek/read past end of file\n"

	.comm	_progressinterval,4,2           ; @progressinterval
	.comm	_debug,8,3                      ; @debug
	.comm	_monitorstart,4,2               ; @monitorstart
	.comm	_monitorend,4,2                 ; @monitorend
l_.str.2:                               ; @.str.2
	.asciz	"%lu mapread\t0x%x thru\t0x%x\t(0x%x bytes)\n"

	.comm	_page_mask,4,2                  ; @page_mask
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_FILE,4,2                   ; @MAP_FILE
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_fd,4,2                         ; @fd
l_.str.3:                               ; @.str.3
	.asciz	"domapread: mmap"

	.comm	_temp_buf,4,2                   ; @temp_buf
l_.str.4:                               ; @.str.4
	.asciz	"Read"

l_.str.5:                               ; @.str.5
	.asciz	"domapread: munmap"

.subsections_via_symbols
