	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3d8_create_device_internal
_d3d8_create_device_internal:           ## @d3d8_create_device_internal
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	%rsi, %r10
	movq	_D3DDEVTYPE_HAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rdi, (%rsp)
	movl	%edx, %edi
	movl	%r8d, %esi
	movl	%eax, %edx
	movl	%r9d, %r8d
	movq	%r10, %r9
	callq	_IDirect3D8_CreateDevice
	movl	%eax, %edi
	callq	_SUCCEEDED
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	leaq	16(%rsp), %rsp
	popq	%rbp
	je	LBB0_2
## %bb.3:
	retq
LBB0_2:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DDEVTYPE_HAL,4,2             ## @D3DDEVTYPE_HAL
	.no_dead_strip	_d3d8_create_device_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3d8_create_device_internal
_d3d8_create_device_internal:           ; @d3d8_create_device_internal
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_3
; %bb.1:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x1
	mov	x6, x0
Lloh0:
	adrp	x9, _D3DDEVTYPE_HAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _D3DDEVTYPE_HAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	x0, x2
	mov	x1, x4
	mov	x2, x9
	mov	x4, x5
	mov	x5, x8
	bl	_IDirect3D8_CreateDevice
	bl	_SUCCEEDED
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	cbz	x0, LBB0_3
; %bb.2:
	mov	w0, #1
	ret
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DDEVTYPE_HAL,4,2             ; @D3DDEVTYPE_HAL
	.no_dead_strip	_d3d8_create_device_internal
.subsections_via_symbols
