	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function gdImageCropThreshold
LCPI0_0:
	.long	0x42c80000                      ## float 100
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gdImageCropThreshold
	.p2align	4, 0x90
_gdImageCropThreshold:                  ## @gdImageCropThreshold
	.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
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_gdImageSX
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_gdImageSY
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	LCPI0_0(%rip), %xmm0
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$0, -72(%rbp)
	movq	$0, -80(%rbp)
	ja	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_gdImageTrueColor
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_7
	jmp	LBB0_1
LBB0_5:
	movq	%r12, %rdi
	callq	_gdImageColorsTotal
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%r14d, %ecx
	jbe	LBB0_41
## %bb.6:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_41
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %ecx
	testl	%ecx, %ecx
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	leal	1(%r13), %eax
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_15
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	%eax, %r13d
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-1(%rbx), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_gdImageGetPixel
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_gdColorMatch
	testq	%rax, %rax
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	leal	1(%rbx), %ecx
	cmpl	%r15d, %ebx
	movl	%ecx, %ebx
	jl	LBB0_10
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setg	%cl
	testl	%ecx, %ecx
	jne	LBB0_14
LBB0_15:
	testl	%ecx, %ecx
	je	LBB0_17
LBB0_1:
	xorl	%eax, %eax
LBB0_41:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	%r13d, -76(%rbp)
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	$1, %ecx
	testl	%ecx, %ecx
	je	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$2, -64(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_25
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ecx
	movq	%rcx, %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leal	-1(%rcx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-1(%rbx), %esi
	movq	%r12, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_gdImageGetPixel
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_gdColorMatch
	testq	%rax, %rax
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	leal	1(%rbx), %ecx
	cmpl	%r15d, %ebx
	movl	%ecx, %ebx
	jl	LBB0_20
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setg	%cl
	testl	%ecx, %ecx
	jne	LBB0_24
LBB0_25:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %eax
	subl	%r13d, %eax
	movl	%eax, -68(%rbp)
	testl	%r15d, %r15d
	jle	LBB0_39
## %bb.26:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	movl	$0, %edx
	cmovgl	%ecx, %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
	movl	%eax, %r13d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %ebx
	cmpl	%ecx, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=2
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_gdImageGetPixel
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_gdColorMatch
	leal	1(%rbx), %ecx
	testq	%rax, %rax
	jg	LBB0_28
LBB0_30:                                ##   in Loop: Header=BB0_27 Depth=1
	cmpl	%ebx, -48(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=1
	leal	1(%r13), %eax
	cmpl	%r15d, %eax
	jl	LBB0_27
LBB0_32:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, -80(%rbp)
	decl	%r15d
	xorl	%eax, %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	testl	%r13d, %r13d
	cmovlel	%eax, %r13d
	.p2align	4, 0x90
LBB0_33:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_34 Depth 2
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_33 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %ebx
	cmpl	%ecx, %r13d
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=2
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_gdImageGetPixel
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_gdColorMatch
	leal	1(%rbx), %ecx
	testq	%rax, %rax
	jg	LBB0_34
LBB0_36:                                ##   in Loop: Header=BB0_33 Depth=1
	leal	-1(%r15), %eax
	cmpl	%ebx, %r13d
	jne	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_33 Depth=1
	testl	%r15d, %r15d
	movl	%eax, %r15d
	jg	LBB0_33
LBB0_38:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_40
LBB0_39:
	movl	$-1, -80(%rbp)
	decl	%r15d
	movl	$-1, %ecx
	movl	%r15d, %eax
LBB0_40:
	subl	%ecx, %eax
	addl	$2, %eax
	movl	%eax, -72(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_gdImageCrop
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageCropThreshold           ; -- Begin function gdImageCropThreshold
	.p2align	2
_gdImageCropThreshold:                  ; @gdImageCropThreshold
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	fmov	s8, s0
	mov	x20, x1
	mov	x19, x0
	bl	_gdImageSX
	mov	x21, x0
	mov	x0, x19
	bl	_gdImageSY
	mov	x22, x0
	mov	x0, #0
	str	wzr, [sp, #8]
	str	xzr, [sp]
	mov	w8, #1120403456
	fmov	s0, w8
	fcmp	s8, s0
	b.gt	LBB0_36
; %bb.1:
	mov	x0, x19
	bl	_gdImageTrueColor
	cbz	w0, LBB0_3
; %bb.2:
	cmp	w22, #1
	b.ge	LBB0_5
	b	LBB0_13
LBB0_3:
	mov	x0, x19
	bl	_gdImageColorsTotal
	mov	x8, x0
	mov	x0, #0
	cmp	w8, w20
	b.ls	LBB0_36
; %bb.4:
	cmp	w22, #0
	b.le	LBB0_36
LBB0_5:
	mov	w9, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #1
	cbz	w8, LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w9, w23, #1
	cmp	w9, w22
	b.ge	LBB0_12
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mov	x23, x9
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w24, #1
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w1, w24, #1
	mov	x0, x19
	mov	x2, x23
	bl	_gdImageGetPixel
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	fmov	s0, s8
	bl	_gdColorMatch
	cmp	x0, #1
	ccmp	w24, w21, #0, ge
	add	w24, w24, #1
	b.lt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x0, #0
	cset	w8, gt
	cbnz	w8, LBB0_7
LBB0_12:
	cbz	w8, LBB0_14
LBB0_13:
	mov	x0, #0
	b	LBB0_36
LBB0_14:
	str	w23, [sp, #4]
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	w8, #1
	cbz	w8, LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	cmp	w25, #1
	b.le	LBB0_21
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	mov	x25, x22
	sub	w22, w22, #1
	cmp	w21, #1
	b.lt	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	w24, #1
LBB0_19:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w1, w24, #1
	mov	x0, x19
	mov	x2, x22
	bl	_gdImageGetPixel
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	fmov	s0, s8
	bl	_gdColorMatch
	cmp	x0, #1
	ccmp	w24, w21, #0, ge
	add	w24, w24, #1
	b.lt	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	x0, #0
	cset	w8, gt
	cbnz	w8, LBB0_16
LBB0_21:
	sub	w8, w25, w23
	str	w8, [sp, #12]
	subs	w23, w21, #1
	b.lt	LBB0_34
; %bb.22:
	mov	w8, #0
	cmp	w25, #0
	csel	w26, w25, wzr, gt
LBB0_23:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	mov	w9, #0
	mov	x22, x8
LBB0_24:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x24, x9
	cmp	w26, w9
	b.eq	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	bl	_gdImageGetPixel
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	fmov	s0, s8
	bl	_gdColorMatch
	add	w9, w24, #1
	cmp	x0, #0
	b.gt	LBB0_24
LBB0_26:                                ;   in Loop: Header=BB0_23 Depth=1
	cmp	w26, w24
	b.ne	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_23 Depth=1
	add	w8, w22, #1
	cmp	w8, w21
	b.lt	LBB0_23
LBB0_28:
	str	w22, [sp]
	cmp	w25, #0
	csel	w24, w25, wzr, gt
LBB0_29:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_30 Depth 2
	mov	w8, #0
LBB0_30:                                ;   Parent Loop BB0_29 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x21, x8
	cmp	w24, w8
	b.eq	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=2
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_gdImageGetPixel
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	fmov	s0, s8
	bl	_gdColorMatch
	add	w8, w21, #1
	cmp	x0, #0
	b.gt	LBB0_30
LBB0_32:                                ;   in Loop: Header=BB0_29 Depth=1
	sub	w8, w23, #1
	cmp	w24, w21
	b.ne	LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_29 Depth=1
	cmp	w23, #0
	mov	x23, x8
	b.gt	LBB0_29
	b	LBB0_35
LBB0_34:
	mov	w22, #-1
	str	w22, [sp]
	mov	x8, x23
LBB0_35:
	sub	w8, w8, w22
	add	w8, w8, #2
	str	w8, [sp, #8]
	mov	x1, sp
	mov	x0, x19
	bl	_gdImageCrop
LBB0_36:
	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
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
