	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PcDiskReadLogicalSectorsCHS
_PcDiskReadLogicalSectorsCHS:           ## @PcDiskReadLogicalSectorsCHS
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	callq	_PcDiskGetDriveGeometry
	movq	_FALSE@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_19
## %bb.1:
	movl	-64(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_19
## %bb.2:
	movl	-60(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_19
## %bb.3:
	movq	_TRUE@GOTPCREL(%rip), %rcx
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %eax
	cltd
	idivl	%esi
	movl	%edx, %ecx
	cltd
	idivl	%edi
	testl	%ecx, %ecx
	movl	$0, %ebx
	cmovgl	%ecx, %ebx
	movl	%esi, %r13d
	subl	%ebx, %r13d
	cmpl	%r13d, %r15d
	cmovll	%r15d, %r13d
	testl	%edi, %edi
	js	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	-56(%rbp), %eax
	jge	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%esi, %esi
	js	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ecx
	leal	(%rcx,%r13), %edi
	incl	%esi
	cmpl	%esi, %edi
	jg	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$2, -144(%rbp)
	movl	%r13d, -140(%rbp)
	movzbl	%al, %esi
	movl	%esi, -136(%rbp)
	shrl	$2, %eax
	andl	$192, %eax
	addl	%ecx, %eax
	movl	%eax, -132(%rbp)
	movl	%edx, -128(%rbp)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, -124(%rbp)
	movl	%r12d, %eax
	sarl	$4, %eax
	cltq
	movq	%rax, -112(%rbp)
	movl	%r12d, %eax
	andl	$15, %eax
	movl	%eax, -120(%rbp)
	movl	$19, %edi
	leaq	-144(%rbp), %rsi
	leaq	-104(%rbp), %rdx
	callq	_Int386
	movq	-72(%rbp), %rax
	movq	%rax, 32(%rsp)
	movups	-104(%rbp), %xmm0
	movups	-88(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INT386_SUCCESS
	testq	%rax, %rax
	jne	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$17, -104(%rbp)
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_DiskResetController
	movl	$19, %edi
	leaq	-144(%rbp), %rsi
	leaq	-104(%rbp), %rdx
	callq	_Int386
	movq	-72(%rbp), %rax
	movq	%rax, 32(%rsp)
	movups	-104(%rbp), %xmm0
	movups	-88(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INT386_SUCCESS
	testq	%rax, %rax
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$17, -104(%rbp)
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_DiskResetController
	movl	$19, %edi
	leaq	-144(%rbp), %rsi
	leaq	-104(%rbp), %rdx
	callq	_Int386
	movq	-72(%rbp), %rax
	movq	%rax, 32(%rsp)
	movups	-104(%rbp), %xmm0
	movups	-88(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INT386_SUCCESS
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$17, -104(%rbp)
	jne	LBB0_16
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	subl	%r13d, %r15d
	je	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	addl	%r13d, %r14d
	imull	-52(%rbp), %r13d
	addl	%r13d, %r12d
	movl	-64(%rbp), %esi
	movl	-60(%rbp), %edi
	jmp	LBB0_5
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	callq	_DiskError
	movq	_FALSE@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_18:
	movq	_TRUE@GOTPCREL(%rip), %rcx
LBB0_19:
	movl	(%rcx), %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%ebx, %edi
	callq	_DiskResetController
	movl	-104(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_DiskError
	movl	-104(%rbp), %r12d
	movl	%r12d, %edi
	callq	_DiskGetErrorCodeString
	leaq	L_.str.3(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	callq	_ERR
	movq	_FALSE@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PcDiskReadLogicalSectorsCHS()\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Disk read exceeds drive geometry limits."

L_.str.2:                               ## @.str.2
	.asciz	"Disk Read Failed in CHS mode, after retrying 3 times"

L_.str.3:                               ## @.str.3
	.asciz	"Disk Read Failed in CHS mode, after retrying 3 times: %x (%s) (DriveNumber: 0x%x SectorNumber: %I64d SectorCount: %d)\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_PcDiskReadLogicalSectorsCHS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PcDiskReadLogicalSectorsCHS
_PcDiskReadLogicalSectorsCHS:           ; @PcDiskReadLogicalSectorsCHS
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	sub	x1, x29, #80
	mov	x0, x21
	bl	_PcDiskGetDriveGeometry
Lloh2:
	adrp	x23, _FALSE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	cbz	w0, LBB0_19
; %bb.1:
	ldp	w9, w8, [x29, #-80]
	cmp	w9, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_19
; %bb.2:
	cbz	w19, LBB0_18
; %bb.3:
	mov	w24, #2
Lloh4:
	adrp	x23, _TRUE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w10, w20, w9
	msub	w12, w10, w9, w20
	cmp	w12, #0
	csel	w11, w12, wzr, gt
	sub	w11, w9, w11
	cmp	w19, w11
	csel	w25, w19, w11, lt
	tbnz	w8, #31, LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sdiv	w11, w10, w8
	ldur	w13, [x29, #-72]
	cmp	w11, w13
	b.ge	LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w9, #31, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w12, w12, #1
	add	w9, w9, #1
	add	w13, w25, w12
	cmp	w13, w9
	b.gt	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	msub	w8, w11, w8, w10
	stp	w24, w25, [sp, #88]
	and	w9, w11, #0xff
	lsr	w10, w11, #2
	and	w10, w10, #0xc0
	add	w10, w10, w12
	stp	w9, w10, [sp, #96]
	stp	w8, w21, [sp, #104]
	mov	x8, x22
	sbfx	x8, x8, #4, #28
	str	x8, [sp, #120]
	and	w8, w22, #0xf
	str	w8, [sp, #112]
	add	x1, sp, #88
	add	x2, sp, #48
	mov	w0, #19
	bl	_Int386
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	x8, [sp, #80]
	str	x8, [sp, #32]
	mov	x0, sp
	bl	_INT386_SUCCESS
	cbnz	x0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #48]
	cmp	w8, #17
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_DiskResetController
	add	x1, sp, #88
	add	x2, sp, #48
	mov	w0, #19
	bl	_Int386
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	x8, [sp, #80]
	str	x8, [sp, #32]
	mov	x0, sp
	bl	_INT386_SUCCESS
	cbnz	x0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #48]
	cmp	w8, #17
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_DiskResetController
	add	x1, sp, #88
	add	x2, sp, #48
	mov	w0, #19
	bl	_Int386
	ldp	q0, q1, [sp, #48]
	stp	q0, q1, [sp]
	ldr	x8, [sp, #80]
	str	x8, [sp, #32]
	mov	x0, sp
	bl	_INT386_SUCCESS
	cbnz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #48]
	cmp	w8, #17
	b.ne	LBB0_20
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	subs	w19, w19, w25
	b.eq	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w25, w20
	ldur	w8, [x29, #-68]
	madd	w22, w8, w25, w22
	ldp	w9, w8, [x29, #-80]
	b	LBB0_4
LBB0_16:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_DiskError
LBB0_17:
Lloh8:
	adrp	x23, _FALSE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh10:
	adrp	x23, _TRUE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x23]
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_20:
	mov	x0, x21
	bl	_DiskResetController
	ldr	w1, [sp, #48]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DiskError
	ldr	w22, [sp, #48]
	mov	x0, x22
	bl	_DiskGetErrorCodeString
	mov	x2, x0
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_ERR
	b	LBB0_17
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PcDiskReadLogicalSectorsCHS()\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Disk read exceeds drive geometry limits."

l_.str.2:                               ; @.str.2
	.asciz	"Disk Read Failed in CHS mode, after retrying 3 times"

l_.str.3:                               ; @.str.3
	.asciz	"Disk Read Failed in CHS mode, after retrying 3 times: %x (%s) (DriveNumber: 0x%x SectorNumber: %I64d SectorCount: %d)\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_PcDiskReadLogicalSectorsCHS
.subsections_via_symbols
