	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_sono
_draw_sono:                             ## @draw_sono
	.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
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%rdi), %ecx
	movl	4(%rsi), %r14d
	movq	_AV_PIX_FMT_RGB24@GOTPCREL(%rip), %r8
	movq	_AV_PIX_FMT_YUV420P@GOTPCREL(%rip), %rax
	movl	%edx, %ebx
	shrl	$31, %ebx
	addl	%edx, %ebx
	sarl	%ebx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	cmpl	(%rax), %ecx
	movl	(%r8), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	cmovnel	%edx, %ebx
	movl	%ebx, -88(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movl	(%rax), %esi
	callq	_FFMIN
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.1:
	movl	%eax, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	16(%rcx), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addl	%ebx, %edx
	movslq	(%rax), %rax
	movslq	%edx, %rdi
	imulq	%rax, %rdi
	addq	(%rcx), %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	movq	16(%rax), %r8
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, %eax
	cltd
	idivl	%r14d
	movslq	(%rcx), %rax
	movslq	%edx, %rsi
	imulq	%rax, %rsi
	addq	(%r8), %rsi
	movl	%r13d, %edx
	callq	_memcpy
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_2
LBB0_3:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	-84(%rbp), %eax                 ## 4-byte Folded Reload
	movl	-88(%rbp), %r13d                ## 4-byte Reload
	movl	$0, %edx
	je	LBB0_10
## %bb.4:
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %dl
	incl	%edx
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	4(%rax), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	4(%rax), %esi
	callq	_FFMIN
	testl	%r14d, %r14d
	movl	%r14d, %r12d
	jle	LBB0_7
## %bb.5:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	movl	%r12d, -92(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_AV_PIX_FMT_YUV420P@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%cl
	movl	%ebx, %eax
	shrl	%cl, %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rcx
	movq	16(%rdx), %rdx
	addl	%r13d, %eax
	movslq	4(%rcx), %rcx
	movslq	%eax, %rdi
	imulq	%rcx, %rdi
	addq	8(%rdx), %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	movq	16(%rax), %r8
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, %eax
	cltd
	idivl	%r12d
	movslq	4(%rcx), %rax
	movslq	%edx, %rsi
	imulq	%rax, %rsi
	addq	8(%r8), %rsi
	movl	%r15d, %edx
	movl	%r13d, %r14d
	callq	_memcpy
	movl	-92(%rbp), %r12d                ## 4-byte Reload
	addl	-72(%rbp), %ebx                 ## 4-byte Folded Reload
	cmpl	%r12d, %ebx
	jl	LBB0_6
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	8(%rax), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	8(%rax), %esi
	callq	_FFMIN
	movl	%eax, %r15d
	testl	%r12d, %r12d
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_AV_PIX_FMT_YUV420P@GOTPCREL(%rip), %rcx
	movl	-72(%rbp), %r14d                ## 4-byte Reload
	jle	LBB0_10
## %bb.8:
	movl	%r13d, %esi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rcx), %eax
	sete	%cl
	movl	%ebx, %eax
	shrl	%cl, %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rcx
	movq	16(%rdx), %rdx
	addl	%esi, %eax
	movslq	8(%rcx), %rcx
	movslq	%eax, %rdi
	imulq	%rcx, %rdi
	addq	16(%rdx), %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	movq	16(%rax), %r8
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, %eax
	cltd
	idivl	%r12d
	movslq	8(%rcx), %rax
	movl	%esi, %r13d
	movslq	%edx, %rsi
	imulq	%rax, %rsi
	addq	16(%r8), %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movl	%r13d, %esi
	movq	_AV_PIX_FMT_YUV420P@GOTPCREL(%rip), %rcx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	%r14d, %ebx
	cmpl	%r12d, %ebx
	jl	LBB0_9
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_RGB24,4,2           ## @AV_PIX_FMT_RGB24
	.comm	_AV_PIX_FMT_YUV420P,4,2         ## @AV_PIX_FMT_YUV420P
	.no_dead_strip	_draw_sono
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_sono
_draw_sono:                             ; @draw_sono
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w24, [x0]
	ldr	w25, [x1, #4]
Lloh0:
	adrp	x8, _AV_PIX_FMT_RGB24@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_RGB24@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh3:
	adrp	x8, _AV_PIX_FMT_YUV420P@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PIX_FMT_YUV420P@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w2, #0
	cinc	w9, w2, lt
	asr	w9, w9, #1
	cmp	w24, w8
	csel	w27, w9, w2, eq
	mov	w8, #1
	cinc	w28, w8, eq
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	ldr	x8, [x1, #8]
	ldr	w1, [x8]
	bl	_FFMIN
	cmp	w25, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, x0
	mov	w26, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x21, #8]
	ldr	x8, [x8]
	add	w10, w22, w26
	ldrsw	x9, [x9]
	sxtw	x10, w10
	madd	x0, x9, x10, x8
	add	w8, w19, w26
	sdiv	w9, w8, w25
	msub	w8, w9, w25, w8
	ldp	x10, x9, [x20, #8]
	ldr	x9, [x9]
	ldrsw	x10, [x10]
	sxtw	x8, w8
	madd	x1, x10, x8, x9
	mov	x2, x23
	bl	_memcpy
	add	w26, w26, #1
	cmp	w25, w26
	b.ne	LBB0_2
LBB0_3:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w24, w8
Lloh6:
	adrp	x26, _AV_PIX_FMT_YUV420P@GOTPAGE
Lloh7:
	ldr	x26, [x26, _AV_PIX_FMT_YUV420P@GOTPAGEOFF]
	b.eq	LBB0_10
; %bb.4:
	ldr	x8, [x21, #8]
	ldr	w0, [x8, #4]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #4]
	bl	_FFMIN
	cmp	w25, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x22, x0
	mov	w23, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	cmp	w24, w8
	cset	w8, eq
	lsr	w8, w23, w8
	ldp	x10, x9, [x21, #8]
	ldr	x9, [x9, #8]
	add	w8, w8, w27
	ldrsw	x10, [x10, #4]
	sxtw	x8, w8
	madd	x0, x8, x10, x9
	add	w8, w19, w23
	sdiv	w9, w8, w25
	msub	w8, w9, w25, w8
	ldp	x10, x9, [x20, #8]
	ldr	x9, [x9, #8]
	ldrsw	x10, [x10, #4]
	sxtw	x8, w8
	madd	x1, x10, x8, x9
	mov	x2, x22
	bl	_memcpy
	add	w23, w23, w28
	cmp	w23, w25
	b.lt	LBB0_6
LBB0_7:
	ldr	x8, [x21, #8]
	ldr	w0, [x8, #8]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #8]
	bl	_FFMIN
	cmp	w25, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x22, x0
	mov	w23, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	cmp	w24, w8
	cset	w8, eq
	lsr	w8, w23, w8
	ldp	x10, x9, [x21, #8]
	ldr	x9, [x9, #16]
	add	w8, w8, w27
	ldrsw	x10, [x10, #8]
	sxtw	x8, w8
	madd	x0, x8, x10, x9
	add	w8, w19, w23
	sdiv	w9, w8, w25
	msub	w8, w9, w25, w8
	ldp	x10, x9, [x20, #8]
	ldr	x9, [x9, #16]
	ldrsw	x10, [x10, #8]
	sxtw	x8, w8
	madd	x1, x10, x8, x9
	mov	x2, x22
	bl	_memcpy
	add	w23, w23, w28
	cmp	w23, w25
	b.lt	LBB0_9
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_RGB24,4,2           ; @AV_PIX_FMT_RGB24
	.comm	_AV_PIX_FMT_YUV420P,4,2         ; @AV_PIX_FMT_YUV420P
	.no_dead_strip	_draw_sono
.subsections_via_symbols
