	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gif_crop_translucent
_gif_crop_translucent:                  ## @gif_crop_translucent
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	_GF_OFFSETTING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	testl	%ebx, 4(%rax)
	je	LBB0_34
## %bb.1:
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	js	LBB0_34
## %bb.2:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r10
	movl	(%rdi), %eax
	movl	4(%rdi), %r14d
	leal	-1(%rax), %r11d
	decl	%r14d
	movl	(%r10), %r15d
	cmpl	%r14d, %r15d
	jge	LBB0_8
## %bb.3:
	movslq	%r15d, %r15
	movslq	%edx, %r12
	movq	%r15, %rcx
	imulq	%r12, %rcx
	leaq	(%rsi,%rcx,4), %rcx
	shlq	$2, %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movl	%r15d, (%r10)
	addq	%r12, %rcx
	cmpl	%r15d, %r14d
	je	LBB0_13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testl	%eax, %eax
	jle	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r13d, (%rcx,%rbx,4)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_7
	jmp	LBB0_12
LBB0_34:
	addq	$8, %rsp
	jmp	LBB0_35
LBB0_8:
	cmpl	%r15d, %r14d
	jle	LBB0_17
## %bb.9:
	movslq	%r14d, %r14
	movslq	%edx, %r12
	movslq	%r15d, %rbx
	movq	%r12, %rcx
	imulq	%r14, %rcx
	leaq	(%rsi,%rcx,4), %r10
	shlq	$2, %r12
	negq	%r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	decq	%r14
	addq	%r12, %r10
	cmpq	%rbx, %r14
	jle	LBB0_17
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	testl	%eax, %eax
	jle	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r13d, (%r10,%rcx,4)
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=2
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_15
	jmp	LBB0_16
LBB0_13:
	movl	%r14d, %r15d
LBB0_17:
	movl	(%r9), %r12d
	cmpl	%r11d, %r12d
	jge	LBB0_23
## %bb.18:
	movslq	%r12d, %r12
	movslq	%edx, %rbx
	leaq	(,%rbx,4), %r10
	cmpl	%r14d, %r15d
	jge	LBB0_25
LBB0_20:
	movslq	%r15d, %rax
	imulq	%rbx, %rax
	addq	%r12, %rax
	leaq	(%rsi,%rax,4), %rcx
	movl	%r14d, %eax
	subl	%r15d, %eax
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r13d, (%rcx)
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_22 Depth=1
	addq	%r10, %rcx
	decl	%eax
	jne	LBB0_22
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	incq	%r12
	movl	%r12d, (%r9)
	cmpl	%r12d, %r11d
	je	LBB0_24
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	16(%rbp), %rax
	movl	(%rax), %r15d
	cmpl	%r14d, %r15d
	jl	LBB0_20
	jmp	LBB0_25
LBB0_23:
	cmpl	%r12d, %r11d
	jle	LBB0_24
## %bb.27:
	movq	16(%rbp), %rax
	movslq	(%rax), %rax
	movslq	%edx, %rdx
	movslq	%r11d, %r11
	movslq	%r12d, %r15
	movq	%rax, %rcx
	imulq	%rdx, %rcx
	addq	%r11, %rcx
	leaq	(%rsi,%rcx,4), %r10
	shlq	$2, %rdx
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_28 Depth=1
	decq	%r11
	addq	$-4, %r10
	cmpq	%r15, %r11
	jle	LBB0_32
LBB0_28:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	movl	%r14d, %esi
	movq	%r10, %rcx
	cmpl	%r14d, %eax
	jge	LBB0_29
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_28 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r13d, (%rcx)
	jne	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_31 Depth=2
	addq	%rdx, %rcx
	decl	%esi
	cmpl	%esi, %eax
	jne	LBB0_31
	jmp	LBB0_29
LBB0_24:
	movq	16(%rbp), %rdx
	movl	(%rdx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_32:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rbp), %rdx
LBB0_33:
	subl	%eax, %r14d
	incl	%r14d
	movl	%r14d, (%r8)
	subl	(%r9), %r11d
	incl	%r11d
	movl	%r11d, (%rcx)
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r8), %r8d
	movl	(%r9), %r9d
	movl	(%rdx), %r10d
	movl	(%rdi), %ebx
	movl	4(%rdi), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movl	%r11d, %ecx
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_av_log
	addq	$40, %rsp
LBB0_35:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_translucent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gif_crop_translucent
_gif_crop_translucent:                  ; @gif_crop_translucent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
                                        ; kill: def $w2 killed $w2 def $x2
	ldr	x8, [x0, #8]
	ldr	w9, [x8, #4]
Lloh0:
	adrp	x10, _GF_OFFSETTING@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GF_OFFSETTING@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_32
; %bb.1:
	ldr	w8, [x8]
	tbnz	w8, #31, LBB0_32
; %bb.2:
	ldp	w11, w10, [x0]
	sub	w9, w11, #1
	sub	w10, w10, #1
	ldr	w12, [x6]
	cmp	w12, w10
	b.ge	LBB0_9
; %bb.3:
                                        ; kill: def $w12 killed $w12 killed $x12 def $x12
	sxtw	x12, w12
	sxtw	x13, w2
	mul	x13, x12, x13
	add	x13, x1, x13, lsl #2
	sbfiz	x14, x2, #2, #32
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x12, x12, #1
	str	w12, [x6]
	add	x13, x13, x14
	cmp	w10, w12
	b.eq	LBB0_33
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x15, x11
	mov	x16, x13
	cmp	w11, #1
	b.lt	LBB0_4
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w17, [x16]
	cmp	w17, w8
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x16, x16, #4
	subs	x15, x15, #1
	b.ne	LBB0_6
	b	LBB0_4
LBB0_8:
                                        ; kill: def $w12 killed $w12 killed $x12 def $x12
LBB0_9:
	cmp	w10, w12
	b.le	LBB0_16
; %bb.10:
	mov	x15, #0
	sxtw	x13, w10
	mov	x14, x12
	sxtw	x14, w14
	smull	x10, w2, w10
	add	x10, x1, x10, lsl #2
	sub	x15, x15, w2, sxtw #2
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	sub	x13, x13, #1
	add	x10, x10, x15
	cmp	x13, x14
	b.le	LBB0_15
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x16, x11
	mov	x17, x10
	cmp	w11, #1
	b.lt	LBB0_11
LBB0_13:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w7, [x17]
	cmp	w7, w8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x17, x17, #4
	subs	x16, x16, #1
	b.ne	LBB0_13
	b	LBB0_11
LBB0_15:
	mov	x10, x13
LBB0_16:
	ldr	w11, [x5]
	cmp	w11, w9
	b.ge	LBB0_23
; %bb.17:
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
	sxtw	x11, w11
	mov	x14, x2
	sxtw	x13, w14
	sbfiz	x14, x14, #2, #32
	cmp	w12, w10
	b.ge	LBB0_21
LBB0_18:
	sxtw	x15, w12
	madd	x15, x13, x15, x11
	add	x15, x1, x15, lsl #2
	sub	w12, w10, w12
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x15]
	cmp	w16, w8
	b.ne	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x15, x15, x14
	subs	w12, w12, #1
	b.ne	LBB0_19
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	add	x11, x11, #1
	str	w11, [x5]
	cmp	w9, w11
	b.eq	LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w12, [x6]
	cmp	w12, w10
	b.lt	LBB0_18
	b	LBB0_21
LBB0_23:
	cmp	w9, w11
	b.le	LBB0_29
; %bb.24:
	ldrsw	x12, [x6]
                                        ; kill: def $w2 killed $w2 killed $x2 def $x2
	sxtw	x13, w2
	sxtw	x9, w9
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
	sxtw	x11, w11
	madd	x13, x12, x13, x9
	add	x13, x1, x13, lsl #2
	sbfiz	x14, x2, #2, #32
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	sub	x9, x9, #1
	sub	x13, x13, #4
	cmp	x9, x11
	b.le	LBB0_30
LBB0_26:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
	mov	x15, x10
	mov	x16, x13
	cmp	w12, w10
	b.ge	LBB0_25
LBB0_27:                                ;   Parent Loop BB0_26 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w17, [x16]
	cmp	w17, w8
	b.ne	LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	add	x16, x16, x14
	sub	w15, w15, #1
	cmp	w12, w15
	b.ne	LBB0_27
	b	LBB0_25
LBB0_29:
	ldr	w12, [x6]
	b	LBB0_31
LBB0_30:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
LBB0_31:
	sub	w8, w10, w12
	add	w8, w8, #1
	str	w8, [x4]
	ldr	w8, [x5]
	sub	w8, w9, w8
	add	w8, w8, #1
	str	w8, [x3]
Lloh3:
	adrp	x9, _AV_LOG_DEBUG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldr	w4, [x4]
	ldr	w5, [x5]
	ldr	w6, [x6]
	ldp	w7, w9, [x0]
	str	w9, [sp]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x8
	bl	_av_log
LBB0_32:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_33:
	mov	x12, x10
	b	LBB0_16
	.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_translucent
.subsections_via_symbols
