	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageScatterEx               ## -- Begin function gdImageScatterEx
	.p2align	4, 0x90
_gdImageScatterEx:                      ## @gdImageScatterEx
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %r14d
	movl	4(%rsi), %ecx
	movl	%ecx, %eax
	orl	%r14d, %eax
	jne	LBB0_1
LBB0_25:
	movl	$1, %eax
	jmp	LBB0_26
LBB0_1:
	xorl	%eax, %eax
	subl	%r14d, %ecx
	jle	LBB0_26
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	24(%rsi), %edi
	callq	_srand
	cmpl	$0, 8(%rbx)
	movl	(%r13), %eax
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.3:
	testl	%eax, %eax
	jle	LBB0_25
## %bb.4:
	movl	4(%r13), %ecx
	xorl	%edx, %edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %eax
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incl	%edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpl	%eax, %edx
	jge	LBB0_25
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%r14d, %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=2
	incl	%r15d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r13), %ecx
	cmpl	%ecx, %r15d
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jge	LBB0_14
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	xorl	%eax, %eax
	callq	_rand
	cltd
	movq	%r14, %rcx
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	idivl	%r14d
	movl	%edx, %r12d
	addl	%r15d, %r12d
	addl	%ecx, %r12d
	xorl	%eax, %eax
	callq	_rand
	cltd
	idivl	%r14d
	addl	-72(%rbp), %edx                 ## 4-byte Folded Reload
	movq	%r13, %rdi
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movl	%r12d, %esi
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	callq	_gdImageBoundsSafe
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_gdImageGetPixel
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_gdImageGetPixel
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=3
	incq	%r13
	movl	%eax, %ecx
	cmpq	%rcx, %r13
	jae	LBB0_13
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	16(%rbx), %rcx
	cmpl	(%rcx,%r13,4), %r14d
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_gdImageSetPixel
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	callq	_gdImageSetPixel
	movl	8(%rbx), %eax
	jmp	LBB0_12
LBB0_26:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	testl	%eax, %eax
	jle	LBB0_25
## %bb.17:
	movl	4(%r13), %ecx
	xorl	%edx, %edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r13), %eax
	movq	%r15, %r14
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incl	%edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpl	%eax, %edx
	jge	LBB0_25
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r14, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%r14d, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=2
	incl	%r12d
	movl	4(%r13), %ecx
	cmpl	%ecx, %r12d
	jge	LBB0_23
LBB0_20:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_rand
	cltd
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	idivl	%ebx
	movl	%edx, %r14d
	addl	%r15d, %r14d
	addl	%r12d, %r14d
	xorl	%eax, %eax
	callq	_rand
	cltd
	idivl	%ebx
	movl	%edx, %ebx
	addl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_gdImageBoundsSafe
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_gdImageGetPixel
	movl	%eax, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_gdImageGetPixel
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	callq	_gdImageSetPixel
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	callq	_gdImageSetPixel
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageScatterEx               ; -- Begin function gdImageScatterEx
	.p2align	2
_gdImageScatterEx:                      ; @gdImageScatterEx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [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 w27, -88
	.cfi_offset w28, -96
	ldp	w27, w8, [x1]
	orr	w9, w8, w27
	cbnz	w9, LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_18
LBB0_2:
	subs	w28, w8, w27
	b.le	LBB0_17
; %bb.3:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #24]
	bl	_srand
	ldr	w9, [x20, #8]
	ldr	w8, [x19]
	cmp	w8, #1
	cbz	w9, LBB0_19
; %bb.4:
	b.lt	LBB0_1
; %bb.5:
	mov	w21, #0
	ldr	w9, [x19, #4]
	str	w27, [sp, #8]                   ; 4-byte Folded Spill
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w21, w21, #1
	cmp	w21, w8
	b.ge	LBB0_1
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_15 Depth 3
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w22, #0
	add	w8, w21, w27
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	w22, w22, #1
	ldr	w9, [x19, #4]
	cmp	w22, w9
	ldr	w27, [sp, #8]                   ; 4-byte Folded Reload
	b.ge	LBB0_6
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_15 Depth 3
	bl	_rand
	sdiv	w8, w0, w28
	msub	w8, w8, w28, w0
	add	w9, w22, w27
	add	w23, w9, w8
	bl	_rand
	sdiv	w8, w0, w28
	msub	w8, w8, w28, w0
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	add	w24, w9, w8
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_gdImageBoundsSafe
	cbz	w0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_gdImageGetPixel
	mov	x25, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_gdImageGetPixel
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x26, x0
	mov	x27, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=3
	add	x27, x27, #1
	cmp	x27, w8, uxtw
	b.hs	LBB0_10
LBB0_15:                                ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [x20, #16]
	ldr	w9, [x9, x27, lsl #2]
	cmp	w25, w9
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=3
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	bl	_gdImageSetPixel
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x26
	bl	_gdImageSetPixel
	ldr	w8, [x20, #8]
	b	LBB0_14
LBB0_17:
	mov	w0, #0
LBB0_18:
	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	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
	b.lt	LBB0_1
; %bb.20:
	mov	w20, #0
	ldr	w9, [x19, #4]
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w8, [x19]
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	w20, w20, #1
	cmp	w20, w8
	b.ge	LBB0_1
LBB0_23:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	w21, #0
	add	w26, w20, w27
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=2
	add	w21, w21, #1
	ldr	w9, [x19, #4]
	cmp	w21, w9
	b.ge	LBB0_21
LBB0_26:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_rand
	sdiv	w8, w0, w28
	msub	w8, w8, w28, w0
	add	w9, w27, w21
	add	w22, w9, w8
	bl	_rand
	sdiv	w8, w0, w28
	msub	w8, w8, w28, w0
	add	w23, w26, w8
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_gdImageBoundsSafe
	cbz	w0, LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_gdImageGetPixel
	mov	x24, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_gdImageGetPixel
	mov	x25, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_gdImageSetPixel
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x25
	bl	_gdImageSetPixel
	b	LBB0_25
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
