	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RemoveDuplicateResolutions
_RemoveDuplicateResolutions:            ## @RemoveDuplicateResolutions
	.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	_resolutions_size@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	cmpl	$2, %eax
	jb	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	movl	$1, %ecx
	movq	_resolutions@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rbx), %rcx
	movl	(%r14), %eax
	cmpq	%rax, %rcx
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	movq	(%r12), %rax
	movl	%r15d, %ecx
	leaq	(%rax,%rcx,4), %rdi
	leaq	(%rax,%rbx,4), %rsi
	callq	_CompareResolutions
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	cmpq	%r15, %rbx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %ecx
	movl	%ecx, (%rax,%r15,4)
	jmp	LBB0_6
LBB0_1:
	movl	$-1, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_7:
	notl	%ebx
LBB0_8:
	addl	%ebx, %r15d
	addl	%r15d, %eax
	incl	%eax
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_resolutions_size,4,2           ## @resolutions_size
	.comm	_resolutions,8,3                ## @resolutions
	.no_dead_strip	_RemoveDuplicateResolutions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RemoveDuplicateResolutions
_RemoveDuplicateResolutions:            ; @RemoveDuplicateResolutions
	.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
Lloh0:
	adrp	x19, _resolutions_size@GOTPAGE
Lloh1:
	ldr	x19, [x19, _resolutions_size@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #2
	b.lo	LBB0_6
; %bb.1:
	mov	w20, #0
	mov	w9, #1
Lloh2:
	adrp	x21, _resolutions@GOTPAGE
Lloh3:
	ldr	x21, [x21, _resolutions@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x22, #1
	ldr	w8, [x19]
	cmp	x9, x8
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x9
	ldr	x8, [x21]
	add	x0, x8, w20, uxtw #2
	add	x1, x8, x9, lsl #2
	bl	_CompareResolutions
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	cmp	x22, x20
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	w9, [x8, x22, lsl #2]
	str	w9, [x8, x20, lsl #2]
	b	LBB0_2
LBB0_6:
	mov	w20, #0
	mov	w9, #-1
	b	LBB0_8
LBB0_7:
	mvn	w9, w22
LBB0_8:
	add	w9, w20, w9
	add	w8, w9, w8
	add	w8, w8, #1
	str	w8, [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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_resolutions_size,4,2           ; @resolutions_size
	.comm	_resolutions,8,3                ; @resolutions
	.no_dead_strip	_RemoveDuplicateResolutions
.subsections_via_symbols
