	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max_sync_store
_max_sync_store:                        ## @max_sync_store
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	28(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_EINVAL@GOTPCREL(%rip), %r14
	movl	(%r14), %r13d
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtoull
	testq	%rax, %rax
	jne	LBB0_11
## %bb.3:
	movq	-56(%rbp), %rax
	cmpq	8(%r12), %rax
	jb	LBB0_11
## %bb.4:
	cmpq	(%r12), %rax
	jae	LBB0_7
## %bb.5:
	cmpq	$0, 16(%r12)
	je	LBB0_6
LBB0_7:
	movl	24(%r12), %esi
	testl	%esi, %esi
	je	LBB0_9
## %bb.8:
	movq	-56(%rbp), %rdi
	movl	(%r14), %r13d
	callq	_sector_div
	testq	%rax, %rax
	jne	LBB0_11
LBB0_9:
	movq	-56(%rbp), %rax
	movq	%rax, (%r12)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_1:
	movq	_MaxSector@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_10:
	addq	$32, %r12
	movq	%r12, %rdi
	callq	_wake_up
	movq	%r15, %rdi
	callq	_spin_unlock
	jmp	LBB0_13
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_MD_RECOVERY_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	36(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
LBB0_11:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_spin_unlock
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.12:
	negl	%r13d
	movslq	%r13d, %r14
LBB0_13:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"max"

	.comm	_MaxSector,8,3                  ## @MaxSector
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MD_RECOVERY_RUNNING,4,2        ## @MD_RECOVERY_RUNNING
	.no_dead_strip	_max_sync_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max_sync_store
_max_sync_store:                        ; @max_sync_store
	.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	x19, x2
	mov	x22, x1
	mov	x21, x0
	add	x20, x0, #28
	mov	x0, x20
	bl	_spin_lock
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_8
; %bb.1:
Lloh2:
	adrp	x24, _EINVAL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
	ldr	w23, [x24]
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtoull
	cbnz	x0, LBB0_11
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.lo	LBB0_11
; %bb.3:
	ldr	x9, [x21]
	cmp	x8, x9
	b.hs	LBB0_5
; %bb.4:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_10
LBB0_5:
	ldr	w1, [x21, #24]
	cbz	w1, LBB0_7
; %bb.6:
	ldr	x0, [sp, #8]
	ldr	w23, [x24]
	bl	_sector_div
	cbnz	x0, LBB0_11
LBB0_7:
	ldr	x8, [sp, #8]
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x8, _MaxSector@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MaxSector@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
LBB0_9:
	str	x8, [x21]
	add	x0, x21, #32
	bl	_wake_up
	mov	x0, x20
	bl	_spin_unlock
	b	LBB0_13
LBB0_10:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
Lloh10:
	adrp	x8, _MD_RECOVERY_RUNNING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MD_RECOVERY_RUNNING@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, x21, #36
	bl	_test_bit
	cbz	x0, LBB0_5
LBB0_11:
	mov	x0, x20
	bl	_spin_unlock
	cbz	w23, LBB0_13
; %bb.12:
	neg	w8, w23
	sxtw	x19, w8
LBB0_13:
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"max"

	.comm	_MaxSector,8,3                  ; @MaxSector
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MD_RECOVERY_RUNNING,4,2        ; @MD_RECOVERY_RUNNING
	.no_dead_strip	_max_sync_store
.subsections_via_symbols
