	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PcDiskReadLogicalSectorsLBA
_PcDiskReadLogicalSectorsLBA:           ## @PcDiskReadLogicalSectorsLBA
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	_BIOSCALLBUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movq	%r13, %r8
	callq	_TRACE
	xorl	%edi, %edi
	cmpl	$1048576, %r13d                 ## imm = 0x100000
	setl	%dil
	callq	_ASSERT
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_RtlZeroMemory
	movl	$32, (%rbx)
	movq	$0, 24(%rbx)
	movl	%r14d, 4(%rbx)
	movl	$1, %edi
	callq	_ASSERT
	movl	%r13d, %eax
	andl	$15, %eax
	movl	%eax, 8(%rbx)
	sarl	$4, %r13d
	movslq	%r13d, %rax
	movq	%rax, 16(%rbx)
	movl	%r15d, 12(%rbx)
	movl	$66, -72(%rbp)
	movl	%r12d, -68(%rbp)
	movq	_BIOSCALLBUFSEGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_BIOSCALLBUFOFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-72(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	$19, %edi
	callq	_Int386
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	callq	_INT386_SUCCESS
	movq	_TRUE@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	cmpl	$17, -56(%rbp)
	je	LBB0_7
## %bb.2:
	movl	%r12d, %edi
	callq	_DiskResetController
	leaq	-72(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	$19, %edi
	callq	_Int386
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	callq	_INT386_SUCCESS
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	cmpl	$17, -56(%rbp)
	je	LBB0_7
## %bb.4:
	movl	%r12d, %edi
	callq	_DiskResetController
	leaq	-72(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	$19, %edi
	callq	_Int386
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	callq	_INT386_SUCCESS
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	cmpl	$17, -56(%rbp)
	je	LBB0_7
## %bb.6:
	movl	%r12d, %edi
	callq	_DiskResetController
	movl	-56(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_DiskError
	movl	-56(%rbp), %ebx
	movl	%ebx, %edi
	callq	_DiskGetErrorCodeString
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	_ERR
	movq	_FALSE@GOTPCREL(%rip), %rbx
LBB0_7:
	movl	(%rbx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIOSCALLBUFFER,4,2             ## @BIOSCALLBUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PcDiskReadLogicalSectorsLBA() DriveNumber: 0x%x SectorNumber: %I64d SectorCount: %d Buffer: 0x%x\n"

	.comm	_BIOSCALLBUFSEGMENT,4,2         ## @BIOSCALLBUFSEGMENT
	.comm	_BIOSCALLBUFOFFSET,4,2          ## @BIOSCALLBUFOFFSET
	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"Disk Read Failed in LBA mode"

L_.str.2:                               ## @.str.2
	.asciz	"Disk Read Failed in LBA mode: %x (%s) (DriveNumber: 0x%x SectorNumber: %I64d SectorCount: %d)\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_PcDiskReadLogicalSectorsLBA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PcDiskReadLogicalSectorsLBA
_PcDiskReadLogicalSectorsLBA:           ; @PcDiskReadLogicalSectorsLBA
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _BIOSCALLBUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIOSCALLBUFFER@GOTPAGEOFF]
Lloh5:
	ldrsw	x23, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x22
	bl	_TRACE
	mov	x24, x22
	cmp	w22, #256, lsl #12              ; =1048576
	cset	w0, lt
	bl	_ASSERT
	mov	w25, #32
	mov	x0, x23
	mov	w1, #32
	bl	_RtlZeroMemory
	str	xzr, [x23, #24]
	stp	w25, w19, [x23]
	mov	w0, #1
	bl	_ASSERT
	and	w8, w22, #0xf
	sbfx	x9, x24, #4, #28
	str	x9, [x23, #16]
	stp	w8, w20, [x23, #8]
	mov	w8, #66
	stp	w8, w21, [sp, #8]
Lloh8:
	adrp	x8, _BIOSCALLBUFSEGMENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BIOSCALLBUFSEGMENT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _BIOSCALLBUFOFFSET@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BIOSCALLBUFOFFSET@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	add	x1, sp, #8
	add	x2, sp, #24
	mov	w0, #19
	bl	_Int386
	ldp	x0, x1, [sp, #24]
	bl	_INT386_SUCCESS
Lloh14:
	adrp	x8, _TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	w9, [sp, #24]
	cmp	w9, #17
	b.eq	LBB0_7
; %bb.2:
	mov	x0, x21
	bl	_DiskResetController
	add	x1, sp, #8
	add	x2, sp, #24
	mov	w0, #19
	bl	_Int386
	ldp	x0, x1, [sp, #24]
	bl	_INT386_SUCCESS
Lloh16:
	adrp	x8, _TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	cbnz	x0, LBB0_7
; %bb.3:
	ldr	w9, [sp, #24]
	cmp	w9, #17
	b.eq	LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_DiskResetController
	add	x1, sp, #8
	add	x2, sp, #24
	mov	w0, #19
	bl	_Int386
	ldp	x0, x1, [sp, #24]
	bl	_INT386_SUCCESS
Lloh18:
	adrp	x8, _TRUE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	cbnz	x0, LBB0_7
; %bb.5:
	ldr	w9, [sp, #24]
	cmp	w9, #17
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_DiskResetController
	ldr	w1, [sp, #24]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DiskError
	ldr	w22, [sp, #24]
	mov	x0, x22
	bl	_DiskGetErrorCodeString
	mov	x2, x0
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_ERR
Lloh24:
	adrp	x8, _FALSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldr	x8, [sp, #40]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_BIOSCALLBUFFER,4,2             ; @BIOSCALLBUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PcDiskReadLogicalSectorsLBA() DriveNumber: 0x%x SectorNumber: %I64d SectorCount: %d Buffer: 0x%x\n"

	.comm	_BIOSCALLBUFSEGMENT,4,2         ; @BIOSCALLBUFSEGMENT
	.comm	_BIOSCALLBUFOFFSET,4,2          ; @BIOSCALLBUFOFFSET
	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"Disk Read Failed in LBA mode"

l_.str.2:                               ; @.str.2
	.asciz	"Disk Read Failed in LBA mode: %x (%s) (DriveNumber: 0x%x SectorNumber: %I64d SectorCount: %d)\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_PcDiskReadLogicalSectorsLBA
.subsections_via_symbols
