	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bd_check_extensions
_bd_check_extensions:                   ## @bd_check_extensions
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%ebx, %ebx
	cmpl	$128, %edi
	jl	LBB0_5
## %bb.1:
	movq	_V86_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_v86@GOTPCREL(%rip), %r14
	movl	%eax, 24(%r14)
	movabsq	$71468255805459, %rax           ## imm = 0x410000000013
	movq	%rax, (%r14)
	movl	%edi, 8(%r14)
	movl	$21930, 12(%r14)                ## imm = 0x55AA
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_v86int
	movl	20(%r14), %edi
	callq	_V86_CY
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movzwl	12(%r14), %eax
	cmpl	$43605, %eax                    ## imm = 0xAA55
	jne	LBB0_5
## %bb.3:
	movq	_EDD_INTERFACE_FIXED_DISK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r14)
	je	LBB0_5
## %bb.4:
	movzbl	5(%r14), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V86_FLAGS,4,2                  ## @V86_FLAGS
	.comm	_v86,28,2                       ## @v86
	.comm	_EDD_INTERFACE_FIXED_DISK,4,2   ## @EDD_INTERFACE_FIXED_DISK
	.no_dead_strip	_bd_check_extensions
.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_check_extensions
lCPI0_0:
	.long	19                              ; 0x13
	.long	16640                           ; 0x4100
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bd_check_extensions:                   ; @bd_check_extensions
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w0, #128
	b.lt	LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _V86_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V86_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x19, _v86@GOTPAGE
Lloh4:
	ldr	x19, [x19, _v86@GOTPAGEOFF]
	str	w8, [x19, #24]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	mov	w8, #21930
	stp	w0, w8, [x19, #8]
	bl	_v86int
	ldr	w0, [x19, #20]
	bl	_V86_CY
	cbnz	x0, LBB0_5
; %bb.2:
	ldrh	w8, [x19, #12]
	mov	w9, #43605
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x19, #16]
Lloh7:
	adrp	x9, _EDD_INTERFACE_FIXED_DISK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EDD_INTERFACE_FIXED_DISK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldrb	w0, [x19, #5]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	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	_EDD_INTERFACE_FIXED_DISK,4,2   ; @EDD_INTERFACE_FIXED_DISK
	.no_dead_strip	_bd_check_extensions
.subsections_via_symbols
