	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function picmemset
_picmemset:                             ## @picmemset
	.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
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%edx, %r15d
	movl	24(%rbp), %r11d
	movq	16(%rbp), %rax
	movl	(%rax), %r10d
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movl	(%r8), %r8d
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movl	(%r9), %r14d
	movl	$8, %eax
	xorl	%edx, %edx
	idivl	%r11d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.1:
	movq	%rsi, %r13
	movslq	%r14d, %rsi
	movq	(%r13), %rcx
	movl	%eax, %ebx
	movq	8(%r13), %rdx
	movslq	(%rdx), %rax
	imulq	%rsi, %rax
	movq	%rax, %rsi
	shlq	$2, %rsi
	addq	(%rcx), %rsi
	movl	%r10d, %eax
	imull	%r11d, %eax
	movl	%eax, %ecx
	shll	%cl, %r15d
	movl	$-1, %r12d
	movl	%r11d, %ecx
	shll	%cl, %r12d
	notl	%r12d
	movl	%eax, %ecx
	shll	%cl, %r12d
	movl	$8, %eax
	subl	%r11d, %eax
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx def $rcx
	andl	$-2, %ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	movl	%r15d, %edx
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##         Child Loop BB0_23 Depth 4
	movl	%eax, %r15d
	cmpl	$8, %r11d
	jle	LBB0_6
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	-1(%rcx), %eax
	cmpl	$1, %ecx
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	jg	LBB0_2
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	subl	%r11d, %r15d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	js	LBB0_3
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##         Child Loop BB0_23 Depth 4
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %eax
	movl	%r15d, %ecx
	shrl	%cl, %eax
	andl	%r12d, %eax
	movslq	%r8d, %r9
	orl	%eax, (%rsi,%r9,4)
	incl	%r9d
	cmpl	(%rdi), %r9d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%r9d, %r8d
	jmp	LBB0_5
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=3
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_8 Depth=3
	cmpl	%r9d, %r8d
	jne	LBB0_5
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_23 Depth 4
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	decl	%r14d
	movl	8(%rdi), %eax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=3
	movl	4(%rdi), %r14d
	movl	8(%rdi), %eax
	decl	%r14d
	incl	%r10d
	cmpl	%eax, %r10d
	jge	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=3
	movl	%r11d, %ecx
	shll	%cl, -44(%rbp)                  ## 4-byte Folded Spill
	shll	%cl, %r12d
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=3
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	movq	(%rcx), %rcx
	movslq	(%rdx), %rdx
	movslq	%r14d, %rbx
	imulq	%rdx, %rbx
	leaq	(%rcx,%rbx,4), %rsi
	xorl	%r8d, %r8d
	cmpl	$1, %eax
	jne	LBB0_28
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=3
	movq	-56(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	imull	%edx, %eax
	cmpl	%r9d, %eax
	jl	LBB0_28
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=3
	cmpl	%r9d, %edx
	jge	LBB0_28
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=3
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%r9d, %eax
	movl	%edx, %esi
	cltd
	idivl	%esi
	testl	%edx, %edx
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=3
	testl	%esi, %esi
	movl	%r10d, -80(%rbp)                ## 4-byte Spill
	jle	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=3
	cmpl	$1, %esi
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=3
	xorl	%eax, %eax
	movl	$8, %ebx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	jmp	LBB0_24
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=3
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=3
	leaq	(%rcx,%rbx,4), %rdx
	addq	$4, %rdx
	xorl	%eax, %eax
	movl	$8, %ebx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-104(%rbp), %r9                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ##       Parent Loop BB0_8 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	cmpl	%r11d, %r15d
	cmovll	%ebx, %r15d
	subl	%r11d, %r15d
	movl	%r8d, %esi
	movl	%r15d, %ecx
	shrl	%cl, %esi
	andl	%r12d, %esi
	orl	%esi, -4(%rdx,%rax,4)
	cmpl	%r11d, %r15d
	cmovll	%ebx, %r15d
	subl	%r11d, %r15d
	movl	%r8d, %esi
	movl	%r15d, %ecx
	shrl	%cl, %esi
	andl	%r12d, %esi
	orl	%esi, (%rdx,%rax,4)
	addq	$2, %rax
	cmpq	%rax, %r9
	jne	LBB0_23
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=3
	testb	$1, -112(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_8 Depth=3
	cmpl	%r11d, %r15d
	cmovll	%ebx, %r15d
	subl	%r11d, %r15d
	movl	%r8d, %edx
	movl	%r15d, %ecx
	shrl	%cl, %edx
	andl	%r12d, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	orl	%edx, (%rcx,%rax,4)
LBB0_26:                                ##   in Loop: Header=BB0_8 Depth=3
	movl	(%rdi), %r9d
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %eax
LBB0_27:                                ##   in Loop: Header=BB0_8 Depth=3
	movl	%eax, %ecx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rcx,4), %rdi
	subl	%eax, %r9d
	movl	%esi, %r13d
	movl	%r9d, %edx
	callq	_av_memcpy_backptr
	movq	%rbx, %rsi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	(%rdi), %r9d
	movl	%r9d, %eax
	cltd
	idivl	%r13d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	subl	%eax, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%r9d, %r8d
	movl	-80(%rbp), %r10d                ## 4-byte Reload
	movq	-128(%rbp), %r13                ## 8-byte Reload
	movl	24(%rbp), %r11d
	jmp	LBB0_28
LBB0_11:
	xorl	%r8d, %r8d
LBB0_4:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%r8d, (%rax)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	16(%rbp), %rax
	movl	%r10d, (%rax)
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_picmemset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function picmemset
_picmemset:                             ; @picmemset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	stp	x5, x6, [sp, #24]               ; 16-byte Folded Spill
	ldr	w27, [x6]
	str	x4, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w8, [x4]
	ldr	w28, [x5]
	cmp	w3, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x22, x7
	mov	x24, x1
	mov	x25, x0
	mov	w11, #8
	sdiv	w26, w11, w7
	ldp	x9, x10, [x1]
	ldr	x9, [x9]
	ldr	w10, [x10]
	mul	w10, w10, w28
	add	x19, x9, w10, sxtw #2
	mul	w9, w27, w7
	lsl	w20, w2, w9
	mov	w10, #-1
	lsl	w10, w10, w7
	mvn	w10, w10
	lsl	w21, w10, w9
	sub	w23, w11, w7
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;         Child Loop BB0_19 Depth 4
	cmp	w22, #8
	b.le	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_2 Depth=1
	subs	w3, w3, #1
	ldr	w23, [sp, #12]                  ; 4-byte Folded Reload
	b.gt	LBB0_2
	b	LBB0_24
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	subs	w23, w23, w22
	b.mi	LBB0_3
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;         Child Loop BB0_19 Depth 4
	lsr	w9, w20, w23
	and	w9, w9, w21
	sbfiz	x10, x8, #2, #32
	ldr	w11, [x19, x10]
	orr	w9, w11, w9
	str	w9, [x19, x10]
	add	w9, w8, #1
	ldr	w8, [x25]
	cmp	w9, w8
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x8, x9
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=3
	mov	w8, #0
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=3
	cmp	w8, w9
	b.ne	LBB0_4
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_19 Depth 4
	subs	w28, w28, #1
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	ldr	w8, [x25, #8]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=3
	ldp	w10, w8, [x25, #4]
	sub	w28, w10, #1
	add	w27, w27, #1
	cmp	w27, w8
	b.ge	LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=3
	lsl	w20, w20, w22
	lsl	w21, w21, w22
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=3
	ldp	x10, x11, [x24]
	ldr	x10, [x10]
	ldr	w11, [x11]
	mul	w11, w11, w28
	add	x19, x10, w11, sxtw #2
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=3
	mov	w8, #0
	mul	w10, w3, w26
	cmp	w10, w9
	b.lt	LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=3
	cmp	w26, w9
	b.ge	LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=3
	sdiv	w8, w9, w26
	msub	w8, w8, w26, w9
	cbnz	w8, LBB0_7
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=3
	cmp	w26, #1
	str	w3, [sp, #44]                   ; 4-byte Folded Spill
	b.lt	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=3
	mov	x8, x26
	mov	x9, x19
	mov	w12, #8
LBB0_19:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ;       Parent Loop BB0_9 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	cmp	w23, w22
	csel	w10, w12, w23, lt
	sub	w23, w10, w22
	lsr	w10, w20, w23
	and	w10, w10, w21
	ldr	w11, [x9]
	orr	w10, w11, w10
	str	w10, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=3
	ldr	w9, [x25]
	mov	x8, x26
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=3
	mov	w8, #0
LBB0_22:                                ;   in Loop: Header=BB0_9 Depth=3
	add	x0, x19, w8, uxtw #2
	sub	w2, w9, w8
	mov	x1, x26
	bl	_av_memcpy_backptr
	ldr	w9, [x25]
	sdiv	w8, w9, w26
	ldr	w3, [sp, #44]                   ; 4-byte Folded Reload
	sub	w3, w3, w8
	mov	x8, x9
	b	LBB0_8
LBB0_23:
	mov	w8, #0
LBB0_24:
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	w28, [x8]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	w27, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_picmemset
.subsections_via_symbols
