	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test
_test:                                  ## @test
	.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
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_data@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%edi, %rbx
	movq	(%rax,%rbx,8), %rcx
	movq	_recovi@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	8(%rax,%rbx,8), %rcx
	movq	_recovj@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	16(%rax,%rbx,8), %rax
	movq	_spare@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	%ebx, %edi
	callq	_makedata
	movq	(%r12), %rax
	movq	-16(%rax,%rbx,8), %rdi
	callq	_page_address
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rcx, %r13
	movl	%eax, %edi
	movl	$238, %esi
	callq	_memset
	movq	(%r12), %rax
	movq	-8(%rax,%rbx,8), %rdi
	callq	_page_address
	movl	(%r13), %edx
	movl	%eax, %edi
	movl	$238, %esi
	callq	_memset
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	callq	_init_completion
	movq	_ASYNC_TX_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_addr_conv@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%r13d, %r13d
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_init_async_submit
	movq	_dataptrs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	movl	%r15d, %edx
	movq	%rbx, %r8
	callq	_async_gen_syndrome
	movq	%rax, %rdi
	callq	_async_tx_issue_pending
	movl	$3000, %edi                     ## imm = 0xBB8
	callq	_msecs_to_jiffies
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr
	cmpl	$2, %r15d
	jl	LBB0_2
## %bb.4:
	leal	-1(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_2
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	%eax, %r12d
	leal	1(%r12), %ebx
	cmpl	%r15d, %ebx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jge	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	(%r14)
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_test_disks
	addl	%eax, %r13d
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_7
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr
	movl	$1, %r13d
LBB0_2:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_data,8,3                       ## @data
	.comm	_recovi,8,3                     ## @recovi
	.comm	_recovj,8,3                     ## @recovj
	.comm	_spare,8,3                      ## @spare
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ASYNC_TX_ACK,4,2               ## @ASYNC_TX_ACK
	.comm	_callback,4,2                   ## @callback
	.comm	_addr_conv,4,2                  ## @addr_conv
	.comm	_dataptrs,4,2                   ## @dataptrs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error: initial gen_syndrome(%d) timed out\n"

L_.str.1:                               ## @.str.1
	.asciz	"testing the %d-disk case...\n"

	.no_dead_strip	_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test
_test:                                  ; @test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _data@GOTPAGE
Lloh1:
	ldr	x21, [x21, _data@GOTPAGEOFF]
	ldr	x8, [x21]
	sxtw	x22, w19
	sbfiz	x23, x19, #3, #32
	add	x8, x8, x23
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _recovi@GOTPAGE
Lloh3:
	ldr	x10, [x10, _recovi@GOTPAGEOFF]
Lloh4:
	str	x9, [x10]
Lloh5:
	adrp	x9, _recovj@GOTPAGE
Lloh6:
	ldr	x9, [x9, _recovj@GOTPAGEOFF]
	ldr	x10, [x8, #8]
Lloh7:
	str	x10, [x9]
	ldr	x8, [x8, #16]
Lloh8:
	adrp	x9, _spare@GOTPAGE
Lloh9:
	ldr	x9, [x9, _spare@GOTPAGEOFF]
Lloh10:
	str	x8, [x9]
	bl	_makedata
	ldr	x8, [x21]
	add	x8, x23, x8
	ldur	x0, [x8, #-16]
	bl	_page_address
Lloh11:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #238
	bl	_memset
	ldr	x8, [x21]
	sub	x24, x22, #1
	ldr	x0, [x8, x24, lsl #3]
	bl	_page_address
	ldr	w2, [x23]
	mov	w1, #238
	bl	_memset
	mov	x0, sp
	bl	_init_completion
Lloh13:
	adrp	x8, _ASYNC_TX_ACK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ASYNC_TX_ACK@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _callback@GOTPAGE
Lloh17:
	ldr	x8, [x8, _callback@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	adrp	x8, _addr_conv@GOTPAGE
Lloh20:
	ldr	x8, [x8, _addr_conv@GOTPAGEOFF]
Lloh21:
	ldr	w5, [x8]
	add	x0, sp, #8
	mov	x4, sp
	mov	x2, #0
	bl	_init_async_submit
Lloh22:
	adrp	x8, _dataptrs@GOTPAGE
Lloh23:
	ldr	x8, [x8, _dataptrs@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w3, [x23]
	add	x4, sp, #8
	mov	w1, #0
	mov	x2, x19
	bl	_async_gen_syndrome
	bl	_async_tx_issue_pending
	mov	w0, #3000
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, sp
	bl	_wait_for_completion_timeout
	cbz	x0, LBB0_7
; %bb.1:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pr
	cmp	w19, #2
	b.lt	LBB0_8
; %bb.2:
	mov	w25, #0
	mov	w21, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w25, w24
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x22, x25
	add	w25, w25, #1
	cmp	w25, w19
	b.ge	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x25
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x19
	bl	_test_disks
	add	w21, w21, w0
	add	w23, w23, #1
	cmp	w19, w23
	b.ne	LBB0_6
	b	LBB0_3
LBB0_7:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr
	mov	w21, #1
	b	LBB0_9
LBB0_8:
	mov	w21, #0
LBB0_9:
	mov	x0, x21
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_data,8,3                       ; @data
	.comm	_recovi,8,3                     ; @recovi
	.comm	_recovj,8,3                     ; @recovj
	.comm	_spare,8,3                      ; @spare
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ASYNC_TX_ACK,4,2               ; @ASYNC_TX_ACK
	.comm	_callback,4,2                   ; @callback
	.comm	_addr_conv,4,2                  ; @addr_conv
	.comm	_dataptrs,4,2                   ; @dataptrs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error: initial gen_syndrome(%d) timed out\n"

l_.str.1:                               ; @.str.1
	.asciz	"testing the %d-disk case...\n"

	.no_dead_strip	_test
.subsections_via_symbols
