	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function end_reshape
_end_reshape:                           ## @end_reshape
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MD_RECOVERY_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	addq	$16, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	leaq	24(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rax
	movq	%rax, 48(%rbx)
	callq	_md_finish_reshape
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	_MaxSector@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	%rax, 32(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movq	8(%rbx), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.2:
	movl	(%rax), %eax
	shll	$9, %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	imull	16(%rbx), %eax
	cltd
	idivl	20(%rbx)
	movq	(%rcx), %rcx
	addl	%eax, %eax
	cmpl	%eax, (%rcx)
	jge	LBB0_4
## %bb.3:
	movl	%eax, (%rcx)
LBB0_4:
	movq	$0, (%rbx)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MD_RECOVERY_INTR,4,2           ## @MD_RECOVERY_INTR
	.comm	_MaxSector,8,3                  ## @MaxSector
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_end_reshape
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function end_reshape
_end_reshape:                           ; @end_reshape
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MD_RECOVERY_INTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MD_RECOVERY_INTR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	add	x1, x8, #16
	bl	_test_bit
	cbnz	x0, LBB0_5
; %bb.1:
	add	x20, x19, #24
	mov	x0, x20
	bl	_spin_lock_irq
	ldp	x0, x8, [x19, #8]
	str	x8, [x19, #48]
	bl	_md_finish_reshape
	bl	_smp_wmb
Lloh3:
	adrp	x8, _MaxSector@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MaxSector@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #32]
	mov	x0, x20
	bl	_spin_unlock_irq
	ldr	x9, [x19, #8]
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w9, [x9]
	lsl	w9, w9, #9
Lloh6:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	sdiv	w9, w9, w10
	ldp	w10, w11, [x19, #16]
	mul	w9, w9, w10
	sdiv	w9, w9, w11
	ldr	x8, [x8]
	ldr	w10, [x8]
	lsl	w9, w9, #1
	cmp	w10, w9
	b.ge	LBB0_4
; %bb.3:
	str	w9, [x8]
LBB0_4:
	str	xzr, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MD_RECOVERY_INTR,4,2           ; @MD_RECOVERY_INTR
	.comm	_MaxSector,8,3                  ; @MaxSector
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_end_reshape
.subsections_via_symbols
