	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sm_read_lba
_sm_read_lba:                           ## @sm_read_lba
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_SM_OOB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_sm_read_lba.erased_pattern(%rip), %rsi
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	8(%rbx), %rdi
	movl	(%rax), %eax
	xorl	(%rdi), %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	8(%rbx), %rdi
LBB0_6:
	callq	_sm_get_lba
	cmpl	$-2, %eax
	jne	LBB0_7
## %bb.8:
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sm_get_lba                     ## TAILCALL
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_4:
	movl	$-2, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @sm_read_lba.erased_pattern
_sm_read_lba.erased_pattern:
	.space	16,255

	.comm	_SM_OOB_SIZE,4,2                ## @SM_OOB_SIZE
	.no_dead_strip	_sm_read_lba
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sm_read_lba
_sm_read_lba:                           ; @sm_read_lba
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _SM_OOB_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SM_OOB_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, _sm_read_lba.erased_pattern@PAGE
Lloh4:
	add	x1, x1, _sm_read_lba.erased_pattern@PAGEOFF
	bl	_memcmp
	cbz	w0, LBB0_6
; %bb.1:
	ldp	x8, x0, [x19]
	ldr	w9, [x0]
	ldr	w8, [x8]
	eor	w8, w8, w9
	cbz	w8, LBB0_4
; %bb.2:
	mov	x0, x8
	bl	_is_power_of_2
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x0, [x19, #8]
LBB0_4:
	bl	_sm_get_lba
	cmn	w0, #2
	b.ne	LBB0_8
; %bb.5:
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sm_get_lba
LBB0_6:
	mov	w0, #-1
	b	LBB0_8
LBB0_7:
	mov	w0, #-2
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @sm_read_lba.erased_pattern
_sm_read_lba.erased_pattern:
	.space	16,255

	.comm	_SM_OOB_SIZE,4,2                ; @SM_OOB_SIZE
	.no_dead_strip	_sm_read_lba
.subsections_via_symbols
