	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cluster_check_sync_size
_cluster_check_sync_size:               ## @cluster_check_sync_size
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	8(%rdi), %r13d
	movq	_md_cluster_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	callq	*(%rax)
	movl	%eax, %r14d
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_kmap_atomic
	movq	(%rax), %rcx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	callq	_kunmap_atomic
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	testl	%r13d, %r13d
	jle	LBB0_1
## %bb.2:
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	%r14d, -124(%rbp)               ## 4-byte Spill
	movq	%r15, -144(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rcx
	movl	%r14d, %r13d
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	callq	_kunmap_atomic
	movq	%r12, %rdi
	callq	_md_bitmap_free
	movl	-124(%rbp), %r14d               ## 4-byte Reload
	movq	-144(%rbp), %r15                ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	%ebx, %r13d
	je	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, %r14d
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_get_bitmap_from_slot
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %r14d
	leaq	-112(%rbp), %r13
	movq	%r13, %rdi
	movl	$64, %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_lockres_init
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	movq	_DLM_LKF_NOQUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	movq	_DLM_LOCK_PW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dlm_lock_sync
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_md_bitmap_update_sb
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_lockres_free
	movl	(%r12), %edi
	callq	_kmap_atomic
	movq	%rax, %rdi
	movq	(%rax), %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rax, %rcx
	movl	%r14d, %r13d
	je	LBB0_12
## %bb.16:
	callq	_kunmap_atomic
	jmp	LBB0_17
LBB0_1:
	movq	%rax, -120(%rbp)                ## 8-byte Spill
LBB0_14:
	xorl	%eax, %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	cmpq	%rcx, -136(%rbp)                ## 8-byte Folded Reload
	setne	%al
	negl	%eax
	jmp	LBB0_19
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_18
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	leaq	-112(%rbp), %rsi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_17:
	movq	%r12, %rdi
	callq	_md_bitmap_free
LBB0_18:
	movl	$-1, %eax
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_md_cluster_ops,8,3             ## @md_cluster_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't get bitmap from slot %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"bitmap%04d"

L_.str.2:                               ## @.str.2
	.asciz	"md-cluster: Cannot initialize %s\n"

	.comm	_DLM_LKF_NOQUEUE,4,2            ## @DLM_LKF_NOQUEUE
	.comm	_DLM_LOCK_PW,4,2                ## @DLM_LOCK_PW
	.no_dead_strip	_cluster_check_sync_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cluster_check_sync_size
_cluster_check_sync_size:               ; @cluster_check_sync_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	ldr	w25, [x0, #8]
Lloh3:
	adrp	x8, _md_cluster_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _md_cluster_ops@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8]
	blr	x8
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_kmap_atomic
	ldr	x8, [x0]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	bl	_kunmap_atomic
	cmp	w25, #1
	b.lt	LBB0_13
; %bb.1:
	mov	w21, #0
	mov	x27, #0
Lloh6:
	adrp	x28, _DLM_LKF_NOQUEUE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _DLM_LKF_NOQUEUE@GOTPAGEOFF]
Lloh8:
	adrp	x26, _DLM_LOCK_PW@GOTPAGE
Lloh9:
	ldr	x26, [x26, _DLM_LOCK_PW@GOTPAGEOFF]
Lloh10:
	adrp	x22, l_.str.1@PAGE
Lloh11:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, x8
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_kunmap_atomic
	mov	x0, x23
	bl	_md_bitmap_free
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	cmp	w25, w21
	b.eq	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, w21
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_get_bitmap_from_slot
	mov	x23, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	mov	w1, #64
	mov	x2, x22
	mov	x3, x21
	bl	_snprintf
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, #0
	mov	w3, #1
	bl	_lockres_init
	cbz	x0, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	ldr	w8, [x28]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	ldr	w1, [x26]
	bl	_dlm_lock_sync
	cbnz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_md_bitmap_update_sb
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_lockres_free
	ldr	w0, [x23]
	bl	_kmap_atomic
	ldr	x8, [x0]
	cbz	x27, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x27, x8
	b.eq	LBB0_3
; %bb.12:
	bl	_kunmap_atomic
	b	LBB0_17
LBB0_13:
	mov	x27, #0
LBB0_14:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x8, x27
	csetm	w0, ne
	b	LBB0_19
LBB0_15:
	str	x21, [sp]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_18
LBB0_16:
	add	x8, sp, #24
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
LBB0_17:
	mov	x0, x23
	bl	_md_bitmap_free
LBB0_18:
	mov	w0, #-1
LBB0_19:
	ldr	x8, [sp, #88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_md_cluster_ops,8,3             ; @md_cluster_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't get bitmap from slot %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"bitmap%04d"

l_.str.2:                               ; @.str.2
	.asciz	"md-cluster: Cannot initialize %s\n"

	.comm	_DLM_LKF_NOQUEUE,4,2            ; @DLM_LKF_NOQUEUE
	.comm	_DLM_LOCK_PW,4,2                ; @DLM_LOCK_PW
	.no_dead_strip	_cluster_check_sync_size
.subsections_via_symbols
