	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_device_init                    ## -- Begin function device_init
	.p2align	4, 0x90
_device_init:                           ## @device_init
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	16(%rbp), %r12d
	cmpq	$0, 32(%rbp)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
LBB0_2:
	movq	_d3d9_device_vtbl@GOTPCREL(%rip), %rax
	movq	%rax, 64(%rbx)
	leaq	56(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_d3d9_wined3d_device_parent_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%rbx)
	movl	$1, (%rbx)
	movq	_D3DCREATE_FPU_PRESERVE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_setup_fpu
LBB0_4:
	xorl	%eax, %eax
	callq	_wined3d_mutex_lock
	leaq	16(%rbx), %r13
	movq	%r15, %r12
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	16(%rbp), %r8d
	movl	$4, %r9d
	pushq	%r13
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_wined3d_device_create
	addq	$16, %rsp
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_WARN
	jmp	LBB0_22
LBB0_6:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leaq	-88(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_wined3d_get_device_caps
	movl	-84(%rbp), %eax
	movl	%eax, 48(%rbx)
	movq	_D3DCREATE_ADAPTERGROUP_DEVICE@GOTPCREL(%rip), %rax
	movl	$1, %ecx
	movl	16(%rbp), %esi
	movl	%esi, %edx
	testl	%esi, (%rax)
	je	LBB0_8
## %bb.7:
	movl	-88(%rbp), %ecx
LBB0_8:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %r13
	movq	_D3DCREATE_MULTITHREADED@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	movl	(%r12), %edi
	callq	_wined3d_device_set_multithreaded
LBB0_10:
	cmpl	$0, 16(%r13)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_11
LBB0_17:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	leal	(,%r15,4), %edi
	callq	_heap_alloc
	testq	%rax, %rax
	je	LBB0_23
## %bb.18:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	je	LBB0_28
## %bb.19:
	movl	%r15d, %r12d
	movq	%r13, %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wined3d_swapchain_desc_from_present_parameters
	testl	%eax, %eax
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_26 Depth=1
	addq	$4, %rbx
	addq	$24, %r14
	decq	%r12
	jne	LBB0_26
LBB0_28:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_wined3d_device_init_3d
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	callq	_WARN
	movl	(%r12), %edi
	callq	_wined3d_device_release_focus_window
	movq	%r14, %rdi
	callq	_heap_free
	movl	(%r12), %edi
	jmp	LBB0_21
LBB0_11:
	testq	%r15, %r15
	jne	LBB0_13
## %bb.12:
	movq	8(%r13), %r15
LBB0_13:
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_wined3d_device_acquire_focus_window
	movq	%r12, %r14
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_14
## %bb.20:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_ERR
	movl	(%r14), %edi
LBB0_21:
	callq	_wined3d_device_decref
LBB0_22:
	xorl	%eax, %eax
	callq	_wined3d_mutex_unlock
	jmp	LBB0_38
LBB0_23:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
	movl	(%r12), %edi
	callq	_wined3d_device_release_focus_window
	movl	(%r12), %edi
	jmp	LBB0_24
LBB0_27:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_wined3d_device_release_focus_window
	movl	(%rbx), %edi
	callq	_wined3d_device_decref
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_heap_free
	xorl	%eax, %eax
	callq	_wined3d_mutex_unlock
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_14:
	testl	%eax, %eax
	movq	%r14, %r12
	je	LBB0_17
## %bb.15:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13,%rbx), %rsi
	testq	%rsi, %rsi
	cmoveq	%r15, %rsi
	movl	(%r12), %edi
	movl	(%r13,%rbx), %ecx
	movl	4(%r13,%rbx), %edx
	callq	_wined3d_device_setup_fullscreen_window
	addq	$24, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_16
	jmp	LBB0_17
LBB0_30:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	16(%rbx), %edi
	movq	_WINED3D_RS_ZENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$0, (%r14)
	setne	%dl
	callq	_wined3d_device_set_render_state
	movq	%rbx, %rdi
	callq	_d3d9_device_get_swapchains
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_31
## %bb.39:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_wined3d_device_uninit_3d
	movl	(%rbx), %edi
	callq	_wined3d_device_release_focus_window
	movl	(%rbx), %edi
LBB0_24:
	callq	_wined3d_device_decref
	xorl	%eax, %eax
	callq	_wined3d_mutex_unlock
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_37:
	movl	(%rax), %ebx
LBB0_38:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	testl	%r15d, %r15d
	je	LBB0_34
## %bb.32:
	movl	%r15d, %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_present_parameters_from_wined3d_swapchain_desc
	addq	$24, %r13
	addq	$4, %rbx
	decq	%r14
	jne	LBB0_33
LBB0_34:
	xorl	%eax, %eax
	callq	_wined3d_mutex_unlock
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_heap_free
	xorl	%edi, %edi
	callq	_heap_alloc
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_35
## %bb.36:
	xorl	%eax, %eax
	callq	_wined3d_mutex_lock
	movl	16(%r14), %edi
	xorl	%esi, %esi
	callq	_wined3d_device_get_rendertarget_view
	movl	%eax, %edi
	callq	_wined3d_rendertarget_view_get_sub_resource_parent
	movq	24(%r14), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_wined3d_mutex_unlock
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_IDirect3D9Ex_AddRef
	movq	%rbx, 8(%r14)
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_35:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
	xorl	%eax, %eax
	callq	_wined3d_mutex_lock
	movq	32(%r14), %rdi
	callq	_heap_free
	movl	16(%r14), %edi
	callq	_wined3d_device_uninit_3d
	movl	16(%r14), %edi
	callq	_wined3d_device_release_focus_window
	movl	16(%r14), %edi
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ignoring display mode.\n"

	.comm	_d3d9_device_vtbl,4,2           ## @d3d9_device_vtbl
	.comm	_d3d9_wined3d_device_parent_ops,4,2 ## @d3d9_wined3d_device_parent_ops
	.comm	_D3DCREATE_FPU_PRESERVE,4,2     ## @D3DCREATE_FPU_PRESERVE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to create wined3d device, hr %#x.\n"

	.comm	_D3DCREATE_ADAPTERGROUP_DEVICE,4,2 ## @D3DCREATE_ADAPTERGROUP_DEVICE
	.comm	_D3DCREATE_MULTITHREADED,4,2    ## @D3DCREATE_MULTITHREADED
L_.str.2:                               ## @.str.2
	.asciz	"Failed to acquire focus window, hr %#x.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to allocate wined3d parameters.\n"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_D3DERR_INVALIDCALL,4,2         ## @D3DERR_INVALIDCALL
L_.str.4:                               ## @.str.4
	.asciz	"Failed to initialize 3D, hr %#x.\n"

	.comm	_WINED3D_RS_ZENABLE,4,2         ## @WINED3D_RS_ZENABLE
L_.str.5:                               ## @.str.5
	.asciz	"Failed to allocate FVF vertex declaration map memory.\n"

	.comm	_D3D_OK,4,2                     ## @D3D_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_device_init                    ; -- Begin function device_init
	.p2align	2
_device_init:                           ; @device_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x7
	mov	x25, x6
	mov	x23, x5
	mov	x26, x4
	mov	x27, x3
	mov	x28, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x29, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
LBB0_2:
Lloh2:
	adrp	x8, _d3d9_device_vtbl@GOTPAGE
Lloh3:
	ldr	x8, [x8, _d3d9_device_vtbl@GOTPAGEOFF]
	str	x8, [x19, #64]
Lloh4:
	adrp	x8, _d3d9_wined3d_device_parent_ops@GOTPAGE
Lloh5:
	ldr	x8, [x8, _d3d9_wined3d_device_parent_ops@GOTPAGEOFF]
	mov	x24, x19
	str	x8, [x24, #56]!
	mov	w8, #1
	str	w8, [x19]
Lloh6:
	adrp	x8, _D3DCREATE_FPU_PRESERVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _D3DCREATE_FPU_PRESERVE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w25
	b.ne	LBB0_4
; %bb.3:
	bl	_setup_fpu
LBB0_4:
	bl	_wined3d_mutex_lock
	add	x22, x19, #16
	mov	x0, x28
	mov	x1, x27
	mov	x2, x26
	mov	x3, x23
	mov	x4, x25
	mov	w5, #4
	mov	x6, x24
	mov	x7, x22
	bl	_wined3d_device_create
	mov	x24, x0
	bl	_FAILED
	cbz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x24
	bl	_WARN
	bl	_wined3d_mutex_unlock
	b	LBB0_31
LBB0_6:
	add	x3, sp, #8
	mov	x0, x28
	mov	x1, x27
	mov	x2, x26
	bl	_wined3d_get_device_caps
	ldp	w9, w8, [sp, #8]
	str	w8, [x19, #48]
Lloh11:
	adrp	x8, _D3DCREATE_ADAPTERGROUP_DEVICE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D3DCREATE_ADAPTERGROUP_DEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w25
	csinc	w26, w9, wzr, ne
Lloh14:
	adrp	x8, _D3DCREATE_MULTITHREADED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _D3DCREATE_MULTITHREADED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x22]
	bl	_wined3d_device_set_multithreaded
LBB0_8:
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_16
LBB0_9:
	lsl	w0, w26, #2
	bl	_heap_alloc
	cbz	x0, LBB0_21
; %bb.10:
	mov	x23, x0
	cbz	w26, LBB0_14
; %bb.11:
	mov	x27, x26
	mov	x24, x21
	mov	x25, x23
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x20, #4]
	mov	x0, x25
	mov	x1, x24
	bl	_wined3d_swapchain_desc_from_present_parameters
	cbz	w0, LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x25, x25, #4
	add	x24, x24, #24
	subs	x27, x27, #1
	b.ne	LBB0_12
LBB0_14:
	ldr	w0, [x22]
	mov	x1, x23
	bl	_wined3d_device_init_3d
	mov	x24, x0
	bl	_FAILED
	cbz	x0, LBB0_26
; %bb.15:
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x24
	bl	_WARN
	ldr	w0, [x22]
	bl	_wined3d_device_release_focus_window
	mov	x0, x23
	bl	_heap_free
	b	LBB0_20
LBB0_16:
	cbnz	x23, LBB0_18
; %bb.17:
	ldr	x23, [x21, #8]
LBB0_18:
	ldr	w0, [x22]
	mov	x1, x23
	bl	_wined3d_device_acquire_focus_window
	mov	x24, x0
	bl	_FAILED
	cbz	x0, LBB0_23
; %bb.19:
	str	x24, [sp]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ERR
LBB0_20:
	ldr	w0, [x22]
	bl	_wined3d_device_decref
	bl	_wined3d_mutex_unlock
	b	LBB0_31
LBB0_21:
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
	b	LBB0_28
LBB0_22:
	ldr	w0, [x22]
	bl	_wined3d_device_release_focus_window
	ldr	w0, [x22]
	bl	_wined3d_device_decref
	mov	x0, x23
	bl	_heap_free
	bl	_wined3d_mutex_unlock
Lloh23:
	adrp	x8, _D3DERR_INVALIDCALL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _D3DERR_INVALIDCALL@GOTPAGEOFF]
	b	LBB0_30
LBB0_23:
	cbz	w26, LBB0_9
; %bb.24:
	add	x24, x21, #8
	mov	x25, x26
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cmp	x8, #0
	csel	x1, x23, x8, eq
	ldr	w0, [x22]
	ldp	w3, w2, [x24, #-8]
	bl	_wined3d_device_setup_fullscreen_window
	add	x24, x24, #24
	subs	x25, x25, #1
	b.ne	LBB0_25
	b	LBB0_9
LBB0_26:
	ldr	w0, [x19, #16]
Lloh25:
	adrp	x8, _WINED3D_RS_ZENABLE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WINED3D_RS_ZENABLE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w8, [x23]
	cmp	w8, #0
	cset	w2, ne
	bl	_wined3d_device_set_render_state
	mov	x0, x19
	bl	_d3d9_device_get_swapchains
	bl	_FAILED
	cbz	x0, LBB0_32
; %bb.27:
	ldr	w0, [x22]
	bl	_wined3d_device_uninit_3d
LBB0_28:
	ldr	w0, [x22]
	bl	_wined3d_device_release_focus_window
	ldr	w0, [x22]
LBB0_29:
	bl	_wined3d_device_decref
	bl	_wined3d_mutex_unlock
Lloh28:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_30:
	ldr	w24, [x8]
LBB0_31:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_32:
	cbz	w26, LBB0_35
; %bb.33:
	mov	x22, x23
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_present_parameters_from_wined3d_swapchain_desc
	add	x21, x21, #24
	add	x22, x22, #4
	subs	x26, x26, #1
	b.ne	LBB0_34
LBB0_35:
	bl	_wined3d_mutex_unlock
	mov	x0, x23
	bl	_heap_free
	mov	w0, #0
	bl	_heap_alloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_37
; %bb.36:
	bl	_wined3d_mutex_lock
	ldr	w0, [x19, #16]
	mov	w1, #0
	bl	_wined3d_device_get_rendertarget_view
	bl	_wined3d_rendertarget_view_get_sub_resource_parent
	ldr	x8, [x19, #24]
	str	w0, [x8]
	bl	_wined3d_mutex_unlock
	mov	x0, x20
	bl	_IDirect3D9Ex_AddRef
	str	x20, [x19, #8]
Lloh30:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_30
LBB0_37:
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_ERR
	bl	_wined3d_mutex_lock
	ldr	x0, [x19, #32]
	bl	_heap_free
	ldr	w0, [x19, #16]
	bl	_wined3d_device_uninit_3d
	ldr	w0, [x19, #16]
	bl	_wined3d_device_release_focus_window
	ldr	w0, [x19, #16]
	b	LBB0_29
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ignoring display mode.\n"

	.comm	_d3d9_device_vtbl,4,2           ; @d3d9_device_vtbl
	.comm	_d3d9_wined3d_device_parent_ops,4,2 ; @d3d9_wined3d_device_parent_ops
	.comm	_D3DCREATE_FPU_PRESERVE,4,2     ; @D3DCREATE_FPU_PRESERVE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to create wined3d device, hr %#x.\n"

	.comm	_D3DCREATE_ADAPTERGROUP_DEVICE,4,2 ; @D3DCREATE_ADAPTERGROUP_DEVICE
	.comm	_D3DCREATE_MULTITHREADED,4,2    ; @D3DCREATE_MULTITHREADED
l_.str.2:                               ; @.str.2
	.asciz	"Failed to acquire focus window, hr %#x.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to allocate wined3d parameters.\n"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_D3DERR_INVALIDCALL,4,2         ; @D3DERR_INVALIDCALL
l_.str.4:                               ; @.str.4
	.asciz	"Failed to initialize 3D, hr %#x.\n"

	.comm	_WINED3D_RS_ZENABLE,4,2         ; @WINED3D_RS_ZENABLE
l_.str.5:                               ; @.str.5
	.asciz	"Failed to allocate FVF vertex declaration map memory.\n"

	.comm	_D3D_OK,4,2                     ; @D3D_OK
.subsections_via_symbols
