	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IsDirectDrawSupported
_IsDirectDrawSupported:                 ## @IsDirectDrawSupported
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%edi, %edi
	callq	_GetDC
	movl	%eax, %r15d
	movq	_PLANES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_GetDeviceCaps
	movl	%eax, %r14d
	movq	_BITSPIXEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_GetDeviceCaps
	movl	%eax, %ebx
	xorl	%edi, %edi
	movl	%r15d, %esi
	callq	_ReleaseDC
	imull	%r14d, %ebx
	cmpl	$8, %ebx
	jge	LBB0_1
## %bb.2:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANES,4,2                     ## @PLANES
	.comm	_BITSPIXEL,4,2                  ## @BITSPIXEL
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_IsDirectDrawSupported
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IsDirectDrawSupported
_IsDirectDrawSupported:                 ; @IsDirectDrawSupported
	.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	x0, #0
	bl	_GetDC
	mov	x19, x0
Lloh0:
	adrp	x8, _PLANES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLANES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDeviceCaps
	mov	x20, x0
Lloh3:
	adrp	x8, _BITSPIXEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BITSPIXEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDeviceCaps
	mov	x21, x0
	mov	x0, #0
	mov	x1, x19
	bl	_ReleaseDC
	mul	w8, w21, w20
Lloh6:
	adrp	x9, _FALSE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh8:
	adrp	x10, _TRUE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TRUE@GOTPAGEOFF]
	cmp	w8, #8
	csel	x8, x9, x10, lt
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANES,4,2                     ; @PLANES
	.comm	_BITSPIXEL,4,2                  ; @BITSPIXEL
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_IsDirectDrawSupported
.subsections_via_symbols
