	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_md_setup_cluster               ## -- Begin function md_setup_cluster
	.p2align	4, 0x90
_md_setup_cluster:                      ## @md_setup_cluster
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_md_cluster_ops@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_request_module
LBB0_2:
	movq	_pers_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_md_cluster_mod@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_pers_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
	movq	_pers_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_md_cluster_ops,8,3             ## @md_cluster_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md-cluster"

	.comm	_pers_lock,4,2                  ## @pers_lock
	.comm	_md_cluster_mod,4,2             ## @md_cluster_mod
L_.str.1:                               ## @.str.1
	.asciz	"can't find md-cluster module or get it's reference.\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_md_setup_cluster               ; -- Begin function md_setup_cluster
	.p2align	2
_md_setup_cluster:                      ; @md_setup_cluster
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _md_cluster_ops@GOTPAGE
Lloh1:
	ldr	x21, [x21, _md_cluster_ops@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_request_module
LBB0_2:
Lloh4:
	adrp	x0, _pers_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _pers_lock@GOTPAGEOFF]
	bl	_spin_lock
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _md_cluster_mod@GOTPAGE
Lloh7:
	ldr	x8, [x8, _md_cluster_mod@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x0, _pers_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _pers_lock@GOTPAGEOFF]
	bl	_spin_unlock
	ldr	x8, [x21]
	ldr	x2, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x2
LBB0_5:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
Lloh13:
	adrp	x0, _pers_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _pers_lock@GOTPAGEOFF]
	bl	_spin_unlock
Lloh15:
	adrp	x8, _ENOENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_md_cluster_ops,8,3             ; @md_cluster_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md-cluster"

	.comm	_pers_lock,4,2                  ; @pers_lock
	.comm	_md_cluster_mod,4,2             ; @md_cluster_mod
l_.str.1:                               ; @.str.1
	.asciz	"can't find md-cluster module or get it's reference.\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
