	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_init                   ## -- Begin function wined3d_init
	.p2align	4, 0x90
_wined3d_init:                          ## @wined3d_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$1, (%rdi)
	movl	%esi, 4(%rdi)
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	_WINED3D_NO3D@GOTPCREL(%rip), %rax
	movq	16(%r14), %rdi
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	callq	_wined3d_adapter_init_nogl
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movl	$1, 8(%r14)
	movq	_WINED3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_wined3d_adapter_init
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	movq	_E_FAIL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initializing adapters.\n"

	.comm	_WINED3D_NO3D,4,2               ## @WINED3D_NO3D
L_.str.1:                               ## @.str.1
	.asciz	"Failed to initialize adapter.\n"

	.comm	_E_FAIL,4,2                     ## @E_FAIL
	.comm	_WINED3D_OK,4,2                 ## @WINED3D_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_init                   ; -- Begin function wined3d_init
	.p2align	2
_wined3d_init:                          ; @wined3d_init
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w8, #1
	stp	w8, w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh2:
	adrp	x8, _WINED3D_NO3D@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WINED3D_NO3D@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x0, [x19, #16]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
	mov	w1, #0
	bl	_wined3d_adapter_init_nogl
	cbz	w0, LBB0_4
LBB0_2:
	mov	w8, #1
	str	w8, [x19, #8]
Lloh5:
	adrp	x8, _WINED3D_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WINED3D_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	w1, #0
	mov	x2, x20
	bl	_wined3d_adapter_init
	cbnz	w0, LBB0_2
LBB0_4:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
Lloh9:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing adapters.\n"

	.comm	_WINED3D_NO3D,4,2               ; @WINED3D_NO3D
l_.str.1:                               ; @.str.1
	.asciz	"Failed to initialize adapter.\n"

	.comm	_E_FAIL,4,2                     ; @E_FAIL
	.comm	_WINED3D_OK,4,2                 ; @WINED3D_OK
.subsections_via_symbols
