	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function uuid_read
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_uuid_read:                             ## @uuid_read
	.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, %r13
	leaq	8(%rsi), %rbx
	movq	%rbx, %rsi
	callq	___bch_btree_ptr_invalid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %r14
	jmp	LBB0_7
LBB0_2:
	leaq	16(%r13), %rdi
	movq	%rbx, %rsi
	callq	_bkey_copy
	movq	_REQ_OP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	movq	%r15, %r8
	callq	_uuid_io
	movq	(%r12), %rax
	movq	_BCACHE_JSET_VERSION_UUIDv1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_7
## %bb.3:
	movq	8(%r13), %r12
	movq	%r15, %rdi
	callq	_closure_sync
	movl	(%r13), %r15d
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.5:
	incq	%r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%r15), %eax
	leaq	(%rax,%rax,4), %rbx
	movl	32(%r12,%rbx,8), %edi
	movl	16(%r12,%rbx,4), %esi
	movl	$16, %edx
	callq	_memcpy
	movl	28(%r12,%rbx,8), %edi
	movl	12(%r12,%rbx,4), %esi
	movl	$32, %edx
	callq	_memcpy
	movl	8(%r12,%rbx,4), %eax
	movl	%eax, 24(%r12,%rbx,8)
	movl	4(%r12,%rbx,4), %eax
	movl	%eax, 20(%r12,%rbx,8)
	movl	(%r12,%rbx,4), %eax
	movl	%eax, 16(%r12,%rbx,8)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12,%rbx,8)
	decq	%r15
	cmpq	$1, %r15
	ja	LBB0_6
	jmp	LBB0_7
LBB0_4:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad uuid pointer"

	.comm	_REQ_OP_READ,4,2                ## @REQ_OP_READ
	.comm	_BCACHE_JSET_VERSION_UUIDv1,8,3 ## @BCACHE_JSET_VERSION_UUIDv1
	.no_dead_strip	_uuid_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uuid_read
_uuid_read:                             ; @uuid_read
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x22, x1, #8
	mov	x1, x22
	bl	___bch_btree_ptr_invalid
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
	add	x0, x19, #16
	mov	x1, x22
	bl	_bkey_copy
Lloh2:
	adrp	x8, _REQ_OP_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REQ_OP_READ@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x22
	mov	x4, x20
	bl	_uuid_io
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _BCACHE_JSET_VERSION_UUIDv1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BCACHE_JSET_VERSION_UUIDv1@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.3:
	ldr	x21, [x19, #8]
	mov	x0, x20
	bl	_closure_sync
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	add	x19, x8, #1
	mov	w20, #40
	mov	w22, #20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w19, #2
	umaddl	x23, w8, w20, x21
	ldr	w0, [x23, #32]
	umaddl	x24, w8, w22, x21
	ldr	w1, [x24, #16]
	mov	w2, #16
	bl	_memcpy
	ldr	w0, [x23, #28]
	ldr	w1, [x24, #12]
	mov	w2, #32
	bl	_memcpy
	ldr	w8, [x24, #8]
	str	w8, [x23, #24]
	ldr	d0, [x24]
	str	d0, [x23, #16]
	stp	xzr, xzr, [x23]
	sub	x19, x19, #1
	cmp	x19, #1
	b.hi	LBB0_5
LBB0_6:
	mov	x0, #0
LBB0_7:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad uuid pointer"

	.comm	_REQ_OP_READ,4,2                ; @REQ_OP_READ
	.comm	_BCACHE_JSET_VERSION_UUIDv1,8,3 ; @BCACHE_JSET_VERSION_UUIDv1
	.no_dead_strip	_uuid_read
.subsections_via_symbols
