	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lockres_init
_lockres_init:                          ## @lockres_init
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	addq	$52, %rdi
	callq	_init_waitqueue_head
	movl	$0, (%r15)
	movl	(%rbx), %eax
	movl	%eax, 48(%r15)
	movq	%r13, 40(%r15)
	movq	_DLM_LOCK_IV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %ebx
	incl	%ebx
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_kzalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_strlcpy
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.4:
	movq	_LVB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_kzalloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_DLM_LKF_VALBLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, 8(%r15)
LBB0_9:
	movq	_DLM_LKF_EXPEDITE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	orl	%eax, 32(%r15)
	movq	_DLM_LOCK_NL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dlm_lock_sync
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_14:
	movl	(%rbx), %eax
	notl	%eax
	andl	32(%r15), %eax
	movq	_DLM_LKF_CONVERT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 32(%r15)
	jmp	LBB0_13
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
LBB0_11:
	movq	%r14, %rsi
	callq	_pr_err
	movq	24(%r15), %rdi
	callq	_kfree
	movq	16(%r15), %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
LBB0_12:
	xorl	%r15d, %r15d
LBB0_13:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DLM_LOCK_IV,4,2                ## @DLM_LOCK_IV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md-cluster: Unable to allocate resource name for resource %s\n"

	.comm	_LVB_SIZE,4,2                   ## @LVB_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"md-cluster: Unable to allocate LVB for resource %s\n"

	.comm	_DLM_LKF_VALBLK,4,2             ## @DLM_LKF_VALBLK
	.comm	_DLM_LKF_EXPEDITE,4,2           ## @DLM_LKF_EXPEDITE
	.comm	_DLM_LOCK_NL,4,2                ## @DLM_LOCK_NL
L_.str.2:                               ## @.str.2
	.asciz	"md-cluster: Unable to lock NL on new lock resource %s\n"

	.comm	_DLM_LKF_CONVERT,4,2            ## @DLM_LKF_CONVERT
	.no_dead_strip	_lockres_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lockres_init
_lockres_init:                          ; @lockres_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x25, [x0]
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #56
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.1:
	add	x0, x19, #52
	bl	_init_waitqueue_head
	str	wzr, [x19]
	ldr	w8, [x25]
	str	w8, [x19, #48]
	str	x23, [x19, #40]
Lloh2:
	adrp	x8, _DLM_LOCK_IV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DLM_LOCK_IV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #36]
	mov	x0, x20
	bl	_strlen
	add	w23, w0, #1
	ldr	w1, [x24]
	mov	x0, x23
	bl	_kzalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.2:
	mov	x1, x20
	mov	x2, x23
	bl	_strlcpy
	cbz	w22, LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _LVB_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LVB_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x24]
	bl	_kzalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_11
; %bb.4:
Lloh8:
	adrp	x8, _DLM_LKF_VALBLK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DLM_LKF_VALBLK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #32]
LBB0_5:
	cbz	x21, LBB0_7
; %bb.6:
	str	x21, [x19, #8]
LBB0_7:
Lloh11:
	adrp	x21, _DLM_LKF_EXPEDITE@GOTPAGE
Lloh12:
	ldr	x21, [x21, _DLM_LKF_EXPEDITE@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
Lloh13:
	adrp	x8, _DLM_LOCK_NL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DLM_LOCK_NL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dlm_lock_sync
	cbz	w0, LBB0_10
; %bb.8:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_10:
	ldr	w8, [x21]
	ldr	w9, [x19, #32]
	bic	w8, w9, w8
Lloh20:
	adrp	x9, _DLM_LKF_CONVERT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DLM_LKF_CONVERT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #32]
	b	LBB0_13
LBB0_11:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_12:
	mov	x1, x20
	bl	_pr_err
	ldr	x0, [x19, #24]
	bl	_kfree
	ldr	x0, [x19, #16]
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DLM_LOCK_IV,4,2                ; @DLM_LOCK_IV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md-cluster: Unable to allocate resource name for resource %s\n"

	.comm	_LVB_SIZE,4,2                   ; @LVB_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"md-cluster: Unable to allocate LVB for resource %s\n"

	.comm	_DLM_LKF_VALBLK,4,2             ; @DLM_LKF_VALBLK
	.comm	_DLM_LKF_EXPEDITE,4,2           ; @DLM_LKF_EXPEDITE
	.comm	_DLM_LOCK_NL,4,2                ; @DLM_LOCK_NL
l_.str.2:                               ; @.str.2
	.asciz	"md-cluster: Unable to lock NL on new lock resource %s\n"

	.comm	_DLM_LKF_CONVERT,4,2            ; @DLM_LKF_CONVERT
	.no_dead_strip	_lockres_init
.subsections_via_symbols
