	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageCropAuto                ## -- Begin function gdImageCropAuto
	.p2align	4, 0x90
_gdImageCropAuto:                       ## @gdImageCropAuto
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_gdImageSX
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_gdImageSY
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$0, -64(%rbp)
	movq	$0, -72(%rbp)
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_6:
	movq	%r14, %rdi
	callq	_gdImageGetTransparent
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	movl	$255, %esi
	movl	$255, %edx
	movl	$255, %ecx
	jmp	LBB0_3
LBB0_5:
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_gdGuessBackgroundColorFromCorners
	jmp	LBB0_8
LBB0_2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_3:
	xorl	%r8d, %r8d
	callq	_gdImageColorClosestAlpha
LBB0_7:
	movl	%eax, -44(%rbp)
LBB0_8:
	xorl	%eax, %eax
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_43
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movl	%eax, %r15d
	testl	%r12d, %r12d
	jle	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-1(%rbx), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_gdImageGetPixel
	movl	-44(%rbp), %edx
	cmpl	%eax, %edx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	leal	1(%rbx), %ecx
	cmpl	%r12d, %ebx
	movl	%ecx, %ebx
	jl	LBB0_12
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%ecx, %ecx
	cmpl	%eax, %edx
	sete	%cl
	testl	%ecx, %ecx
	jne	LBB0_16
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %ecx
	testl	%ecx, %ecx
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	leal	1(%r15), %eax
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_9
LBB0_17:
	testl	%ecx, %ecx
	je	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	jmp	LBB0_43
LBB0_19:
	movl	%r15d, -68(%rbp)
	.p2align	4, 0x90
LBB0_23:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %edx
	leal	-1(%rdx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-1(%rbx), %esi
	movl	-44(%rbp), %r13d
	movq	%r14, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_gdImageGetPixel
	cmpl	%eax, %r13d
	jne	LBB0_20
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	leal	1(%rbx), %ecx
	cmpl	%r12d, %ebx
	movl	%ecx, %ebx
	jl	LBB0_26
LBB0_20:                                ##   in Loop: Header=BB0_23 Depth=1
	xorl	%ecx, %ecx
	cmpl	%eax, %r13d
	sete	%cl
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testl	%ecx, %ecx
	jne	LBB0_22
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	$1, %ecx
	testl	%ecx, %ecx
	je	LBB0_28
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=1
	cmpl	$2, %edx
	jge	LBB0_23
LBB0_28:
	movl	%edx, %eax
	subl	%r15d, %eax
	movl	%eax, -60(%rbp)
	testl	%r12d, %r12d
	jle	LBB0_44
## %bb.29:
	xorl	%eax, %eax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_30:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	movl	%eax, %r13d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_30 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %ebx
	cmpl	%edx, %ecx
	jge	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=2
	movl	-44(%rbp), %r15d
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_gdImageGetPixel
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leal	1(%rbx), %ecx
	cmpl	%eax, %r15d
	je	LBB0_31
LBB0_33:                                ##   in Loop: Header=BB0_30 Depth=1
	cmpl	%edx, %ebx
	jl	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_30 Depth=1
	leal	1(%r13), %eax
	cmpl	%r12d, %eax
	jl	LBB0_30
LBB0_35:
	leal	-1(%r12), %r15d
	movl	%r13d, -72(%rbp)
	testl	%r12d, %r12d
	jle	LBB0_42
	.p2align	4, 0x90
LBB0_36:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_37 Depth 2
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_36 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %ebx
	cmpl	%edx, %ecx
	jge	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=2
	movl	-44(%rbp), %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_gdImageGetPixel
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leal	1(%rbx), %ecx
	cmpl	%eax, %r12d
	je	LBB0_37
LBB0_39:                                ##   in Loop: Header=BB0_36 Depth=1
	leal	-1(%r15), %eax
	cmpl	%edx, %ebx
	jl	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_36 Depth=1
	testl	%r15d, %r15d
	movl	%eax, %r15d
	jg	LBB0_36
LBB0_41:
	movl	%eax, %r15d
	jmp	LBB0_42
LBB0_44:
	movl	$-1, -72(%rbp)
	decl	%r12d
	movl	$-1, %r13d
	movl	%r12d, %r15d
LBB0_42:
	subl	%r13d, %r15d
	addl	$2, %r15d
	movl	%r15d, -64(%rbp)
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_gdImageCrop
LBB0_43:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageCropAuto                ; -- Begin function gdImageCropAuto
	.p2align	2
_gdImageCropAuto:                       ; @gdImageCropAuto
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x1
	mov	x19, x0
	bl	_gdImageSX
	mov	x20, x0
	mov	x0, x19
	bl	_gdImageSY
	mov	x21, x0
	str	wzr, [sp, #16]
	str	xzr, [sp, #8]
	sub	w8, w22, #128
	cmp	w8, #4
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_gdImageGetTransparent
	b	LBB0_7
LBB0_3:
	mov	x0, x19
	mov	w1, #255
	mov	w2, #255
	mov	w3, #255
	b	LBB0_6
LBB0_4:
	add	x1, sp, #28
	mov	x0, x19
	bl	_gdGuessBackgroundColorFromCorners
	cmp	w21, #1
	b.ge	LBB0_8
	b	LBB0_16
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
LBB0_6:
	mov	w4, #0
	bl	_gdImageColorClosestAlpha
LBB0_7:
	str	w0, [sp, #28]
	cmp	w21, #1
	b.lt	LBB0_16
LBB0_8:
	mov	w9, #0
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #1
	cbz	w8, LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w9, w22, #1
	cmp	w9, w21
	b.ge	LBB0_15
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x22, x9
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w23, #1
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w1, w23, #1
	mov	x0, x19
	mov	x2, x22
	bl	_gdImageGetPixel
	ldr	w8, [sp, #28]
	cmp	w8, w0
	ccmp	w23, w20, #0, eq
	add	w23, w23, #1
	b.lt	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, w0
	cset	w8, eq
	cbnz	w8, LBB0_10
LBB0_15:
	cbz	w8, LBB0_17
LBB0_16:
	mov	x0, #0
	b	LBB0_40
LBB0_17:
	str	w22, [sp, #12]
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w8, #1
	cbz	w8, LBB0_24
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	cmp	w23, #1
	b.le	LBB0_24
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	mov	x23, x21
	sub	w21, w21, #1
	cmp	w20, #1
	b.lt	LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	w24, #1
LBB0_22:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w1, w24, #1
	ldr	w25, [sp, #28]
	mov	x0, x19
	mov	x2, x21
	bl	_gdImageGetPixel
	cmp	w25, w0
	ccmp	w24, w20, #0, eq
	add	w24, w24, #1
	b.lt	LBB0_22
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	cmp	w25, w0
	cset	w8, eq
	cbnz	w8, LBB0_19
LBB0_24:
	sub	w8, w23, w22
	str	w8, [sp, #20]
	subs	w22, w20, #1
	b.lt	LBB0_38
; %bb.25:
	mov	w9, #0
LBB0_26:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
	mov	w8, #0
	mov	x21, x9
LBB0_27:                                ;   Parent Loop BB0_26 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x22, x8
	cmp	w8, w23
	b.ge	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	ldr	w24, [sp, #28]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_gdImageGetPixel
	add	w8, w22, #1
	cmp	w24, w0
	b.eq	LBB0_27
LBB0_29:                                ;   in Loop: Header=BB0_26 Depth=1
	cmp	w22, w23
	b.lt	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_26 Depth=1
	add	w9, w21, #1
	cmp	w9, w20
	b.lt	LBB0_26
LBB0_31:
	str	w21, [sp, #8]
	subs	w22, w20, #1
	b.lt	LBB0_39
LBB0_32:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_33 Depth 2
	mov	w8, #0
LBB0_33:                                ;   Parent Loop BB0_32 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x20, x8
	cmp	w8, w23
	b.ge	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=2
	ldr	w24, [sp, #28]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_gdImageGetPixel
	add	w8, w20, #1
	cmp	w24, w0
	b.eq	LBB0_33
LBB0_35:                                ;   in Loop: Header=BB0_32 Depth=1
	sub	w8, w22, #1
	cmp	w20, w23
	b.lt	LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_32 Depth=1
	cmp	w22, #0
	mov	x22, x8
	b.gt	LBB0_32
LBB0_37:
	mov	x22, x8
	b	LBB0_39
LBB0_38:
	mov	w21, #-1
	str	w21, [sp, #8]
LBB0_39:
	sub	w8, w22, w21
	add	w8, w8, #2
	str	w8, [sp, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	_gdImageCrop
LBB0_40:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
.subsections_via_symbols
