	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CanReenableDirectDrawObject    ## -- Begin function CanReenableDirectDrawObject
	.p2align	4, 0x90
_CanReenableDirectDrawObject:           ## @CanReenableDirectDrawObject
	.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
	movq	%rdi, %r14
	movq	_TRUE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r15
	movl	8(%rdi), %edi
	leaq	-32(%rbp), %rsi
	callq	_OsThunkDdReenableDirectDrawObject
	cmpq	%rax, %r15
	je	LBB0_4
## %bb.1:
	movq	(%r14), %rax
	movq	_D3DDEVTYPE_REF@GOTPCREL(%rip), %rcx
	movq	_D3DDEVTYPE_SW@GOTPCREL(%rip), %rsi
	movq	_TRUE@GOTPCREL(%rip), %rdx
	movq	%rdx, %rbx
	cmpq	(%rsi), %rax
	je	LBB0_3
## %bb.2:
	movq	_FALSE@GOTPCREL(%rip), %rbx
LBB0_3:
	cmpq	(%rcx), %rax
	cmoveq	%rdx, %rbx
LBB0_4:
	movq	(%rbx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_D3DDEVTYPE_REF,8,3             ## @D3DDEVTYPE_REF
	.comm	_D3DDEVTYPE_SW,8,3              ## @D3DDEVTYPE_SW
	.comm	_FALSE,8,3                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CanReenableDirectDrawObject    ; -- Begin function CanReenableDirectDrawObject
	.p2align	2
_CanReenableDirectDrawObject:           ; @CanReenableDirectDrawObject
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x20, _TRUE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	ldr	x21, [x20]
	ldr	w0, [x0, #8]
	add	x1, sp, #8
	bl	_OsThunkDdReenableDirectDrawObject
	cmp	x21, x0
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _D3DDEVTYPE_REF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _D3DDEVTYPE_REF@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _D3DDEVTYPE_SW@GOTPAGE
Lloh6:
	ldr	x10, [x10, _D3DDEVTYPE_SW@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	csel	x20, x20, x8, eq
LBB0_2:
	ldr	x0, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_D3DDEVTYPE_REF,8,3             ; @D3DDEVTYPE_REF
	.comm	_D3DDEVTYPE_SW,8,3              ; @D3DDEVTYPE_SW
	.comm	_FALSE,8,3                      ; @FALSE
.subsections_via_symbols
