	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lock_all_bitmaps
_lock_all_bitmaps:                      ## @lock_all_bitmaps
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r14
	movl	(%rdi), %edi
	decl	%edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_slot_number
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.4:
	movl	%eax, %r14d
	movl	$1, %r12d
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_DLM_LKF_NOQUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdi)
	movq	_DLM_LOCK_PW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlm_lock_sync
	negl	%eax
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	%eax, %r12d
	incl	%r15d
	movl	(%rbx), %ecx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
	cmpl	%ecx, %r13d
	jge	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r13d, %r14d
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	leaq	-112(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	%r15, %rdi
	movl	$64, %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r13d, %ecx
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-128(%rbp), %r15                ## 8-byte Reload
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_lockres_init
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movq	(%rsi), %rcx
	movslq	%r15d, %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%rsi), %rax
	movq	(%rax,%rdx,8), %rdi
	testq	%rdi, %rdi
	jne	LBB0_8
## %bb.7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_3:
	movl	$1, %r12d
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md: can't alloc mem for other bitmap locks\n"

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

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DLM_LKF_NOQUEUE,4,2            ## @DLM_LKF_NOQUEUE
	.comm	_DLM_LOCK_PW,4,2                ## @DLM_LOCK_PW
	.no_dead_strip	_lock_all_bitmaps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lock_all_bitmaps
_lock_all_bitmaps:                      ; @lock_all_bitmaps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, #72]
	ldr	x24, [x0, #8]
	ldr	w8, [x0]
	sub	w0, w8, #1
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x24]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_slot_number
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x21, x0
	mov	w25, #0
	mov	w22, #0
	mov	w20, #1
Lloh6:
	adrp	x26, _DLM_LKF_NOQUEUE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _DLM_LKF_NOQUEUE@GOTPAGEOFF]
Lloh8:
	adrp	x27, _DLM_LOCK_PW@GOTPAGE
Lloh9:
	ldr	x27, [x27, _DLM_LOCK_PW@GOTPAGEOFF]
Lloh10:
	adrp	x23, l_.str.1@PAGE
Lloh11:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	ldr	w1, [x27]
	bl	_dlm_lock_sync
	cmp	w0, #0
	csinv	w20, w20, wzr, eq
	add	w25, w25, #1
	ldr	w8, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w21, w22
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x23
	mov	x3, x22
	bl	_snprintf
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	mov	w3, #1
	bl	_lockres_init
	ldr	x8, [x24]
	sbfiz	x9, x25, #3, #32
	str	x0, [x8, x9]
	ldr	x8, [x24]
	ldr	x0, [x8, x9]
	cbnz	x0, LBB0_3
; %bb.7:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_8:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	w20, #0
	b	LBB0_10
LBB0_9:
	mov	w20, #1
LBB0_10:
	ldr	x8, [sp, #72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_12:
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md: can't alloc mem for other bitmap locks\n"

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

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DLM_LKF_NOQUEUE,4,2            ; @DLM_LKF_NOQUEUE
	.comm	_DLM_LOCK_PW,4,2                ; @DLM_LOCK_PW
	.no_dead_strip	_lock_all_bitmaps
.subsections_via_symbols
