	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bd_get_diskinfo_ext
_bd_get_diskinfo_ext:                   ## @bd_get_diskinfo_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_bzero
	movl	$32, -56(%rbp)
	movq	_V86_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_v86@GOTPCREL(%rip), %rbx
	movl	%eax, 24(%rbx)
	movabsq	$79164837199891, %rax           ## imm = 0x480000000013
	movq	%rax, (%rbx)
	movl	24(%r14), %eax
	movl	%eax, 20(%rbx)
	movq	%r15, %rdi
	callq	_VTOPSEG
	movl	%eax, 16(%rbx)
	movq	%r15, %rdi
	callq	_VTOPOFF
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
	callq	_v86int
	movl	8(%rbx), %edi
	callq	_V86_CY
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movzbl	5(%rbx), %eax
	shll	$8, %eax
	je	LBB0_3
## %bb.2:
	shrl	$8, %eax
	jmp	LBB0_7
LBB0_3:
	movl	-52(%rbp), %ecx
	leal	-512(%rcx), %eax
	cmpl	$15872, %eax                    ## imm = 0x3E00
	ja	LBB0_6
## %bb.4:
	movq	_BIOSDISK_SECSIZE@GOTPCREL(%rip), %rsi
	movl	%ecx, %eax
	cltd
	idivl	(%rsi)
	testl	%edx, %edx
	jne	LBB0_6
## %bb.5:
	movl	%ecx, (%r14)
LBB0_6:
	movq	-32(%rbp), %rax
	movq	%rax, 16(%r14)
	movl	-48(%rbp), %ecx
	movl	%ecx, 4(%r14)
	movl	-44(%rbp), %edx
	movl	%edx, 8(%r14)
	movq	-40(%rbp), %rsi
	imull	%ecx, %eax
	imull	%edx, %eax
	testq	%rsi, %rsi
	cmovel	%eax, %esi
	movl	%esi, 12(%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V86_FLAGS,4,2                  ## @V86_FLAGS
	.comm	_v86,28,2                       ## @v86
	.comm	_BIOSDISK_SECSIZE,4,2           ## @BIOSDISK_SECSIZE
	.no_dead_strip	_bd_get_diskinfo_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 bd_get_diskinfo_ext
lCPI0_0:
	.long	19                              ; 0x13
	.long	18432                           ; 0x4800
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bd_get_diskinfo_ext:                   ; @bd_get_diskinfo_ext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w20, #32
	mov	x0, sp
	mov	w1, #32
	bl	_bzero
	str	w20, [sp]
Lloh0:
	adrp	x8, _V86_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V86_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _v86@GOTPAGE
Lloh4:
	ldr	x20, [x20, _v86@GOTPAGEOFF]
	str	w8, [x20, #24]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
	ldr	w8, [x19, #24]
	str	w8, [x20, #20]
	mov	x0, sp
	bl	_VTOPSEG
	str	w0, [x20, #16]
	mov	x0, sp
	bl	_VTOPOFF
	str	w0, [x20, #12]
	bl	_v86int
	ldr	w0, [x20, #8]
	bl	_V86_CY
	cbz	x0, LBB0_3
; %bb.1:
	ldrb	w8, [x20, #5]
	lsl	w8, w8, #8
	cbz	w8, LBB0_3
; %bb.2:
	lsr	w0, w8, #8
	b	LBB0_7
LBB0_3:
	ldr	w8, [sp, #4]
	sub	w9, w8, #512
	mov	w10, #15872
	cmp	w9, w10
	b.hi	LBB0_6
; %bb.4:
Lloh7:
	adrp	x9, _BIOSDISK_SECSIZE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BIOSDISK_SECSIZE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w9, w10, w9, w8
	cbnz	w9, LBB0_6
; %bb.5:
	str	w8, [x19]
LBB0_6:
	mov	w0, #0
	ldp	x9, x8, [sp, #16]
	str	x8, [x19, #16]
	ldp	w10, w11, [sp, #8]
	stp	w10, w11, [x19, #4]
	mul	w8, w10, w8
	mul	w8, w8, w11
	cmp	x9, #0
	csel	w8, w8, w9, eq
	str	w8, [x19, #12]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_V86_FLAGS,4,2                  ; @V86_FLAGS
	.comm	_v86,28,2                       ; @v86
	.comm	_BIOSDISK_SECSIZE,4,2           ; @BIOSDISK_SECSIZE
	.no_dead_strip	_bd_get_diskinfo_ext
.subsections_via_symbols
