	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slot_valid
_slot_valid:                            ## @slot_valid
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	8(%rsi), %edi
	callq	___le32_to_cpu
	xorl	%ebx, %ebx
	cmpq	%r15, %rax
	jne	LBB0_5
## %bb.1:
	movq	_checksum@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_namespace_label_has
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%r12), %rdi
	callq	___le64_to_cpu
	movq	%rax, %r13
	xorl	%edi, %edi
	callq	___cpu_to_le64
	movq	%rax, (%r12)
	movq	%r14, %rdi
	callq	_sizeof_namespace_label
	movl	$1, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_nd_fletcher64
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	___cpu_to_le64
	movq	%rax, (%r12)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%r13, %rcx
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_2:
	movl	$1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_checksum,4,2                   ## @checksum
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fail checksum. slot: %d expect: %#llx\n"

	.no_dead_strip	_slot_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slot_valid
_slot_valid:                            ; @slot_valid
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x1, #8]
	bl	___le32_to_cpu
	cmp	x0, x19
	b.ne	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _checksum@GOTPAGE
Lloh1:
	ldr	x8, [x8, _checksum@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_namespace_label_has
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x21]
	bl	___le64_to_cpu
	mov	x24, x0
	mov	x0, #0
	bl	___cpu_to_le64
	str	x0, [x21]
	mov	x0, x20
	bl	_sizeof_namespace_label
	mov	x1, x0
	mov	w22, #1
	mov	x0, x21
	mov	w2, #1
	bl	_nd_fletcher64
	mov	x23, x0
	mov	x0, x24
	bl	___cpu_to_le64
	str	x0, [x21]
	cmp	x23, x24
	b.eq	LBB0_6
; %bb.3:
	ldr	w0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x23
	bl	_dev_dbg
LBB0_4:
	mov	w22, #0
	b	LBB0_6
LBB0_5:
	mov	w22, #1
LBB0_6:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_checksum,4,2                   ; @checksum
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fail checksum. slot: %d expect: %#llx\n"

	.no_dead_strip	_slot_valid
.subsections_via_symbols
