	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ANIMATE_LoadResW
_ANIMATE_LoadResW:                      ## @ANIMATE_LoadResW
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	leaq	_ANIMATE_LoadResW.aviW(%rip), %rax
	movl	%esi, %edi
	movl	%edx, %esi
	movq	%rax, %rdx
	callq	_FindResourceW
	movq	_FALSE@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_LoadResource
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	%eax, %edi
	callq	_LockResource
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r12
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_FOURCC_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%r12, -56(%rbp)
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_SizeofResource
	movl	%eax, -64(%rbp)
	movq	_MMIO_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	leaq	-64(%rbp), %rsi
	callq	_mmioOpenW
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_TRUE@GOTPCREL(%rip), %r13
	jmp	LBB0_6
LBB0_5:
	movl	(%r14), %edi
	callq	_FreeResource
LBB0_6:
	movl	(%r13), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_ANIMATE_LoadResW.aviW:                 ## @ANIMATE_LoadResW.aviW
	.asciz	"AVI"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_FOURCC_MEM,4,2                 ## @FOURCC_MEM
	.comm	_MMIO_READ,4,2                  ## @MMIO_READ
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_ANIMATE_LoadResW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ANIMATE_LoadResW
_ANIMATE_LoadResW:                      ; @ANIMATE_LoadResW
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x2, _ANIMATE_LoadResW.aviW@PAGE
Lloh1:
	add	x2, x2, _ANIMATE_LoadResW.aviW@PAGEOFF
	mov	x0, x1
	mov	x1, x8
	bl	_FindResourceW
	cbz	w0, LBB0_6
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_LoadResource
	str	w0, [x19]
	cbz	w0, LBB0_6
; %bb.2:
	bl	_LockResource
	cbz	x0, LBB0_6
; %bb.3:
	mov	x22, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh2:
	adrp	x8, _FOURCC_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FOURCC_MEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	x22, [sp, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_SizeofResource
	str	w0, [sp, #8]
Lloh5:
	adrp	x8, _MMIO_READ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMIO_READ@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, #0
	bl	_mmioOpenW
	str	w0, [x19, #4]
	cbz	w0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19]
	bl	_FreeResource
LBB0_6:
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_ANIMATE_LoadResW.aviW:                 ; @ANIMATE_LoadResW.aviW
	.asciz	"AVI"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_FOURCC_MEM,4,2                 ; @FOURCC_MEM
	.comm	_MMIO_READ,4,2                  ; @MMIO_READ
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_ANIMATE_LoadResW
.subsections_via_symbols
