	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3drm_animation_create         ## -- Begin function d3drm_animation_create
	.p2align	4, 0x90
_d3drm_animation_create:                ## @d3drm_animation_create
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_D3DRM_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_TRACE
	movl	$40, %edi
	callq	_heap_alloc_zero
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_d3drm_animation1_vtbl@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_d3drm_animation2_vtbl@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	%r12, 8(%rbx)
	movl	$1, (%rbx)
	movq	_D3DRMANIMATION_CLOSED@GOTPCREL(%rip), %rax
	movq	_D3DRMANIMATION_LINEARPOSITION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movq	%rbx, %rdi
	addq	$16, %rdi
	leaq	_d3drm_animation_create.classname(%rip), %rsi
	callq	_d3drm_object_init
	movq	8(%rbx), %rdi
	callq	_IDirect3DRM_AddRef
	movq	%rbx, (%r15)
	jmp	LBB0_3
LBB0_1:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_d3drm_animation_create.classname:      ## @d3drm_animation_create.classname
	.asciz	"Animation"

	.comm	_D3DRM_OK,4,2                   ## @D3DRM_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"animation %p, d3drm %p.\n"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_d3drm_animation1_vtbl,4,2      ## @d3drm_animation1_vtbl
	.comm	_d3drm_animation2_vtbl,4,2      ## @d3drm_animation2_vtbl
	.comm	_D3DRMANIMATION_CLOSED,4,2      ## @D3DRMANIMATION_CLOSED
	.comm	_D3DRMANIMATION_LINEARPOSITION,4,2 ## @D3DRMANIMATION_LINEARPOSITION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3drm_animation_create         ; -- Begin function d3drm_animation_create
	.p2align	2
_d3drm_animation_create:                ; @d3drm_animation_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _D3DRM_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DRM_OK@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	bl	_TRACE
	mov	w0, #40
	bl	_heap_alloc_zero
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh5:
	adrp	x8, _d3drm_animation1_vtbl@GOTPAGE
Lloh6:
	ldr	x8, [x8, _d3drm_animation1_vtbl@GOTPAGEOFF]
Lloh7:
	adrp	x9, _d3drm_animation2_vtbl@GOTPAGE
Lloh8:
	ldr	x9, [x9, _d3drm_animation2_vtbl@GOTPAGEOFF]
	stp	x9, x8, [x0, #24]
	str	x22, [x0, #8]
	mov	w8, #1
	str	w8, [x0]
Lloh9:
	adrp	x8, _D3DRMANIMATION_CLOSED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _D3DRMANIMATION_CLOSED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _D3DRMANIMATION_LINEARPOSITION@GOTPAGE
Lloh13:
	ldr	x9, [x9, _D3DRMANIMATION_LINEARPOSITION@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0, #4]
	add	x0, x0, #16
Lloh15:
	adrp	x1, _d3drm_animation_create.classname@PAGE
Lloh16:
	add	x1, x1, _d3drm_animation_create.classname@PAGEOFF
	bl	_d3drm_object_init
	ldr	x0, [x21, #8]
	bl	_IDirect3DRM_AddRef
	str	x21, [x20]
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_d3drm_animation_create.classname:      ; @d3drm_animation_create.classname
	.asciz	"Animation"

	.comm	_D3DRM_OK,4,2                   ; @D3DRM_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"animation %p, d3drm %p.\n"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_d3drm_animation1_vtbl,4,2      ; @d3drm_animation1_vtbl
	.comm	_d3drm_animation2_vtbl,4,2      ; @d3drm_animation2_vtbl
	.comm	_D3DRMANIMATION_CLOSED,4,2      ; @D3DRMANIMATION_CLOSED
	.comm	_D3DRMANIMATION_LINEARPOSITION,4,2 ; @D3DRMANIMATION_LINEARPOSITION
.subsections_via_symbols
