	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_syndrome_sources
_set_syndrome_sources:                  ## @set_syndrome_sources
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	(%rsi), %ebx
	leal	-2(%rbx), %eax
	cmpq	$0, 24(%rsi)
	cmovnel	%ebx, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_raid6_d0
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.1:
	leaq	(,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	___bzero
LBB0_2:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -56(%rbp)
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r13, %rsi
	leaq	-56(%rbp), %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_raid6_idx_to_slot
	movl	%eax, %ebx
	movq	16(%r13), %r12
	movslq	%r14d, %r15
	cmpl	4(%r13), %r15d
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	8(%r13), %r14d
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_SYNDROME_SRC_ALL@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_SYNDROME_SRC_WANT_DRAIN@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_R5_Wantdrain@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rax
	shlq	$5, %rax
	leaq	(%r12,%rax), %rsi
	addq	$16, %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_R5_InJournal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_SYNDROME_SRC_WRITTEN@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rax
	shlq	$5, %rax
	cmpq	$0, 24(%r12,%rax)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_R5_InJournal@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	(%r12,%rax), %rsi
	addq	$16, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_R5_InJournal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shlq	$5, %r15
	leaq	(%r12,%r15), %rsi
	addq	$16, %rsi
	callq	_test_bit
	movq	16(%r13), %rcx
	leaq	(%rcx,%r15), %rdx
	testq	%rax, %rax
	leaq	8(%rcx,%r15), %rax
	cmoveq	%rdx, %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_raid6_next_disk
	movl	%eax, %r14d
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_3
## %bb.14:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYNDROME_SRC_ALL,4,2           ## @SYNDROME_SRC_ALL
	.comm	_SYNDROME_SRC_WANT_DRAIN,4,2    ## @SYNDROME_SRC_WANT_DRAIN
	.comm	_R5_Wantdrain,4,2               ## @R5_Wantdrain
	.comm	_R5_InJournal,4,2               ## @R5_InJournal
	.comm	_SYNDROME_SRC_WRITTEN,4,2       ## @SYNDROME_SRC_WRITTEN
	.no_dead_strip	_set_syndrome_sources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_syndrome_sources
_set_syndrome_sources:                  ; @set_syndrome_sources
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w22, [x1]
	ldr	x8, [x1, #24]
	sub	w9, w22, #2
	cmp	x8, #0
	csel	w23, w9, w22, eq
	mov	x0, x1
	bl	_raid6_d0
	mov	x24, x0
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.1:
	lsl	x1, x22, #3
	mov	x0, x21
	bl	_bzero
LBB0_2:
	str	wzr, [sp, #12]
	mov	x27, x24
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x27
	mov	x1, x20
	mov	x3, x23
	bl	_raid6_idx_to_slot
	mov	x26, x0
	ldr	x28, [x20, #16]
	sxtw	x25, w27
	ldr	w8, [x20, #4]
	cmp	w27, w8
	b.eq	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #8]
Lloh0:
	adrp	x9, _SYNDROME_SRC_ALL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SYNDROME_SRC_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w25, w8
	ccmp	w9, w19, #4, ne
	b.eq	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh3:
	adrp	x8, _SYNDROME_SRC_WANT_DRAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYNDROME_SRC_WANT_DRAIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x8, _R5_Wantdrain@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R5_Wantdrain@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x8, x28, x25, lsl #5
	add	x27, x8, #16
	mov	x1, x27
	bl	_test_bit
	cbnz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x8, _R5_InJournal@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R5_InJournal@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x27
	bl	_test_bit
	cbnz	x0, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh12:
	adrp	x8, _SYNDROME_SRC_WRITTEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYNDROME_SRC_WRITTEN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x28, x25, lsl #5
	ldr	x9, [x8, #24]
	cbnz	x9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh15:
	adrp	x9, _R5_InJournal@GOTPAGE
Lloh16:
	ldr	x9, [x9, _R5_InJournal@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x9]
	add	x1, x8, #16
	bl	_test_bit
	cbz	x0, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x8, _R5_InJournal@GOTPAGE
Lloh19:
	ldr	x8, [x8, _R5_InJournal@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	lsl	x27, x25, #5
	add	x8, x28, x27
	add	x1, x8, #16
	bl	_test_bit
	ldr	x8, [x20, #16]
	add	x8, x8, x27
	add	x9, x8, #8
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	str	x8, [x21, w26, sxtw #3]
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x22
	bl	_raid6_next_disk
	mov	x27, x0
	cmp	w0, w24
	b.ne	LBB0_3
; %bb.13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SYNDROME_SRC_ALL,4,2           ; @SYNDROME_SRC_ALL
	.comm	_SYNDROME_SRC_WANT_DRAIN,4,2    ; @SYNDROME_SRC_WANT_DRAIN
	.comm	_R5_Wantdrain,4,2               ; @R5_Wantdrain
	.comm	_R5_InJournal,4,2               ; @R5_InJournal
	.comm	_SYNDROME_SRC_WRITTEN,4,2       ; @SYNDROME_SRC_WRITTEN
	.no_dead_strip	_set_syndrome_sources
.subsections_via_symbols
