	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssfdcr_readsect
_ssfdcr_readsect:                       ## @ssfdcr_readsect
	.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, %r12
	movl	(%rdi), %ebx
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	%rsi, %rcx
	movslq	%ebx, %r14
	movq	%rsi, %rax
	orq	%r14, %rax
	shrq	$32, %rax
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%r14
	movq	%rdx, %r15
	movq	%rax, %r13
	jmp	LBB0_3
LBB0_1:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%edx, %r15d
	movl	%eax, %r13d
LBB0_3:
	movq	_MTD_DEBUG_LEVEL3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rcx, %rdx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_DEBUG
	cmpl	%r13d, 4(%r12)
	jg	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_BUG
LBB0_5:
	movq	8(%r12), %rax
	movslq	%r13d, %rcx
	movslq	(%rax,%rcx,4), %rbx
	movq	_MTD_DEBUG_LEVEL3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_DEBUG
	cmpq	$65534, %rbx                    ## imm = 0xFFFE
	jg	LBB0_8
## %bb.6:
	imulq	%r14, %rbx
	movslq	%r15d, %r15
	addq	%rbx, %r15
	movq	_MTD_DEBUG_LEVEL3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_DEBUG
	movl	16(%r12), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_read_physical_sector
	testq	%rax, %rax
	jns	LBB0_9
## %bb.7:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_8:
	movq	_SECTOR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$255, %esi
	callq	_memset
LBB0_9:
	xorl	%r13d, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.comm	_MTD_DEBUG_LEVEL3,4,2           ## @MTD_DEBUG_LEVEL3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSFDC_RO: ssfdcr_readsect(%lu) sec_per_blk=%d, ofst=%d, block_addr=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"SSFDC_RO: ssfdcr_readsect() phys_block_addr=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"SSFDC_RO: ssfdcr_readsect() phys_sect_no=%lu\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_SECTOR_SIZE,4,2                ## @SECTOR_SIZE
	.no_dead_strip	_ssfdcr_readsect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssfdcr_readsect
_ssfdcr_readsect:                       ; @ssfdcr_readsect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x2, x1
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SECTOR_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SECTOR_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	asr	w8, w8, w9
	sxtw	x23, w8
	udiv	x21, x1, x23
	msub	x22, x21, x23, x1
Lloh3:
	adrp	x24, _MTD_DEBUG_LEVEL3@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MTD_DEBUG_LEVEL3@GOTPAGEOFF]
	ldr	w0, [x24]
	stp	x22, x21, [sp, #8]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DEBUG
	ldr	w8, [x20, #4]
	cmp	w8, w21
	b.gt	LBB0_2
; %bb.1:
	bl	_BUG
LBB0_2:
	ldr	x8, [x20, #8]
	sbfiz	x9, x21, #2, #32
	ldrsw	x21, [x8, x9]
	ldr	w0, [x24]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_DEBUG
	mov	w8, #65534
	cmp	w21, w8
	b.gt	LBB0_5
; %bb.3:
	mul	x8, x21, x23
	add	x21, x8, w22, sxtw
	ldr	w0, [x24]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_DEBUG
	ldr	w0, [x20, #16]
	mov	x1, x19
	mov	x2, x21
	bl	_read_physical_sector
	tbz	x0, #63, LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
Lloh14:
	adrp	x8, _SECTOR_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SECTOR_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #255
	bl	_memset
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.comm	_MTD_DEBUG_LEVEL3,4,2           ; @MTD_DEBUG_LEVEL3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSFDC_RO: ssfdcr_readsect(%lu) sec_per_blk=%d, ofst=%d, block_addr=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"SSFDC_RO: ssfdcr_readsect() phys_block_addr=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"SSFDC_RO: ssfdcr_readsect() phys_sect_no=%lu\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_SECTOR_SIZE,4,2                ; @SECTOR_SIZE
	.no_dead_strip	_ssfdcr_readsect
.subsections_via_symbols
