	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gif_crop_opaque
_gif_crop_opaque:                       ## @gif_crop_opaque
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	_GF_OFFSETTING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_30
## %bb.1:
	testq	%rsi, %rsi
	jne	LBB0_30
## %bb.2:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.3:
	movq	%r9, %r13
	movq	%r8, %r14
	movq	%rdi, %r15
	movq	24(%rbp), %rdi
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rcx), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movslq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ebx
	movl	4(%r15), %r12d
	decl	%r12d
	movl	(%rdi), %ecx
	cmpl	%r12d, %ecx
	jge	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %rax
	movq	%rax, %rcx
	imulq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,8), %rdi
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
	cltq
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rsi
	movl	(%r14), %edx
	callq	_memcmp
	movq	24(%rbp), %rdi
	movl	(%rdi), %ecx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ecx
	movl	%ecx, (%rdi)
	cmpl	%r12d, %ecx
	jl	LBB0_5
LBB0_7:
	movq	%rbx, %r10
	decl	%r10d
	cmpl	%ecx, %r12d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_13
## %bb.8:
	movq	%r10, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movslq	%r12d, %r12
	movslq	-48(%rbp), %rbx                 ## 4-byte Folded Reload
	movq	%rbx, %rax
	imulq	%r12, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %r15
	shlq	$3, %rbx
	negq	%rbx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rax
	imulq	%r12, %rax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,8), %r14
	leaq	(,%rcx,8), %r13
	negq	%r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	decq	%r12
	movq	24(%rbp), %rdi
	movslq	(%rdi), %rcx
	addq	%rbx, %r15
	addq	%r13, %r14
	cmpq	%rcx, %r12
	jg	LBB0_9
	jmp	LBB0_12
LBB0_30:
	addq	$72, %rsp
	jmp	LBB0_31
LBB0_10:
	movq	24(%rbp), %rdi
	movl	(%rdi), %ecx
LBB0_12:
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-96(%rbp), %r10                 ## 8-byte Reload
LBB0_13:
	movl	%r12d, %eax
	subl	%ecx, %eax
	incl	%eax
	movl	%eax, (%r13)
	movq	16(%rbp), %rax
	movl	(%rax), %r11d
	cmpl	%r10d, %r11d
	jge	LBB0_20
## %bb.14:
	movslq	%r11d, %r11
	movslq	-48(%rbp), %r9                  ## 4-byte Folded Reload
	leaq	(,%r9,8), %rdx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,8), %rsi
	leal	1(%r12), %r8d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%r11
	movq	16(%rbp), %rax
	movl	%r11d, (%rax)
	cmpl	%r11d, %r10d
	movq	24(%rbp), %rdi
	je	LBB0_25
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movslq	(%rdi), %rax
	cmpl	%r12d, %eax
	jg	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r9, %rcx
	imulq	%rax, %rcx
	addq	%r11, %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rdi,%rcx,8), %rbx
	movq	%rax, %rcx
	imulq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	%r11, %rcx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rdi,%rcx,8), %rdi
	movl	%r8d, %ecx
	subl	%eax, %ecx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_18 Depth=2
	addq	%rdx, %rbx
	addq	%rsi, %rdi
	decl	%ecx
	jne	LBB0_18
	jmp	LBB0_24
LBB0_19:
	movq	24(%rbp), %rdi
LBB0_20:
	cmpl	%r11d, %r10d
	jle	LBB0_29
## %bb.21:
	movslq	(%rdi), %r9
	movslq	-48(%rbp), %rdx                 ## 4-byte Folded Reload
	movslq	%r10d, %r10
	movslq	%r11d, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r9, %rax
	imulq	%rdx, %rax
	addq	%r10, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %r14
	shlq	$3, %rdx
	movq	%r9, %rcx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	imulq	%r13, %rcx
	movq	%r10, %r8
	addq	%r10, %rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rbx
	shlq	$3, %r13
	movl	%r12d, %r10d
	subl	%r9d, %r10d
	incl	%r10d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%r8, %rax
	decq	%rax
	addq	$-8, %r14
	addq	$-8, %rbx
	movq	%rax, %r8
	cmpq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	jle	LBB0_28
LBB0_22:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_27 Depth 2
	movl	%r10d, %ecx
	movq	%rbx, %rsi
	movq	%r14, %rdi
	cmpl	%r12d, %r9d
	jg	LBB0_23
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_22 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi), %rax
	cmpq	(%rdi), %rax
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_27 Depth=2
	addq	%rdx, %rdi
	addq	%r13, %rsi
	decl	%ecx
	jne	LBB0_27
	jmp	LBB0_23
LBB0_28:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r8, %r10
	movq	24(%rbp), %rdi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_29:
	subl	%r11d, %r10d
	incl	%r10d
	movl	%r10d, (%r14)
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %r8d
	movq	16(%rbp), %rax
	movl	(%rax), %r9d
	movq	%r10, %rcx
	movl	(%rdi), %r10d
	movl	(%r15), %ebx
	movl	4(%r15), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_av_log
	addq	$104, %rsp
LBB0_31:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	%r10d, %r11d
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_GF_OFFSETTING,4,2              ## @GF_OFFSETTING
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%dx%d image at pos (%d;%d) [area:%dx%d]\n"

	.no_dead_strip	_gif_crop_opaque
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gif_crop_opaque
_gif_crop_opaque:                       ; @gif_crop_opaque
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _GF_OFFSETTING@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GF_OFFSETTING@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_27
; %bb.1:
	cbnz	x1, LBB0_27
; %bb.2:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_27
; %bb.3:
	mov	x20, x7
	mov	x21, x6
	mov	x27, x5
	mov	x23, x4
	mov	x25, x3
	mov	x24, x2
	mov	x19, x0
	ldp	x9, x8, [x8]
	ldr	x9, [x9]
	str	x9, [sp, #40]                   ; 8-byte Folded Spill
	ldrsw	x22, [x8]
	ldp	w26, w8, [x0]
	sub	w28, w8, #1
	ldr	w8, [x7]
	cmp	w8, w28
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mul	w9, w8, w22
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	add	x0, x10, w9, sxtw #3
	mul	w8, w8, w25
	add	x1, x24, w8, sxtw #3
	ldr	w2, [x23]
	bl	_memcmp
	ldr	w8, [x20]
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	str	w8, [x20]
	cmp	w8, w28
	b.lt	LBB0_4
LBB0_6:
	sub	w0, w26, #1
	cmp	w28, w8
	b.le	LBB0_12
; %bb.7:
	stp	x0, x27, [sp, #8]               ; 16-byte Folded Spill
	stp	x21, x19, [sp, #24]             ; 16-byte Folded Spill
	mov	x8, #0
	smull	x9, w25, w28
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	sxtw	x28, w28
	add	x26, x24, x9, lsl #3
	sub	x19, x8, w25, sxtw #3
	mul	x9, x22, x28
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	add	x27, x10, x9, lsl #3
	neg	x21, x22, lsl #3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x27
	mov	x1, x26
	bl	_memcmp
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	x28, x28, #1
	ldrsw	x8, [x20]
	add	x26, x26, x19
	add	x27, x27, x21
	cmp	x28, x8
	b.gt	LBB0_8
	b	LBB0_11
LBB0_10:
	ldr	w8, [x20]
LBB0_11:
	ldp	x21, x19, [sp, #24]             ; 16-byte Folded Reload
	ldp	x0, x27, [sp, #8]               ; 16-byte Folded Reload
LBB0_12:
	sub	w8, w28, w8
	add	w8, w8, #1
	str	w8, [x27]
	ldr	w8, [x21]
	cmp	w8, w0
	b.ge	LBB0_19
; %bb.13:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x8, w8
	sxtw	x9, w25
	sbfiz	x10, x25, #3, #32
	lsl	x11, x22, #3
	add	w12, w28, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x8, #1
	str	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_28
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	ldrsw	x15, [x20]
	cmp	w15, w28
	b.gt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	madd	x13, x9, x15, x8
	add	x13, x24, x13, lsl #3
	madd	x14, x22, x15, x8
	ldr	x16, [sp, #40]                  ; 8-byte Folded Reload
	add	x14, x16, x14, lsl #3
	sub	w15, w12, w15
LBB0_17:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x16, [x14]
	ldr	x17, [x13]
	cmp	x16, x17
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	add	x13, x13, x10
	add	x14, x14, x11
	subs	w15, w15, #1
	b.ne	LBB0_17
	b	LBB0_14
LBB0_19:
	cmp	w0, w8
	b.le	LBB0_26
; %bb.20:
	ldrsw	x10, [x20]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	sxtw	x12, w25
	sxtw	x9, w0
	mov	x11, x8
	sxtw	x11, w11
	madd	x12, x10, x12, x9
	add	x12, x24, x12, lsl #3
	sbfiz	x13, x25, #3, #32
	madd	x14, x10, x22, x9
	ldr	x15, [sp, #40]                  ; 8-byte Folded Reload
	add	x14, x15, x14, lsl #3
	lsl	x15, x22, #3
	sub	w16, w28, w10
	add	w16, w16, #1
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	sub	x9, x9, #1
	sub	x12, x12, #8
	sub	x14, x14, #8
	cmp	x9, x11
	b.le	LBB0_25
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_23 Depth 2
	mov	x17, x16
	mov	x0, x14
	mov	x1, x12
	cmp	w10, w28
	b.gt	LBB0_21
LBB0_23:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x2, [x0]
	ldr	x3, [x1]
	cmp	x2, x3
	b.ne	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	add	x1, x1, x13
	add	x0, x0, x15
	subs	w17, w17, #1
	b.ne	LBB0_23
	b	LBB0_21
LBB0_25:
	mov	x0, x9
LBB0_26:
	sub	w8, w0, w8
	add	w3, w8, #1
	str	w3, [x23]
Lloh3:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w4, [x27]
	ldr	w5, [x21]
	ldr	w6, [x20]
	ldp	w7, w8, [x19]
	str	w8, [sp]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_27:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_28:
	mov	x8, x0
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GF_OFFSETTING,4,2              ; @GF_OFFSETTING
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%dx%d image at pos (%d;%d) [area:%dx%d]\n"

	.no_dead_strip	_gif_crop_opaque
.subsections_via_symbols
