	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_logical_address
_get_logical_address:                   ## @get_logical_address
	.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	%rdi, %r13
	movabsq	$47244640262, %rax              ## imm = 0xB00000006
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_ARRAY_SIZE
	movl	$-2, %r14d
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	leaq	-48(%rbp), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	-48(%rbp,%rbx,4), %rax
	movl	(%r13,%rax,4), %r14d
	movl	4(%r13,%rax,4), %r15d
	shll	$8, %r14d
	orl	%r15d, %r14d
	movl	%r14d, %eax
	andl	$-2048, %eax                    ## imm = 0xF800
	cmpl	$4096, %eax                     ## imm = 0x1000
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	$1, %r15d
	shrl	%r14d
	andl	$1023, %r14d                    ## imm = 0x3FF
	movl	%r14d, %edi
	movl	$10, %esi
	callq	_get_parity
	cmpl	%r15d, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MTD_DEBUG_LEVEL0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incq	%rbx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_DEBUG
	jmp	LBB0_6
LBB0_7:
	movl	$-2, %r14d
LBB0_8:
	movq	_MTD_DEBUG_LEVEL3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_DEBUG
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTD_DEBUG_LEVEL0,4,2           ## @MTD_DEBUG_LEVEL0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSFDC_RO: logical address field%dparity error(0x%04X)\n"

	.comm	_MTD_DEBUG_LEVEL3,4,2           ## @MTD_DEBUG_LEVEL3
L_.str.1:                               ## @.str.1
	.asciz	"SSFDC_RO: get_logical_address() %d\n"

	.no_dead_strip	_get_logical_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_logical_address
_get_logical_address:                   ; @get_logical_address
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	mov	x8, #6
	movk	x8, #11, lsl #32
	str	x8, [sp, #8]
	add	x23, sp, #8
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, #0
Lloh0:
	adrp	x24, _MTD_DEBUG_LEVEL0@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MTD_DEBUG_LEVEL0@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x23, x20, lsl #2]
	add	x8, x19, x8, lsl #2
	ldp	w9, w8, [x8]
	orr	w9, w8, w9, lsl #8
	and	w10, w9, #0xfffff800
	cmp	w10, #1, lsl #12                ; =4096
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w25, w8, #0x1
	ubfx	w22, w9, #1, #10
	mov	x0, x22
	mov	w1, #10
	bl	_get_parity
	cmp	w0, w25
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	add	x20, x20, #1
	str	x22, [sp]
	mov	x1, x21
	mov	x2, x20
	bl	_DEBUG
	b	LBB0_3
LBB0_7:
	mov	w22, #-2
LBB0_8:
Lloh4:
	adrp	x8, _MTD_DEBUG_LEVEL3@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MTD_DEBUG_LEVEL3@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_DEBUG
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MTD_DEBUG_LEVEL0,4,2           ; @MTD_DEBUG_LEVEL0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSFDC_RO: logical address field%dparity error(0x%04X)\n"

	.comm	_MTD_DEBUG_LEVEL3,4,2           ; @MTD_DEBUG_LEVEL3
l_.str.1:                               ; @.str.1
	.asciz	"SSFDC_RO: get_logical_address() %d\n"

	.no_dead_strip	_get_logical_address
.subsections_via_symbols
