	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_thin_find_block             ## -- Begin function dm_thin_find_block
	.p2align	4, 0x90
_dm_thin_find_block:                    ## @dm_thin_find_block
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	8(%rdi), %rbx
	movl	(%rdi), %eax
	movl	%eax, -48(%rbp)
	movl	%esi, -44(%rbp)
	movq	%rbx, %rdi
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	callq	_down_read
	leaq	20(%rbx), %rdi
	cmpq	$0, 8(%rbx)
	je	LBB0_5
LBB0_8:
	movq	%rbx, %rdi
	callq	_up_read
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:
	negl	%r12d
	jmp	LBB0_12
LBB0_2:
	callq	_down_read_trylock
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	leaq	16(%rbx), %rdi
	cmpq	$0, 8(%rbx)
	jne	LBB0_8
LBB0_5:
	movl	4(%rbx), %esi
	leaq	-48(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	callq	_dm_btree_lookup
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_up_read
	jmp	LBB0_12
LBB0_10:
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_14:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_7:
	movl	-60(%rbp), %edi
	callq	_le64_to_cpu
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_up_read
LBB0_11:
	leaq	-56(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	movl	%r12d, %edi
	callq	_unpack_block_time
	movl	-56(%rbp), %eax
	movl	%eax, 4(%r14)
	movl	-52(%rbp), %esi
	movq	%r15, %rdi
	callq	___snapshotted_since
	movl	%eax, (%r14)
	xorl	%r12d, %r12d
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_15
## %bb.13:
	movl	%r12d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_thin_find_block             ; -- Begin function dm_thin_find_block
	.p2align	2
_dm_thin_find_block:                    ; @dm_thin_find_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EINVAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
	str	x8, [sp, #24]
Lloh5:
	ldr	w22, [x9]
	ldr	x21, [x0, #8]
	ldr	w8, [x0]
	stp	w8, w1, [sp, #16]
	mov	x0, x21
	cbz	w2, LBB0_4
; %bb.1:
	bl	_down_read
	add	x0, x21, #20
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
LBB0_2:
	mov	x0, x21
	bl	_up_read
	cbz	w22, LBB0_10
; %bb.3:
	neg	w22, w22
	b	LBB0_11
LBB0_4:
	bl	_down_read_trylock
	cbz	x0, LBB0_8
; %bb.5:
	add	x0, x21, #16
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_2
LBB0_6:
	ldr	w1, [x21, #4]
	add	x2, sp, #16
	add	x3, sp, #12
	bl	_dm_btree_lookup
	cbz	w0, LBB0_9
; %bb.7:
	mov	x22, x0
	mov	x0, x21
	bl	_up_read
	b	LBB0_11
LBB0_8:
Lloh6:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_9:
	ldr	w0, [sp, #12]
	bl	_le64_to_cpu
	mov	x22, x0
	mov	x0, x21
	bl	_up_read
LBB0_10:
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x22
	bl	_unpack_block_time
	ldp	w1, w8, [sp, #4]
	str	w8, [x19, #4]
	mov	x0, x20
	bl	___snapshotted_since
	mov	w22, #0
	str	w0, [x19]
LBB0_11:
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
.subsections_via_symbols
