	.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, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_simple_strtoul
	cmpb	$0, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	-32(%rbp), %rcx
	movb	(%rcx), %cl
	testb	%cl, %cl
	je	LBB0_5
## %bb.2:
	cmpb	$10, %cl
	jne	LBB0_3
LBB0_5:
	movq	24(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.6:
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movq	8(%r14), %rcx
	movq	%rcx, (%r14)
	movl	%eax, %r15d
	jmp	LBB0_12
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rax, (%r14)
	movq	16(%r14), %rcx
	movq	_MaxSector@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.11:
	movq	%rax, 8(%r14)
	jmp	LBB0_12
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.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	x21, x1
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #10
	bl	_simple_strtoul
	ldrb	w8, [x21]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cmp	w8, #0
	ccmp	w8, #10, #4, ne
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_9
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.4:
	str	x0, [x20]
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_8
; %bb.5:
	ldr	x8, [x20, #8]
	str	x8, [x20]
	mov	x19, x0
	b	LBB0_8
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_8:
	mov	x0, x19
	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_9:
	str	x0, [x20]
	ldr	x8, [x20, #16]
Lloh2:
	adrp	x9, _MaxSector@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MaxSector@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.10:
	str	x0, [x20, #8]
	b	LBB0_8
LBB0_11:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MaxSector,8,3                  ; @MaxSector
	.no_dead_strip	_layout_store
.subsections_via_symbols
