	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_page
_read_page:                             ## @read_page
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	callq	_file_inode
	movq	%rax, %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%r13, %rdx
	shlq	%cl, %rdx
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movb	(%r14), %cl
	movl	$1, %esi
	shll	%cl, %esi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_alloc_page_buffers
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_attach_page_buffers
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	subl	(%r14), %ecx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %r13
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	4(%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rax
	movq	%r15, %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, (%r12)
	xorl	%ebx, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movq	8(%r12), %r12
	testq	%r12, %r12
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %r15
	movq	%rax, %r14
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_bmap
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movzbl	(%rbx), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	cltq
	movq	%r15, %rbx
	subq	%rax, %rbx
	movl	$0, %eax
	cmovbq	%rax, %rbx
	movq	_end_bitmap_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	%r14, 16(%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_inc
	movq	%r12, %rdi
	callq	_set_buffer_locked
	movq	%r12, %rdi
	callq	_set_buffer_mapped
	movq	_REQ_OP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_submit_bh
	movq	%r14, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_12:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, (%r14)
	movl	8(%rax), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %r14
	callq	_atomic_read
	xorl	%esi, %esi
	testq	%rax, %rax
	sete	%sil
	movl	%ebx, %edi
	callq	_wait_event
	movq	_BITMAP_WRITE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_EIO@GOTPCREL(%rip), %rdx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rdx
LBB0_2:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	movq	_EINVAL@GOTPCREL(%rip), %rdx
LBB0_8:
	movl	(%rdx), %ebx
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.9:
	negl	%ebx
	movl	(%r15), %esi
	movb	(%rcx), %cl
	shlq	%cl, %r13
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_pr_err
	movl	%ebx, %eax
	jmp	LBB0_15
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read bitmap file (%dB @ %llu)\n"

	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_end_bitmap_write,4,2           ## @end_bitmap_write
	.comm	_REQ_OP_READ,4,2                ## @REQ_OP_READ
	.comm	_BITMAP_WRITE_ERROR,4,2         ## @BITMAP_WRITE_ERROR
	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"md: bitmap read error: (%dB @ %llu): %d\n"

	.no_dead_strip	_read_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_page
_read_page:                             ; @read_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	bl	_file_inode
	mov	x23, x0
Lloh0:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh2:
	adrp	x26, _PAGE_SHIFT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	x8, [x26]
	lsl	x2, x19, x8
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x23]
	mov	w27, #1
	lsl	w1, w27, w8
	mov	x0, x21
	mov	w2, #0
	bl	_alloc_page_buffers
	cbz	x0, LBB0_10
; %bb.1:
	mov	x24, x0
	mov	x0, x21
	mov	x1, x24
	bl	_attach_page_buffers
	ldr	x8, [x26]
	ldrsw	x9, [x23]
	sub	x8, x8, x9
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	lsl	x26, x19, x8
	add	x25, x20, #4
Lloh6:
	adrp	x19, _end_bitmap_write@GOTPAGE
Lloh7:
	ldr	x19, [x19, _end_bitmap_write@GOTPAGEOFF]
Lloh8:
	adrp	x28, _REQ_OP_READ@GOTPAGE
Lloh9:
	ldr	x28, [x28, _REQ_OP_READ@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x24]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldr	x24, [x24, #8]
	cbz	x24, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x22, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x26
	bl	_bmap
	str	x0, [x24]
	cbz	x0, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
	ldr	w9, [x23]
	lsl	w9, w27, w9
	subs	x9, x22, w9, sxtw
	csel	x22, xzr, x9, lo
	ldr	w9, [x19]
	stp	w9, w8, [x24, #24]
	str	x20, [x24, #16]
	mov	x0, x25
	bl	_atomic_inc
	mov	x0, x24
	bl	_set_buffer_locked
	mov	x0, x24
	bl	_set_buffer_mapped
	ldr	w0, [x28]
	mov	w1, #0
	mov	x2, x24
	bl	_submit_bh
	b	LBB0_3
LBB0_7:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	str	x19, [x21]
	ldr	w21, [x20, #8]
	mov	x0, x25
	bl	_atomic_read
	cmp	x0, #0
	cset	w1, eq
	mov	x0, x21
	bl	_wait_event
Lloh10:
	adrp	x8, _BITMAP_WRITE_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BITMAP_WRITE_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_9
; %bb.8:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh16:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
Lloh17:
	adrp	x26, _PAGE_SHIFT@GOTPAGE
Lloh18:
	ldr	x26, [x26, _PAGE_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
LBB0_9:
	mov	w20, #0
	b	LBB0_12
LBB0_10:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
LBB0_11:
	neg	w20, w8
	ldr	w1, [x25]
	ldr	x8, [x26]
	lsl	x2, x19, x8
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_pr_err
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
Lloh25:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh26:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
Lloh27:
	adrp	x26, _PAGE_SHIFT@GOTPAGE
Lloh28:
	ldr	x26, [x26, _PAGE_SHIFT@GOTPAGEOFF]
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
	b	LBB0_9
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read bitmap file (%dB @ %llu)\n"

	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_end_bitmap_write,4,2           ; @end_bitmap_write
	.comm	_REQ_OP_READ,4,2                ; @REQ_OP_READ
	.comm	_BITMAP_WRITE_ERROR,4,2         ; @BITMAP_WRITE_ERROR
	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"md: bitmap read error: (%dB @ %llu): %d\n"

	.no_dead_strip	_read_page
.subsections_via_symbols
