	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_signed_rect_clamped_8bit_c
_put_signed_rect_clamped_8bit_c:        ## @put_signed_rect_clamped_8bit_c
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	testl	%r9d, %r9d
	jle	LBB0_6
## %bb.1:
	movl	%r8d, %r15d
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movslq	%esi, %rax
	sarl	%ecx
	movslq	%ecx, %rcx
	shlq	$2, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$3, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	addq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12,%r14,8), %rdi
	subq	$-128, %rdi
	callq	_av_clip_uint8
	movl	%eax, (%rbx,%r14,4)
	movq	8(%r12,%r14,8), %rdi
	subq	$-128, %rdi
	callq	_av_clip_uint8
	movl	%eax, 4(%rbx,%r14,4)
	movq	16(%r12,%r14,8), %rdi
	subq	$-128, %rdi
	callq	_av_clip_uint8
	movl	%eax, 8(%rbx,%r14,4)
	movq	24(%r12,%r14,8), %rdi
	subq	$-128, %rdi
	callq	_av_clip_uint8
	movl	%eax, 12(%rbx,%r14,4)
	addq	$4, %r14
	cmpl	%r15d, %r14d
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_put_signed_rect_clamped_8bit_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_signed_rect_clamped_8bit_c
_put_signed_rect_clamped_8bit_c:        ; @put_signed_rect_clamped_8bit_c
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w5, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x5
	mov	x20, x4
	mov	w21, #0
	asr	w8, w3, #1
	add	x22, x2, #16
	sbfiz	x23, x8, #3, #32
	add	x24, x0, #8
	sbfiz	x25, x1, #2, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	add	x22, x22, x23
	add	x24, x24, x25
	cmp	w21, w19
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w26, #0
	mov	x27, x24
	mov	x28, x22
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x8, [x28, #-16]
	add	x0, x8, #128
	bl	_av_clip_uint8
	stur	w0, [x27, #-8]
	ldur	x8, [x28, #-8]
	add	x0, x8, #128
	bl	_av_clip_uint8
	stur	w0, [x27, #-4]
	ldr	x8, [x28]
	add	x0, x8, #128
	bl	_av_clip_uint8
	str	w0, [x27]
	ldr	x8, [x28, #8]
	add	x0, x8, #128
	bl	_av_clip_uint8
	str	w0, [x27, #4]
	add	w26, w26, #4
	add	x28, x28, #32
	add	x27, x27, #16
	cmp	w26, w20
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_put_signed_rect_clamped_8bit_c
.subsections_via_symbols
