	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AVIFILE_FormatsEqual
_AVIFILE_FormatsEqual:                  ## @AVIFILE_FormatsEqual
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_FALSE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testq	%rdi, %rdi
	setne	%al
	testq	%rsi, %rsi
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	%rbx, %rdi
	callq	_AVIStreamStart
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_AVIStreamStart
	movq	%rax, %r12
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_AVIStreamFormatSize
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r13), %r13d
	jmp	LBB0_10
LBB0_2:
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_AVIStreamFormatSize
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax
	cmpq	-72(%rbp), %rax
	jne	LBB0_9
## %bb.4:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-48(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	movq	_FALSE@GOTPCREL(%rip), %rcx
	je	LBB0_11
## %bb.5:
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %r14
	movq	%rax, %rdx
	callq	_AVIStreamReadFormat
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-48(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%rax, %r12
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_AVIStreamReadFormat
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_memcmp
	xorl	%r13d, %r13d
	testq	%rax, %rax
	sete	%r13b
	jmp	LBB0_14
LBB0_9:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%rcx), %r13d
	jmp	LBB0_10
LBB0_13:
	xorl	%r12d, %r12d
LBB0_14:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_HeapFree
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_HeapFree
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_AVIFILE_FormatsEqual
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AVIFILE_FormatsEqual
_AVIFILE_FormatsEqual:                  ; @AVIFILE_FormatsEqual
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x25, _FALSE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	ldr	w19, [x25]
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	cset	w0, ne
	bl	_assert
	mov	x0, x23
	bl	_AVIStreamStart
	mov	x24, x0
	mov	x0, x20
	bl	_AVIStreamStart
	mov	x22, x0
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, x24
	bl	_AVIStreamFormatSize
	bl	_FAILED
	cbnz	x0, LBB0_8
; %bb.1:
	mov	x2, sp
	mov	x0, x20
	mov	x1, x22
	bl	_AVIStreamFormatSize
	bl	_FAILED
	cbnz	x0, LBB0_8
; %bb.2:
	ldp	x9, x8, [sp]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	bl	_GetProcessHeap
	ldr	x2, [sp, #8]
	mov	w1, #0
	bl	_HeapAlloc
	cbz	x0, LBB0_8
; %bb.4:
	mov	x21, x0
	add	x3, sp, #8
	mov	x0, x23
	mov	x1, x24
	mov	x2, x21
	bl	_AVIStreamReadFormat
	bl	_SUCCEEDED
	cbz	x0, LBB0_10
; %bb.5:
	bl	_GetProcessHeap
	ldr	x2, [sp, #8]
	mov	w1, #0
	bl	_HeapAlloc
	mov	x23, x0
	cbz	x0, LBB0_11
; %bb.6:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_AVIStreamReadFormat
	bl	_SUCCEEDED
	cbz	x0, LBB0_11
; %bb.7:
	ldr	x2, [sp, #8]
	mov	x0, x21
	mov	x1, x23
	bl	_memcmp
	cmp	x0, #0
	cset	w19, eq
	b	LBB0_11
LBB0_8:
	ldr	w19, [x25]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	mov	x23, #0
LBB0_11:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x23
	bl	_HeapFree
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x21
	bl	_HeapFree
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_AVIFILE_FormatsEqual
.subsections_via_symbols
