	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function location_store
_location_store:                        ## @location_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_mddev_lock
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_35
## %bb.1:
	movq	64(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.6:
	cmpq	$0, 80(%r15)
	jne	LBB0_3
## %bb.7:
	cmpq	$0, 72(%r15)
	jne	LBB0_3
LBB0_8:
	cmpq	$0, 56(%r15)
	jne	LBB0_11
## %bb.9:
	cmpq	$0, 48(%r15)
	jne	LBB0_11
## %bb.10:
	cmpq	$0, 24(%r15)
	je	LBB0_16
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_12
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r15, %rdi
	callq	_mddev_unlock
	testl	%ebx, %ebx
	jne	LBB0_35
	jmp	LBB0_34
LBB0_12:
	cmpq	$0, 64(%r15)
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_mddev_suspend
	movq	%r15, %rdi
	callq	_md_bitmap_destroy
	movq	%r15, %rdi
	callq	_mddev_resume
LBB0_14:
	movq	$0, 24(%r15)
	movq	48(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.15:
	movq	$0, 48(%r15)
	callq	_fput
LBB0_31:
	cmpl	$0, 16(%r15)
	jne	LBB0_33
## %bb.32:
	movq	_MD_SB_CHANGE_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r15), %rsi
	callq	_set_bit
	movl	8(%r15), %edi
	callq	_md_wakeup_thread
LBB0_33:
	movq	%r15, %rdi
	callq	_mddev_unlock
LBB0_34:
	movl	%r14d, %ebx
LBB0_35:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_31
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	xorl	%edi, %edi
	cmpb	$43, (%r12)
	sete	%dil
	addq	%r12, %rdi
	leaq	-40(%rbp), %rdx
	movl	$10, %esi
	callq	_kstrtoll
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.20:
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.21:
	cmpq	$0, 32(%r15)
	jne	LBB0_24
## %bb.22:
	cmpq	$0, (%r15)
	jne	LBB0_24
## %bb.23:
	cmpq	40(%r15), %rax
	jne	LBB0_18
LBB0_24:
	movq	%rax, 24(%r15)
	cmpq	$0, 64(%r15)
	je	LBB0_31
## %bb.25:
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_md_bitmap_create
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_mddev_suspend
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_26
## %bb.29:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
	jmp	LBB0_30
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_26:
	movq	%rbx, 56(%r15)
	movq	%r15, %rdi
	callq	_md_bitmap_load
	testl	%eax, %eax
	je	LBB0_30
## %bb.27:
	movl	%eax, %ebx
	movq	$0, 24(%r15)
LBB0_28:
	movq	%r15, %rdi
	callq	_md_bitmap_destroy
	movq	%r15, %rdi
	callq	_mddev_resume
	jmp	LBB0_5
LBB0_30:
	movq	%r15, %rdi
	callq	_mddev_resume
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"none"

L_.str.1:                               ## @.str.1
	.asciz	"file:"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MD_SB_CHANGE_DEVS,4,2          ## @MD_SB_CHANGE_DEVS
	.no_dead_strip	_location_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function location_store
_location_store:                        ; @location_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x22, x1
	mov	x20, x0
	bl	_mddev_lock
	mov	x21, x0
	cbnz	w0, LBB0_20
; %bb.1:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.3:
	ldr	x8, [x20, #80]
	cbnz	x8, LBB0_9
; %bb.4:
	ldr	x8, [x20, #72]
	cbnz	x8, LBB0_9
LBB0_5:
	ldr	x8, [x20, #56]
	cbnz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x20, #48]
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_21
LBB0_8:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_12
LBB0_9:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x20
	bl	_mddev_unlock
	cbnz	w21, LBB0_20
	b	LBB0_19
LBB0_12:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_mddev_suspend
	mov	x0, x20
	bl	_md_bitmap_destroy
	mov	x0, x20
	bl	_mddev_resume
LBB0_14:
	str	xzr, [x20, #24]
	ldr	x0, [x20, #48]
	cbz	x0, LBB0_16
; %bb.15:
	str	xzr, [x20, #48]
	bl	_fput
LBB0_16:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_18
; %bb.17:
Lloh4:
	adrp	x8, _MD_SB_CHANGE_DEVS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MD_SB_CHANGE_DEVS@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x1, x20, #12
	bl	_set_bit
	ldr	w0, [x20, #8]
	bl	_md_wakeup_thread
LBB0_18:
	mov	x0, x20
	bl	_mddev_unlock
LBB0_19:
	mov	x21, x19
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_21:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_16
; %bb.22:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w2, #5
	bl	_strncmp
	cbz	x0, LBB0_31
; %bb.23:
	mov	x8, x22
	ldrb	w9, [x8], #1
	cmp	w9, #43
	csel	x0, x22, x8, ne
	add	x2, sp, #8
	mov	w1, #10
	bl	_kstrtoll
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.24:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_31
; %bb.25:
	ldr	x9, [x20, #32]
	cbnz	x9, LBB0_28
; %bb.26:
	ldr	x9, [x20]
	cbnz	x9, LBB0_28
; %bb.27:
	ldr	x9, [x20, #40]
	cmp	x8, x9
	b.ne	LBB0_31
LBB0_28:
	str	x8, [x20, #24]
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_16
; %bb.29:
	mov	x0, x20
	mov	w1, #-1
	bl	_md_bitmap_create
	mov	x21, x0
	mov	x0, x20
	bl	_mddev_suspend
	mov	x0, x21
	bl	_IS_ERR
	cbz	x0, LBB0_32
; %bb.30:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
	cbnz	w0, LBB0_34
	b	LBB0_35
LBB0_31:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_32:
	str	x21, [x20, #56]
	mov	x0, x20
	bl	_md_bitmap_load
	cbz	w0, LBB0_35
; %bb.33:
	mov	x21, x0
	str	xzr, [x20, #24]
LBB0_34:
	mov	x0, x20
	bl	_md_bitmap_destroy
	mov	x0, x20
	bl	_mddev_resume
	b	LBB0_11
LBB0_35:
	mov	x0, x20
	bl	_mddev_resume
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"none"

l_.str.1:                               ; @.str.1
	.asciz	"file:"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MD_SB_CHANGE_DEVS,4,2          ; @MD_SB_CHANGE_DEVS
	.no_dead_strip	_location_store
.subsections_via_symbols
