	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PcDiskGetDriveGeometry         ## -- Begin function PcDiskGetDriveGeometry
	.p2align	4, 0x90
_PcDiskGetDriveGeometry:                ## @PcDiskGetDriveGeometry
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$144, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movl	$24, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movl	%ebx, %edi
	movl	$24, %edx
	callq	_DiskGetExtendedDriveParameters
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	-36(%rbp), %eax
	movl	%eax, (%r14)
	movq	-24(%rbp), %rax
	movq	%rax, 16(%r14)
	movl	-32(%rbp), %eax
	movl	%eax, 4(%r14)
	movl	-28(%rbp), %eax
	jmp	LBB0_5
LBB0_2:
	movl	$8, -120(%rbp)
	movl	%ebx, -96(%rbp)
	movq	$0, -88(%rbp)
	leaq	-120(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	movl	$19, %edi
	callq	_Int386
	movq	-48(%rbp), %rax
	movq	%rax, 32(%rsp)
	movups	-80(%rbp), %xmm0
	movups	-64(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INT386_SUCCESS
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	-76(%rbp), %eax
	movl	-64(%rbp), %ecx
	movl	%eax, %edx
	andl	$192, %edx
	leal	(%rcx,%rdx,4), %ecx
	incl	%ecx
	movl	%ecx, (%r14)
	movq	-72(%rbp), %rcx
	incq	%rcx
	movq	%rcx, 16(%r14)
	andl	$63, %eax
	movl	%eax, 4(%r14)
	movl	$512, %eax                      ## imm = 0x200
LBB0_5:
	movl	%eax, 8(%r14)
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$144, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DiskGetDriveGeometry()\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PcDiskGetDriveGeometry         ; -- Begin function PcDiskGetDriveGeometry
	.p2align	2
_PcDiskGetDriveGeometry:                ; @PcDiskGetDriveGeometry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	w8, #24
	stur	w8, [x29, #-40]
	sub	x1, x29, #40
	mov	x0, x20
	mov	w2, #24
	bl	_DiskGetExtendedDriveParameters
	cbz	x0, LBB0_2
; %bb.1:
	ldur	x8, [x29, #-24]
	str	x8, [x19, #16]
	ldur	d0, [x29, #-36]
	str	d0, [x19]
	ldur	w8, [x29, #-28]
	b	LBB0_4
LBB0_2:
	mov	w8, #8
	str	w8, [sp, #80]
	str	w20, [sp, #104]
	str	xzr, [sp, #112]
	add	x1, sp, #80
	add	x2, sp, #40
	mov	w0, #19
	bl	_Int386
	ldur	q0, [sp, #40]
	ldur	q1, [sp, #56]
	stp	q0, q1, [sp]
	ldr	x8, [sp, #72]
	str	x8, [sp, #32]
	mov	x0, sp
	bl	_INT386_SUCCESS
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w8, [sp, #44]
	lsl	w9, w8, #2
	and	w9, w9, #0x300
	ldr	w10, [sp, #56]
	add	w9, w10, w9
	add	w9, w9, #1
	ldr	x10, [sp, #48]
	add	x10, x10, #1
	str	x10, [x19, #16]
	and	w8, w8, #0x3f
	stp	w9, w8, [x19]
	mov	w8, #512
LBB0_4:
	str	w8, [x19, #8]
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_6:
Lloh4:
	adrp	x8, _FALSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DiskGetDriveGeometry()\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
