	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3d8_vertex_declaration_init_fvf ## -- Begin function d3d8_vertex_declaration_init_fvf
	.p2align	4, 0x90
_d3d8_vertex_declaration_init_fvf:      ## @d3d8_vertex_declaration_init_fvf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %r8
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rdi)
	movl	%edx, 4(%rdi)
	movl	(%rsi), %edi
	movq	_d3d8_vertexdeclaration_wined3d_parent_ops@GOTPCREL(%rip), %rcx
	movl	%edx, %esi
	movq	%r8, %rdx
	callq	_wined3d_vertex_declaration_create_from_fvf
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_WARN
	jmp	LBB0_3
LBB0_2:
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_d3d8_vertexdeclaration_wined3d_parent_ops,4,2 ## @d3d8_vertexdeclaration_wined3d_parent_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create wined3d vertex declaration, hr %#x.\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	_d3d8_vertex_declaration_init_fvf ; -- Begin function d3d8_vertex_declaration_init_fvf
	.p2align	2
_d3d8_vertex_declaration_init_fvf:      ; @d3d8_vertex_declaration_init_fvf
	.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	x4, x0
	stp	xzr, xzr, [x0, #8]
	str	w2, [x0, #4]
	ldr	w0, [x1]
Lloh0:
	adrp	x3, _d3d8_vertexdeclaration_wined3d_parent_ops@GOTPAGE
Lloh1:
	ldr	x3, [x3, _d3d8_vertexdeclaration_wined3d_parent_ops@GOTPAGEOFF]
	mov	x1, x2
	mov	x2, x4
	bl	_wined3d_vertex_declaration_create_from_fvf
	mov	x19, x0
	bl	_FAILED
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_WARN
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_d3d8_vertexdeclaration_wined3d_parent_ops,4,2 ; @d3d8_vertexdeclaration_wined3d_parent_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create wined3d vertex declaration, hr %#x.\n"

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