	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ppl_write_stripe               ## -- Begin function ppl_write_stripe
	.p2align	4, 0x90
_ppl_write_stripe:                      ## @ppl_write_stripe
	.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
	movq	%rsi, %rbx
	cmpq	$0, 40(%rsi)
	jne	LBB0_5
## %bb.1:
	movq	(%rdi), %r14
	movq	_STRIPE_SYNCING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	movq	_STRIPE_LOG_TRAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_9:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, 32(%rbx)
	je	LBB0_5
## %bb.3:
	movq	_R5_Wantwrite@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	shlq	$2, %rsi
	addq	24(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_R5_Insync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	shlq	$2, %rsi
	addq	24(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	8(%r14), %r13
	movq	(%rbx), %r12
	shlq	$4, %r12
	leaq	(%r12,%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	8(%r13,%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	_Faulty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	jmp	LBB0_9
LBB0_10:
	movq	_STRIPE_LOG_TRAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	_STRIPE_DELAYED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	leaq	12(%rbx), %rdi
	callq	_atomic_inc
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ppl_log_stripe
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_spin_lock_irq
	addq	$8, %rbx
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_spin_unlock_irq
LBB0_12:
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_STRIPE_SYNCING,4,2             ## @STRIPE_SYNCING
	.comm	_R5_Wantwrite,4,2               ## @R5_Wantwrite
	.comm	_R5_Insync,4,2                  ## @R5_Insync
	.comm	_STRIPE_LOG_TRAPPED,4,2         ## @STRIPE_LOG_TRAPPED
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_STRIPE_DELAYED,4,2             ## @STRIPE_DELAYED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ppl_write_stripe               ; -- Begin function ppl_write_stripe
	.p2align	2
_ppl_write_stripe:                      ; @ppl_write_stripe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	x8, [x1, #40]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _STRIPE_SYNCING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRIPE_SYNCING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x19, #16
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _STRIPE_LOG_TRAPPED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRIPE_LOG_TRAPPED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_clear_bit
LBB0_3:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_2
; %bb.6:
Lloh9:
	adrp	x8, _R5_Wantwrite@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R5_Wantwrite@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
	ldr	x9, [x19]
	add	x1, x8, x9, lsl #2
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.7:
Lloh12:
	adrp	x8, _R5_Insync@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R5_Insync@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
	ldr	x9, [x19]
	add	x1, x8, x9, lsl #2
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	x9, [x19]
	add	x22, x8, x9, lsl #4
	mov	x0, x22
	bl	_mutex_lock
	ldr	x1, [x22, #8]
	cbz	x1, LBB0_10
; %bb.9:
Lloh15:
	adrp	x8, _Faulty@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Faulty@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_test_bit
	cbz	x0, LBB0_11
LBB0_10:
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_3
LBB0_11:
Lloh18:
	adrp	x8, _STRIPE_LOG_TRAPPED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _STRIPE_LOG_TRAPPED@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
Lloh21:
	adrp	x8, _STRIPE_DELAYED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STRIPE_DELAYED@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	add	x0, x19, #12
	bl	_atomic_inc
	mov	x0, x22
	mov	x1, x19
	bl	_ppl_log_stripe
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_spin_lock_irq
	add	x0, x19, #8
	add	x1, x20, #4
	bl	_list_add_tail
	mov	x0, x20
	bl	_spin_unlock_irq
LBB0_13:
	mov	x0, x22
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_4
	.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	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_STRIPE_SYNCING,4,2             ; @STRIPE_SYNCING
	.comm	_R5_Wantwrite,4,2               ; @R5_Wantwrite
	.comm	_R5_Insync,4,2                  ; @R5_Insync
	.comm	_STRIPE_LOG_TRAPPED,4,2         ; @STRIPE_LOG_TRAPPED
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_STRIPE_DELAYED,4,2             ; @STRIPE_DELAYED
.subsections_via_symbols
