	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function picmemset_8bpp
_picmemset_8bpp:                        ## @picmemset_8bpp
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %r14
	movl	%ecx, %ebx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movslq	(%r12), %rdx
	movslq	(%rax), %rsi
	imulq	%rdx, %rsi
	shlq	$2, %rsi
	addq	(%rcx), %rsi
	movslq	(%r14), %rax
	leal	(%rax,%rbx), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %r15d
	leaq	(%rsi,%rax,4), %rdi
	cmpl	%r15d, %ecx
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	subl	%eax, %r15d
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	callq	_memset
	subl	%r15d, %ebx
	movl	$0, (%r14)
	movl	(%r12), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, (%r12)
	testl	%eax, %eax
	jg	LBB0_1
	jmp	LBB0_5
LBB0_4:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_memset
	addl	%ebx, (%r14)
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_picmemset_8bpp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function picmemset_8bpp
_picmemset_8bpp:                        ; @picmemset_8bpp
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	x9, x8, [x23]
	ldr	x8, [x8]
	ldr	w10, [x22]
	ldr	w9, [x9]
	mul	w9, w9, w10
	add	x8, x8, w9, sxtw #2
	ldrsw	x9, [x19]
	ldr	w10, [x24]
	add	w11, w9, w20
	cmp	w11, w10
	b.lt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w25, w10, w9
	add	x0, x8, x9, lsl #2
	mov	x1, x21
	mov	x2, x25
	bl	_memset
	sub	w20, w20, w25
	str	wzr, [x19]
	ldr	w8, [x22]
	subs	w8, w8, #1
	str	w8, [x22]
	b.ge	LBB0_1
	b	LBB0_5
LBB0_4:
	add	x0, x8, x9, lsl #2
	mov	x1, x21
	mov	x2, x20
	bl	_memset
	ldr	w8, [x19]
	add	w8, w8, w20
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_picmemset_8bpp
.subsections_via_symbols
