	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dimmdev_label_store
_dimmdev_label_store:                   ## @dimmdev_label_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	callq	_to_dimm
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movb	-1(%r14,%rbx), %al
	cmpb	$10, %al
	je	LBB0_4
## %bb.3:
	movq	%rbx, %r12
	testb	%al, %al
	jne	LBB0_5
LBB0_4:
	leaq	-1(%rbx), %r12
LBB0_5:
	leaq	-8(%r12), %rax
	cmpq	$-8, %rax
	ja	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_7
LBB0_6:
	movq	(%r15), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_strncpy
	movq	(%r15), %rax
	movb	$0, (%rax,%r12)
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_dimmdev_label_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dimmdev_label_store
_dimmdev_label_store:                   ; @dimmdev_label_store
	.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, x3
	mov	x20, x2
	bl	_to_dimm
	cbz	x19, LBB0_4
; %bb.1:
	mov	x21, x0
	sub	x8, x19, #1
	ldrb	w9, [x20, x8]
	cmp	w9, #10
	ccmp	w9, #0, #4, ne
	mov	x22, x19
	b.ne	LBB0_3
; %bb.2:
	mov	x22, x8
LBB0_3:
	sub	x8, x22, #8
	cmn	x8, #8
	b.hi	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_6
LBB0_5:
	ldr	x0, [x21]
	mov	x1, x20
	mov	x2, x22
	bl	_strncpy
	ldr	x8, [x21]
	strb	wzr, [x8, x22]
LBB0_6:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_dimmdev_label_store
.subsections_via_symbols
