	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImagePixelate                ## -- Begin function gdImagePixelate
	.p2align	4, 0x90
_gdImagePixelate:                       ## @gdImagePixelate
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testl	%esi, %esi
	jle	LBB0_29
## %bb.1:
	movl	%esi, %r12d
	cmpl	$1, %esi
	jne	LBB0_2
LBB0_28:
	movl	$1, %eax
LBB0_29:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$128, %edx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_19
## %bb.3:
	cmpl	$129, %edx
	jne	LBB0_29
## %bb.4:
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_28
## %bb.5:
	leal	-1(%r12), %ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	4(%rdi), %ecx
	xorl	%edx, %edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addl	%r12d, %esi
	movq	%rsi, %rdx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	cmpl	%eax, %esi
	jge	LBB0_28
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##         Child Loop BB0_10 Depth 4
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	%ecx, %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=2
	addl	%r12d, %ebx
	movl	4(%r14), %ecx
	cmpl	%ecx, %ebx
	jge	LBB0_17
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##         Child Loop BB0_10 Depth 4
	xorl	%ecx, %ecx
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	incl	%ecx
	cmpl	%r12d, %ecx
	je	LBB0_14
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_10 Depth 4
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	leal	(%rcx,%rax), %r14d
	xorl	%r13d, %r13d
	movl	%r14d, -96(%rbp)                ## 4-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=4
	incl	%r13d
	cmpl	%r13d, %r12d
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movl	-96(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_13
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ##       Parent Loop BB0_9 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	leal	(%rbx,%r13), %r15d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_gdImageBoundsSafe
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=4
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_gdImageGetPixel
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_gdImageAlpha
	addl	%eax, -64(%rbp)                 ## 4-byte Folded Spill
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_gdImageRed
	addl	%eax, -52(%rbp)                 ## 4-byte Folded Spill
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_gdImageGreen
	addl	%eax, -56(%rbp)                 ## 4-byte Folded Spill
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	callq	_gdImageBlue
	addl	%eax, -60(%rbp)                 ## 4-byte Folded Spill
	incl	-68(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, %edi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%edi
	movl	%eax, %esi
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%edi
	movl	%eax, %r8d
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%edi
	movl	%eax, %ecx
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%edi
	movq	%r14, %rdi
	movl	%r8d, %edx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %r8d
	callq	_gdImageColorResolveAlpha
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	addl	%ebx, %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	-92(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_gdImageFilledRectangle
	jmp	LBB0_16
LBB0_19:
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_28
## %bb.20:
	leal	-1(%r12), %r13d
	movl	4(%rdi), %ecx
	xorl	%r14d, %r14d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	(%rbx), %eax
LBB0_27:                                ##   in Loop: Header=BB0_21 Depth=1
	addl	-80(%rbp), %r14d                ## 4-byte Folded Reload
	cmpl	%eax, %r14d
	jge	LBB0_28
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_27
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	leal	(%r14,%r13), %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=2
	addl	-80(%rbp), %r12d                ## 4-byte Folded Reload
	movl	4(%rbx), %ecx
	cmpl	%ecx, %r12d
	jge	LBB0_26
LBB0_23:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_gdImageBoundsSafe
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_gdImageGetPixel
	leal	(%r12,%r13), %ecx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %r8d
	movl	%eax, %r9d
	callq	_gdImageFilledRectangle
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImagePixelate                ; -- Begin function gdImagePixelate
	.p2align	2
_gdImagePixelate:                       ; @gdImagePixelate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	w1, [sp, #28]                   ; 4-byte Folded Spill
	subs	w19, w1, #1
	b.lt	LBB0_20
; %bb.1:
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #1
	b	LBB0_21
LBB0_3:
	mov	x20, x0
	cmp	w2, #128
	b.eq	LBB0_22
; %bb.4:
	cmp	w2, #129
	b.ne	LBB0_20
; %bb.5:
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.6:
	stp	w19, wzr, [sp, #16]             ; 8-byte Folded Spill
	ldr	w8, [x20, #4]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x20]
	ldr	w19, [sp, #16]                  ; 4-byte Folded Reload
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	ldr	w11, [sp, #20]                  ; 4-byte Folded Reload
	add	w11, w11, w10
	str	w11, [sp, #20]                  ; 4-byte Folded Spill
	cmp	w11, w9
	b.ge	LBB0_2
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
                                        ;         Child Loop BB0_16 Depth 4
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w22, #0
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	add	w8, w19, w8
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	w8, [x20, #4]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	add	w22, w22, w9
	cmp	w22, w8
	b.ge	LBB0_7
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
                                        ;         Child Loop BB0_16 Depth 4
	mov	w9, #0
	mov	w27, #0
	mov	w28, #0
	mov	w23, #0
	mov	w21, #0
	mov	w26, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=3
	ldp	w9, w8, [sp, #24]               ; 8-byte Folded Reload
	add	w9, w9, #1
	cmp	w9, w8
	b.eq	LBB0_18
LBB0_14:                                ;   Parent Loop BB0_9 Depth=1
                                        ;     Parent Loop BB0_12 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_16 Depth 4
	mov	w19, #0
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	str	w9, [sp, #24]                   ; 4-byte Folded Spill
	add	w24, w9, w8
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=4
	add	w19, w19, #1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w8, w19
	b.eq	LBB0_13
LBB0_16:                                ;   Parent Loop BB0_9 Depth=1
                                        ;     Parent Loop BB0_12 Depth=2
                                        ;       Parent Loop BB0_14 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	add	w25, w22, w19
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	bl	_gdImageBoundsSafe
	cbz	w0, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=4
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	bl	_gdImageGetPixel
	mov	x25, x0
	mov	x0, x20
	mov	x1, x25
	bl	_gdImageAlpha
	add	w26, w0, w26
	mov	x0, x20
	mov	x1, x25
	bl	_gdImageRed
	add	w21, w0, w21
	mov	x0, x20
	mov	x1, x25
	bl	_gdImageGreen
	add	w23, w0, w23
	mov	x0, x20
	mov	x1, x25
	bl	_gdImageBlue
	add	w28, w0, w28
	add	w27, w27, #1
	b	LBB0_15
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=2
	cmp	w27, #1
	b.lt	LBB0_11
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=2
	sdiv	w1, w21, w27
	sdiv	w2, w23, w27
	sdiv	w3, w28, w27
	sdiv	w4, w26, w27
	mov	x0, x20
	bl	_gdImageColorResolveAlpha
	mov	x5, x0
	ldp	w8, w2, [sp, #16]               ; 8-byte Folded Reload
	add	w3, w8, w22
	mov	x0, x20
	mov	x1, x22
	ldr	w4, [sp, #12]                   ; 4-byte Folded Reload
	bl	_gdImageFilledRectangle
	b	LBB0_11
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.23:
	mov	w21, #0
	ldr	w8, [x20, #4]
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	w9, [x20]
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	add	w21, w21, w10
	cmp	w21, w9
	b.ge	LBB0_2
LBB0_26:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	w22, #0
	add	w23, w19, w21
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	w8, [x20, #4]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	add	w22, w22, w9
	cmp	w22, w8
	b.ge	LBB0_24
LBB0_29:                                ;   Parent Loop BB0_26 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_gdImageBoundsSafe
	cbz	w0, LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_gdImageGetPixel
	mov	x5, x0
	add	w3, w19, w22
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x4, x23
	bl	_gdImageFilledRectangle
	b	LBB0_28
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
