	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function end_reshape_write
_end_reshape_write:                     ## @end_reshape_write
	.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	%rdi, %r13
	callq	_get_resync_r10bio
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r12
	leaq	-60(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_find_bio_disk
	cmpl	$0, -44(%rbp)
	je	LBB0_1
## %bb.2:
	movq	(%r12), %rcx
	movslq	%eax, %r14
	movq	%r14, %rax
	shlq	$4, %rax
	movq	8(%rcx,%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_3
LBB0_1:
	movslq	%eax, %r14
LBB0_3:
	xorl	%eax, %eax
	callq	_smp_mb
	movq	(%r12), %rax
	shlq	$4, %r14
	movq	(%rax,%r14), %rbx
LBB0_4:
	cmpq	$0, (%r13)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_md_error
LBB0_6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rdev_dec_pending
	movq	%r15, %rdi
	callq	_end_reshape_request
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_end_reshape_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function end_reshape_write
_end_reshape_write:                     ; @end_reshape_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
	bl	_get_resync_r10bio
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x22, [x20]
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_find_bio_disk
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x22]
	add	x8, x8, w0, sxtw #4
	ldr	x23, [x8, #8]
	cbnz	x23, LBB0_4
; %bb.2:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_3:
	sxtw	x23, w0
	bl	_smp_mb
	ldr	x8, [x22]
	lsl	x9, x23, #4
	ldr	x23, [x8, x9]
LBB0_4:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x23
	bl	_md_error
LBB0_6:
	mov	x0, x23
	mov	x1, x20
	bl	_rdev_dec_pending
	mov	x0, x19
	bl	_end_reshape_request
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_end_reshape_write
.subsections_via_symbols
