	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bd_int13probe
_bd_int13probe:                         ## @bd_int13probe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_BD_NO_MEDIA@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%rdi)
	movl	4(%rdi), %edi
	callq	_bd_check_extensions
	movl	%eax, %r14d
	cmpl	$48, %eax
	jge	LBB0_1
## %bb.2:
	movq	_BD_MODEEDD1@GOTPCREL(%rip), %rax
	testl	%r14d, %r14d
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_BD_MODEEDD3@GOTPCREL(%rip), %rax
	testl	%r14d, %r14d
	jne	LBB0_5
LBB0_4:
	movq	_BD_MODEINT13@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	_BIOSDISK_SECSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	4(%rbx), %edi
	cmpl	$127, %edi
	jg	LBB0_8
## %bb.6:
	callq	_bd_reset_disk
	movq	_V86_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_v86@GOTPCREL(%rip), %r13
	movl	%eax, 16(%r13)
	movabsq	$23089744183315, %rax           ## imm = 0x150000000013
	movq	%rax, (%r13)
	movl	4(%rbx), %eax
	movl	%eax, 8(%r13)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_v86int
	movl	12(%r13), %edi
	callq	_V86_CY
	testq	%rax, %rax
	jne	LBB0_29
## %bb.7:
	testb	$3, 5(%r13)
	je	LBB0_29
LBB0_8:
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	callq	_bd_get_diskinfo_ext
	testl	%eax, %eax
	je	LBB0_10
LBB0_11:
	movq	%rbx, %rdi
	callq	_bd_get_diskinfo_std
	testl	%eax, %eax
	je	LBB0_18
## %bb.12:
	movl	4(%rbx), %edx
	cmpl	$127, %edx
	jg	LBB0_14
## %bb.13:
	movabsq	$8589934672, %rax               ## imm = 0x200000050
	movq	%rax, 16(%rbx)
	movl	$18, 24(%rbx)
	movq	$2880, 8(%rbx)                  ## imm = 0xB40
	movl	(%r12), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_18
LBB0_14:
	movl	(%rbx), %eax
	movq	_BD_CDROM@GOTPCREL(%rip), %rcx
	movl	$1, %r15d
	testl	%eax, (%rcx)
	jne	LBB0_29
## %bb.15:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_25
## %bb.16:
	testl	%r14d, %r14d
	je	LBB0_25
## %bb.17:
	leaq	16064(%rcx), %rax
	movabsq	$-9076969306111049207, %rdx     ## imm = 0x8208208208208209
	imulq	%rdx
	movabsq	$270582939903, %rax             ## imm = 0x3F000000FF
	movq	%rax, 20(%rbx)
	leaq	(%rdx,%rcx), %rax
	addq	$16064, %rax                    ## imm = 0x3EC0
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$5, %rax
	addl	%ecx, %eax
	movl	%eax, %ecx
	shll	$8, %ecx
	subl	%eax, %ecx
	movl	%ecx, 16(%rbx)
	jmp	LBB0_18
LBB0_10:
	cmpq	$0, 8(%rbx)
	je	LBB0_11
LBB0_18:
	movl	24(%rbx), %r8d
	testl	%r8d, %r8d
	jne	LBB0_20
## %bb.19:
	movl	$63, 24(%rbx)
	movl	$63, %r8d
LBB0_20:
	movl	20(%rbx), %ecx
	testl	%ecx, %ecx
	jne	LBB0_22
## %bb.21:
	movl	$255, 20(%rbx)
	movl	$255, %ecx
LBB0_22:
	cmpq	$0, 8(%rbx)
	movl	16(%rbx), %edx
	jne	LBB0_24
## %bb.23:
	movl	%ecx, %eax
	imull	%edx, %eax
	imull	%r8d, %eax
	cltq
	movq	%rax, 8(%rbx)
LBB0_24:
	movl	4(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_DPRINTF
	movl	$1, %r15d
LBB0_29:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	_BD_FLOPPY@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_26
## %bb.27:
	movq	_bioshd@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_26:
	movq	_biosfd@GOTPCREL(%rip), %rax
LBB0_28:
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	xorl	%r15d, %r15d
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_BD_NO_MEDIA,4,2                ## @BD_NO_MEDIA
	.comm	_BD_MODEINT13,4,2               ## @BD_MODEINT13
	.comm	_BD_MODEEDD1,4,2                ## @BD_MODEEDD1
	.comm	_BD_MODEEDD3,4,2                ## @BD_MODEEDD3
	.comm	_BIOSDISK_SECSIZE,4,2           ## @BIOSDISK_SECSIZE
	.comm	_V86_FLAGS,4,2                  ## @V86_FLAGS
	.comm	_v86,20,2                       ## @v86
	.comm	_BD_CDROM,4,2                   ## @BD_CDROM
	.comm	_BD_FLOPPY,4,2                  ## @BD_FLOPPY
	.comm	_biosfd,8,3                     ## @biosfd
	.comm	_bioscd,8,3                     ## @bioscd
	.comm	_bioshd,8,3                     ## @bioshd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can not get information about %s unit %#x\n"

L_.str.1:                               ## @.str.1
	.asciz	"unit 0x%x geometry %d/%d/%d\n"

	.no_dead_strip	_bd_int13probe
.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_int13probe
lCPI0_0:
	.long	19                              ; 0x13
	.long	5376                            ; 0x1500
lCPI0_1:
	.long	255                             ; 0xff
	.long	63                              ; 0x3f
lCPI0_2:
	.long	80                              ; 0x50
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bd_int13probe:                         ; @bd_int13probe
	.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
Lloh0:
	adrp	x21, _BD_NO_MEDIA@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BD_NO_MEDIA@GOTPAGEOFF]
	ldr	w8, [x21]
	ldp	w9, w0, [x0]
	bic	w8, w9, w8
	str	w8, [x19]
	bl	_bd_check_extensions
	mov	x20, x0
Lloh2:
	adrp	x8, _BD_MODEINT13@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BD_MODEINT13@GOTPAGEOFF]
Lloh4:
	adrp	x9, _BD_MODEEDD1@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BD_MODEEDD1@GOTPAGEOFF]
Lloh6:
	adrp	x10, _BD_MODEEDD3@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BD_MODEEDD3@GOTPAGEOFF]
	cmp	w0, #48
	csel	x9, x9, x10, lt
	cmp	w0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	ldp	w9, w0, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh8:
	adrp	x8, _BIOSDISK_SECSIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BIOSDISK_SECSIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	cmp	w0, #127
	b.gt	LBB0_4
; %bb.1:
	bl	_bd_reset_disk
Lloh11:
	adrp	x8, _V86_FLAGS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V86_FLAGS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x22, _v86@GOTPAGE
Lloh15:
	ldr	x22, [x22, _v86@GOTPAGEOFF]
	str	w8, [x22, #16]
Lloh16:
	adrp	x8, lCPI0_0@PAGE
Lloh17:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x22]
	ldr	w8, [x19, #4]
	str	w8, [x22, #8]
	bl	_v86int
	ldr	w0, [x22, #12]
	bl	_V86_CY
	cbz	x0, LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_20
LBB0_3:
	ldrb	w8, [x22, #5]
	tst	w8, #0x3
	b.eq	LBB0_2
LBB0_4:
	cbz	w20, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_bd_get_diskinfo_ext
	cbz	w0, LBB0_13
LBB0_6:
	mov	x0, x19
	bl	_bd_get_diskinfo_std
	cbz	w0, LBB0_14
; %bb.7:
	ldr	w2, [x19, #4]
	cmp	w2, #127
	b.gt	LBB0_9
; %bb.8:
Lloh18:
	adrp	x8, lCPI0_2@PAGE
Lloh19:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	str	d0, [x19, #16]
	mov	w8, #18
	str	w8, [x19, #24]
	mov	w8, #2880
	str	x8, [x19, #8]
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_14
LBB0_9:
	ldr	w8, [x19]
Lloh20:
	adrp	x9, _BD_CDROM@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BD_CDROM@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.10:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_23
; %bb.11:
	cbz	w20, LBB0_23
; %bb.12:
Lloh23:
	adrp	x8, lCPI0_1@PAGE
Lloh24:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [x19, #20]
	mov	w8, #16064
	mov	x10, #33289
	movk	x10, #2080, lsl #16
	movk	x10, #8322, lsl #32
	movk	x10, #33288, lsl #48
	add	x8, x9, x8
	smulh	x9, x8, x10
	add	x8, x9, x8
	lsr	x9, x8, #63
	lsr	x8, x8, #5
	add	w8, w8, w9
	lsl	w9, w8, #8
	sub	w8, w9, w8
	str	w8, [x19, #16]
	b	LBB0_14
LBB0_13:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
LBB0_14:
	ldr	w4, [x19, #24]
	cbz	w4, LBB0_21
; %bb.15:
	ldr	w3, [x19, #20]
	cbz	w3, LBB0_22
LBB0_16:
	ldr	x8, [x19, #8]
	ldr	w2, [x19, #16]
	cbnz	x8, LBB0_18
; %bb.17:
	mul	w8, w3, w2
	mul	w8, w8, w4
	sxtw	x8, w8
	str	x8, [x19, #8]
LBB0_18:
	ldr	w1, [x19, #4]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTF
LBB0_19:
	mov	w0, #1
LBB0_20:
	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
LBB0_21:
	mov	w4, #63
	str	w4, [x19, #24]
	ldr	w3, [x19, #20]
	cbnz	w3, LBB0_16
LBB0_22:
	mov	w3, #255
	str	w3, [x19, #20]
	b	LBB0_16
LBB0_23:
Lloh27:
	adrp	x9, _BD_FLOPPY@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BD_FLOPPY@GOTPAGEOFF]
Lloh29:
	adrp	x10, _bioshd@GOTPAGE
Lloh30:
	ldr	x10, [x10, _bioshd@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x11, _biosfd@GOTPAGE
Lloh33:
	ldr	x11, [x11, _biosfd@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	x1, [x8]
Lloh34:
	adrp	x0, l_.str@PAGE
Lloh35:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	w0, #0
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_BD_NO_MEDIA,4,2                ; @BD_NO_MEDIA
	.comm	_BD_MODEINT13,4,2               ; @BD_MODEINT13
	.comm	_BD_MODEEDD1,4,2                ; @BD_MODEEDD1
	.comm	_BD_MODEEDD3,4,2                ; @BD_MODEEDD3
	.comm	_BIOSDISK_SECSIZE,4,2           ; @BIOSDISK_SECSIZE
	.comm	_V86_FLAGS,4,2                  ; @V86_FLAGS
	.comm	_v86,20,2                       ; @v86
	.comm	_BD_CDROM,4,2                   ; @BD_CDROM
	.comm	_BD_FLOPPY,4,2                  ; @BD_FLOPPY
	.comm	_biosfd,8,3                     ; @biosfd
	.comm	_bioscd,8,3                     ; @bioscd
	.comm	_bioshd,8,3                     ; @bioshd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can not get information about %s unit %#x\n"

l_.str.1:                               ; @.str.1
	.asciz	"unit 0x%x geometry %d/%d/%d\n"

	.no_dead_strip	_bd_int13probe
.subsections_via_symbols
