	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crosstest
_crosstest:                             ## @crosstest
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_info
	movq	_pgsize@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movslq	(%r14), %r14
	movq	_ebcnt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movq	_bbt@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_mtd@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	xorl	%esi, %esi
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rsi,8)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	(%rdi), %r13d
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_5
LBB0_7:
	movl	4(%rdi), %r15d
	movq	(%rcx), %rcx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rax), %edx
	movslq	%edx, %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	subl	(%rdi), %r15d
	decq	%rax
	jne	LBB0_8
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_3:
	movq	_mtd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	4(%rdi), %r15d
	xorl	%r13d, %r13d
LBB0_10:
	movl	%r15d, %esi
	subl	%r14d, %esi
	subl	%r14d, %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_mtdtest_read
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:
	movq	_pgsize@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	subl	%edx, %esi
	subl	%edx, %esi
	subl	%edx, %esi
	movq	_mtd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r12, %rcx
	callq	_mtdtest_read
	testl	%eax, %eax
	je	LBB0_13
LBB0_11:
	movl	%eax, %ebx
LBB0_14:
	movq	%r12, %rdi
	callq	_kfree
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r12, %rbx
	addq	%r14, %rbx
	movslq	%r13d, %r13
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_mtd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_pgsize@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %esi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	callq	_mtdtest_read
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	_pgsize@GOTPCREL(%rip), %rax
	jne	LBB0_14
## %bb.15:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	%r14, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	movslq	(%rax), %rax
	movslq	%r15d, %rbx
	subq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_mtd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r13, %r15
	movl	(%r13), %edx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r13, %rcx
	callq	_mtdtest_read
	testl	%eax, %eax
	jne	LBB0_11
## %bb.16:
	addq	%r14, %r13
	leaq	L_.str.1(%rip), %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_mtd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r15), %edx
	movl	%r14d, %esi
	movq	%r13, %rcx
	callq	_mtdtest_read
	testl	%eax, %eax
	jne	LBB0_11
## %bb.17:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pr_info
	movl	(%r15), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_err
	movq	_errcnt@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_20:
	movq	%r12, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"crosstest\n"

	.comm	_pgsize,4,2                     ## @pgsize
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ebcnt,4,2                      ## @ebcnt
	.comm	_bbt,8,3                        ## @bbt
	.comm	_mtd,8,3                        ## @mtd
L_.str.1:                               ## @.str.1
	.asciz	"reading page at %#llx\n"

L_.str.2:                               ## @.str.2
	.asciz	"verifying pages read at %#llx match\n"

L_.str.3:                               ## @.str.3
	.asciz	"verify failed!\n"

	.comm	_errcnt,4,2                     ## @errcnt
L_.str.4:                               ## @.str.4
	.asciz	"crosstest ok\n"

	.no_dead_strip	_crosstest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crosstest
_crosstest:                             ; @crosstest
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh2:
	adrp	x25, _pgsize@GOTPAGE
Lloh3:
	ldr	x25, [x25, _pgsize@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldrsw	x21, [x25]
Lloh7:
	adrp	x8, _ebcnt@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ebcnt@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, #0
	b.le	LBB0_9
; %bb.2:
	mov	w20, #0
Lloh10:
	adrp	x9, _bbt@GOTPAGE
Lloh11:
	ldr	x9, [x9, _bbt@GOTPAGEOFF]
	ldr	x10, [x9]
Lloh12:
	adrp	x11, _mtd@GOTPAGE
Lloh13:
	ldr	x11, [x11, _mtd@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x11]
	mov	x11, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	cbz	x12, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x0]
	add	w20, w12, w20
	add	x10, x10, #8
	subs	x11, x11, #1
	b.ne	LBB0_3
LBB0_5:
	ldr	w26, [x0, #4]
	ldr	x9, [x9]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	w10, w8, #1
	ldr	x10, [x9, w10, sxtw #3]
	cbz	x10, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x0]
	sub	w26, w26, w10
	subs	x8, x8, #1
	b.ne	LBB0_6
	b	LBB0_10
LBB0_8:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_16
LBB0_9:
	mov	w20, #0
Lloh18:
	adrp	x8, _mtd@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mtd@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
	ldr	w26, [x0, #4]
LBB0_10:
	sub	w1, w26, w21, lsl #1
	mov	x2, x21
	mov	x3, x19
	bl	_mtdtest_read
	cbnz	w0, LBB0_15
; %bb.11:
	ldr	w2, [x25]
	sub	w8, w26, w2
	sub	w1, w8, w2, lsl #1
Lloh21:
	adrp	x27, _mtd@GOTPAGE
Lloh22:
	ldr	x27, [x27, _mtd@GOTPAGEOFF]
	ldr	x0, [x27]
	mov	x3, x19
	bl	_mtdtest_read
	cbnz	w0, LBB0_15
; %bb.12:
	add	x22, x19, x21
	sxtw	x28, w20
	str	x28, [sp]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	ldr	x0, [x27]
	ldr	w2, [x25]
	mov	x1, x20
	mov	x3, x22
	bl	_mtdtest_read
	cbnz	w0, LBB0_15
; %bb.13:
	add	x24, x22, x21
	ldrsw	x8, [x25]
	sxtw	x9, w26
	sub	x23, x9, x8
	str	x23, [sp]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	ldr	x0, [x27]
	ldr	w2, [x25]
	mov	x1, x23
	mov	x3, x24
	bl	_mtdtest_read
	cbnz	w0, LBB0_15
; %bb.14:
	add	x21, x24, x21
	str	x28, [sp]
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	ldr	x0, [x27]
	ldr	w2, [x25]
	mov	x1, x20
	mov	x3, x21
	bl	_mtdtest_read
	cbz	w0, LBB0_17
LBB0_15:
	mov	x23, x0
	mov	x0, x19
	bl	_kfree
LBB0_16:
	mov	x0, x23
	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_17:
	str	x28, [sp]
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	ldr	w2, [x25]
	mov	x0, x22
	mov	x1, x21
	bl	_memcmp
	cbz	x0, LBB0_19
; %bb.18:
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
Lloh33:
	adrp	x8, _errcnt@GOTPAGE
Lloh34:
	ldr	x8, [x8, _errcnt@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_20
LBB0_19:
Lloh35:
	adrp	x0, l_.str.4@PAGE
Lloh36:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_info
LBB0_20:
	mov	x0, x19
	bl	_kfree
	mov	w23, #0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"crosstest\n"

	.comm	_pgsize,4,2                     ; @pgsize
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ebcnt,4,2                      ; @ebcnt
	.comm	_bbt,8,3                        ; @bbt
	.comm	_mtd,8,3                        ; @mtd
l_.str.1:                               ; @.str.1
	.asciz	"reading page at %#llx\n"

l_.str.2:                               ; @.str.2
	.asciz	"verifying pages read at %#llx match\n"

l_.str.3:                               ; @.str.3
	.asciz	"verify failed!\n"

	.comm	_errcnt,4,2                     ; @errcnt
l_.str.4:                               ; @.str.4
	.asciz	"crosstest ok\n"

	.no_dead_strip	_crosstest
.subsections_via_symbols
