	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	(%rdi), %ebx
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movslq	%ebx, %r12
	movq	%rsi, %rax
	orq	%r12, %rax
	shrq	$32, %rax
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%r12
	movq	%rdx, %rcx
	movq	%rax, %r14
	jmp	LBB0_3
LBB0_1:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%edx, %ecx
	movl	%eax, %r14d
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%ebx, %edx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_pr_debug
	xorl	%edi, %edi
	cmpl	%r14d, 4(%r13)
	setle	%dil
	callq	_BUG_ON
	movq	8(%r13), %rax
	movslq	%r14d, %rcx
	movslq	(%rax,%rcx,4), %rbx
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	cmpq	$65534, %rbx                    ## imm = 0xFFFE
	jg	LBB0_6
## %bb.4:
	imulq	%r12, %rbx
	movslq	-56(%rbp), %r14                 ## 4-byte Folded Reload
	addq	%rbx, %r14
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	16(%r13), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_read_physical_sector
	testq	%rax, %rax
	jns	LBB0_7
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_6:
	movq	_SECTOR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$255, %esi
	callq	_memset
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %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
	.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	x20, x0
Lloh0:
	adrp	x8, _SECTOR_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SECTOR_SHIFT@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w9, w8
	sxtw	x23, w8
	udiv	x21, x1, x23
	msub	x22, x21, x23, x1
	stp	x22, x21, [sp, #8]
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x20, #4]
	cmp	w8, w21
	cset	w0, le
	bl	_BUG_ON
	ldr	x8, [x20, #8]
	sbfiz	x9, x21, #2, #32
	ldrsw	x21, [x8, x9]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	mov	w8, #65534
	cmp	w21, w8
	b.gt	LBB0_3
; %bb.1:
	mul	x8, x21, x23
	add	x21, x8, w22, sxtw
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	ldr	w0, [x20, #16]
	mov	x1, x19
	mov	x2, x21
	bl	_read_physical_sector
	tbz	x0, #63, LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
Lloh12:
	adrp	x8, _SECTOR_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SECTOR_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #255
	bl	_memset
LBB0_4:
	mov	w0, #0
LBB0_5:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.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
