	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function layout_store
_layout_store:                          ## @layout_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	leaq	-28(%rbp), %rdx
	movq	%rsi, %rdi
	movl	$10, %esi
	callq	_kstrtouint
	testl	%eax, %eax
	js	LBB0_15
## %bb.1:
	movq	%rbx, %rdi
	callq	_mddev_lock
	testl	%eax, %eax
	jne	LBB0_15
## %bb.2:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.7:
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.8:
	movq	_EROFS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	movl	-28(%rbp), %eax
	movl	%eax, (%rbx)
	movq	8(%rbx), %rcx
	movq	_MaxSector@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.12:
	movl	%eax, 4(%rbx)
	jmp	LBB0_13
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_mddev_unlock
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.6:
	negl	%r15d
	movq	%r15, %r14
	jmp	LBB0_14
LBB0_9:
	movl	-28(%rbp), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movl	%eax, %r15d
	movl	4(%rbx), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_mddev_unlock
	movl	%r15d, %r14d
	jmp	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	callq	_mddev_unlock
LBB0_14:
	movl	%r14d, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EROFS,4,2                      ## @EROFS
	.comm	_MaxSector,8,3                  ## @MaxSector
	.no_dead_strip	_layout_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function layout_store
_layout_store:                          ; @layout_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	x20, x0
	add	x2, sp, #12
	mov	x0, x1
	mov	w1, #10
	bl	_kstrtouint
	tbnz	w0, #31, LBB0_15
; %bb.1:
	mov	x0, x20
	bl	_mddev_lock
	cbnz	w0, LBB0_15
; %bb.2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	x9, [x20, #24]
	cbz	x9, LBB0_11
; %bb.5:
Lloh0:
	adrp	x8, _EROFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EROFS@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	w8, [sp, #12]
	str	w8, [x20]
	ldr	x9, [x20, #8]
Lloh2:
	adrp	x10, _MaxSector@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MaxSector@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.7:
	str	w8, [x20, #4]
	b	LBB0_13
LBB0_8:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_9:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_mddev_unlock
	cbz	w21, LBB0_14
; %bb.10:
	neg	w19, w21
	b	LBB0_14
LBB0_11:
	ldr	w9, [sp, #12]
	str	w9, [x20]
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_13
; %bb.12:
	mov	x21, x0
	ldr	w8, [x20, #4]
	str	w8, [x20]
	mov	x0, x20
	bl	_mddev_unlock
	mov	w19, w21
	b	LBB0_14
LBB0_13:
	mov	x0, x20
	bl	_mddev_unlock
LBB0_14:
	mov	x0, x19
LBB0_15:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EROFS,4,2                      ; @EROFS
	.comm	_MaxSector,8,3                  ; @MaxSector
	.no_dead_strip	_layout_store
.subsections_via_symbols
