	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drvsize_ext
_drvsize_ext:                           ## @drvsize_ext
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_drvsize_gpt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_V86_FLAGS@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_v86@GOTPCREL(%rip), %r15
	movq	%rax, 24(%r15)
	movabsq	$8796093022227, %rax            ## imm = 0x80000000013
	movq	%rax, (%r15)
	movl	(%r14), %eax
	movl	%eax, 8(%r15)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_v86int
	movl	20(%r15), %edi
	callq	_V86_CY
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movl	8(%r15), %ecx
	movzbl	%cl, %edx
	movl	(%r14), %eax
	movl	%eax, %esi
	andl	$127, %esi
	cmpl	%esi, %edx
	jbe	LBB0_7
## %bb.3:
	movl	12(%r15), %ebx
	movl	%ebx, %edx
	andl	$192, %edx
	movzbl	%bh, %esi
	leal	(%rsi,%rdx,4), %edx
	incl	%edx
	movzbl	%ch, %ecx
	incl	%ecx
	andl	$63, %ebx
	imull	%ecx, %ebx
	imull	%edx, %ebx
	movq	(%r12), %rcx
	movq	%rcx, 24(%r15)
	movabsq	$71468255805459, %rcx           ## imm = 0x410000000013
	movq	%rcx, (%r15)
	movl	%eax, 8(%r15)
	movl	$21930, 16(%r15)                ## imm = 0x55AA
	xorl	%eax, %eax
	callq	_v86int
	movl	20(%r15), %edi
	callq	_V86_CY
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movzwl	16(%r15), %eax
	cmpl	$43605, %eax                    ## imm = 0xAA55
	jne	LBB0_7
## %bb.5:
	movq	_EDD_INTERFACE_FIXED_DISK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r15)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_drvsize
	cmpl	%ebx, %eax
	cmovlel	%ebx, %eax
	jmp	LBB0_8
LBB0_7:
	movl	%ebx, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V86_FLAGS,8,3                  ## @V86_FLAGS
	.comm	_v86,32,3                       ## @v86
	.comm	_EDD_INTERFACE_FIXED_DISK,4,2   ## @EDD_INTERFACE_FIXED_DISK
	.no_dead_strip	_drvsize_ext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function drvsize_ext
lCPI0_0:
	.long	19                              ; 0x13
	.long	2048                            ; 0x800
lCPI0_1:
	.long	19                              ; 0x13
	.long	16640                           ; 0x4100
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_drvsize_ext:                           ; @drvsize_ext
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_drvsize_gpt
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x22, _V86_FLAGS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _V86_FLAGS@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x21, _v86@GOTPAGE
Lloh3:
	ldr	x21, [x21, _v86@GOTPAGEOFF]
	str	x8, [x21, #24]
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	ldr	w8, [x19]
	str	w8, [x21, #8]
	bl	_v86int
	ldr	w0, [x21, #20]
	bl	_V86_CY
	cbnz	x0, LBB0_7
; %bb.2:
	ldr	w9, [x21, #8]
	ldr	w8, [x19]
	and	w10, w8, #0x7f
	cmp	w10, w9, uxtb
	b.hs	LBB0_7
; %bb.3:
	ldr	w10, [x21, #12]
	lsl	w11, w10, #2
	and	w11, w11, #0x300
	bfxil	w11, w10, #8, #8
	ubfx	w9, w9, #8, #8
	and	w10, w10, #0x3f
	madd	w9, w10, w9, w10
	madd	w20, w9, w11, w9
	ldr	x9, [x22]
	str	x9, [x21, #24]
Lloh6:
	adrp	x9, lCPI0_1@PAGE
Lloh7:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	str	d0, [x21]
	str	w8, [x21, #8]
	mov	w8, #21930
	str	w8, [x21, #16]
	bl	_v86int
	ldr	w0, [x21, #20]
	bl	_V86_CY
	cbnz	x0, LBB0_8
; %bb.4:
	ldrh	w8, [x21, #16]
	mov	w9, #43605
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x21, #12]
Lloh8:
	adrp	x9, _EDD_INTERFACE_FIXED_DISK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EDD_INTERFACE_FIXED_DISK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_drvsize
	cmp	w0, w20
	csel	w0, w0, w20, gt
	b	LBB0_9
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x20
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_V86_FLAGS,8,3                  ; @V86_FLAGS
	.comm	_v86,32,3                       ; @v86
	.comm	_EDD_INTERFACE_FIXED_DISK,4,2   ; @EDD_INTERFACE_FIXED_DISK
	.no_dead_strip	_drvsize_ext
.subsections_via_symbols
