	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_sbad_ob
_get_sbad_ob:                           ## @get_sbad_ob
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, %edx
	movq	%rdi, %rbx
	movq	48(%rdi), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	40(%rdi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	(%rdi), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	8(%rdi), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	4(%rdi), %eax
	addl	%ecx, %eax
	movl	%eax, %esi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%rdi), %r12d
	subl	%ecx, %r12d
	movl	16(%rdi), %r14d
	addl	%ecx, %r14d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	20(%rdi), %r13d
	subl	%ecx, %r13d
	movl	%edx, -92(%rbp)                 ## 4-byte Spill
	movl	%edx, %edi
	movl	%r12d, %edx
	callq	_av_clip
	movl	%r15d, -88(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	movl	%eax, %r15d
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_av_clip
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	subl	%r15d, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r15d, %r14d
	subl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
	subl	%r15d, %r12d
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_FFMIN
	movl	%eax, %r15d
	negl	%r15d
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_FFMIN
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_av_clip
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	subl	%r14d, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r14d, %r15d
	subl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	subl	%r14d, %r13d
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_FFMIN
	movl	%eax, %r12d
	negl	%r12d
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_FFMIN
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_av_clip
	movq	%rbx, %r13
	movl	8(%rbx), %edi
	movl	%edi, %r9d
	shrl	$31, %r9d
	addl	%edi, %r9d
	sarl	%r9d
	negl	%r9d
	leal	(%rdi,%rdi,2), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	cmpl	%edx, %r9d
	jge	LBB0_1
## %bb.2:
	leal	(%r14,%r9), %edx
	subl	%eax, %edx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	imull	%r8d, %edx
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	addl	%ecx, %edx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	subl	%ebx, %edx
	addl	%ecx, %ebx
	addl	%r14d, %eax
	addl	%r9d, %eax
	imull	%r8d, %eax
	addl	%ebx, %eax
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	incl	%r9d
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addl	%ebx, %edx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	%ebx, %eax
	cmpl	%ecx, %r9d
	jge	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	%edi, %r15d
	shrl	$31, %r15d
	addl	%edi, %r15d
	sarl	%r15d
	negl	%r15d
	leal	(%rdi,%rdi,2), %r8d
	movl	%r8d, %ecx
	shrl	$31, %ecx
	addl	%r8d, %ecx
	sarl	%ecx
	cmpl	%ecx, %r15d
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jge	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r15d, %rbx
	leal	(%r15,%rdx), %r14d
	addl	%eax, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%r15d, %r15
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r15,8), %rdi
	movslq	%r14d, %r14
	movq	-104(%rbp), %rax                ## 8-byte Reload
	subq	(%rax,%r14,8), %rdi
	callq	_FFABS
	cltq
	addq	%rax, %r12
	incq	%rbx
	movl	8(%r13), %edi
	leal	(%rdi,%rdi,2), %edx
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
	movslq	%ecx, %rdx
	incl	%r14d
	incl	%r15d
	cmpq	%rdx, %rbx
	jl	LBB0_5
	jmp	LBB0_6
LBB0_1:
	xorl	%r12d, %r12d
LBB0_7:
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	subl	-88(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	subl	-92(%rbp), %eax                 ## 4-byte Folded Reload
	movslq	%eax, %rdi
	subq	32(%r13), %rdi
	callq	_FFABS
	movl	%eax, %r14d
	movslq	%ebx, %rdi
	subq	24(%r13), %rdi
	callq	_FFABS
	addl	%r14d, %eax
	movq	_COST_PRED_SCALE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cltq
	imulq	%rcx, %rax
	addq	%r12, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COST_PRED_SCALE,4,2            ## @COST_PRED_SCALE
	.no_dead_strip	_get_sbad_ob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_sbad_ob
_get_sbad_ob:                           ; @get_sbad_ob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x3
	mov	x22, x2
	mov	x19, x0
	ldp	x28, x23, [x0, #40]
	ldr	w8, [x0]
	stp	w4, w8, [sp, #24]               ; 8-byte Folded Spill
	ldp	w8, w9, [x0, #4]
	ldr	w10, [x0, #12]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	add	w26, w9, w8
	sub	w27, w10, w9
	ldp	w8, w10, [x0, #16]
	add	w21, w8, w9
	str	w21, [sp, #8]                   ; 4-byte Folded Spill
	sub	w25, w10, w9
	str	w1, [sp, #16]                   ; 4-byte Folded Spill
	mov	x0, x1
	mov	x1, x26
	mov	x2, x27
	bl	_av_clip
	mov	x24, x0
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	mov	x0, x22
	mov	x1, x21
	mov	x2, x25
	mov	x21, x25
	bl	_av_clip
	mov	x25, x0
	str	w20, [sp, #20]                  ; 4-byte Folded Spill
	sub	w20, w20, w24
	sub	w26, w24, w26
	sub	w27, w27, w24
	mov	x0, x26
	mov	x1, x27
	bl	_FFMIN
	neg	w22, w0
	mov	x0, x26
	mov	x1, x27
	bl	_FFMIN
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_av_clip
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	sub	w26, w8, w25
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	sub	w22, w25, w8
	sub	w20, w21, w25
	mov	x0, x22
	mov	x1, x20
	bl	_FFMIN
	neg	w27, w0
	mov	x0, x22
	mov	x1, x20
	bl	_FFMIN
	mov	x2, x0
	mov	x0, x26
	mov	x1, x27
	bl	_av_clip
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cinc	w9, w8, lt
	neg	w20, w9, asr #1
	add	w9, w8, w8, lsl #1
	cmp	w9, #0
	cinc	w9, w9, lt
	cmp	w20, w9, asr #1
	b.ge	LBB0_7
; %bb.1:
	mov	x22, #0
	add	w9, w25, w20
	sub	w9, w9, w0
	ldr	w11, [sp, #28]                  ; 4-byte Folded Reload
	madd	w9, w11, w9, w24
	ldr	w10, [sp, #4]                   ; 4-byte Folded Reload
	sub	w26, w9, w10
	add	w9, w10, w24
	add	w10, w0, w25
	add	w10, w10, w20
	madd	w24, w11, w10, w9
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	add	w26, w26, w11
	add	w24, w24, w11
	cmp	w20, w9
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w8, #0
	cinc	w9, w8, lt
	neg	w10, w9, asr #1
	add	w9, w8, w8, lsl #1
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	cmp	w10, w9
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x25, w10
	add	w27, w10, w26
	add	w21, w10, w24
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23, w21, sxtw #3]
	ldr	x9, [x28, w27, sxtw #3]
	sub	x0, x8, x9
	bl	_FFABS
	add	x22, x22, w0, sxtw
	add	x25, x25, #1
	ldr	w8, [x19, #8]
	add	w9, w8, w8, lsl #1
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	add	w27, w27, #1
	add	w21, w21, #1
	cmp	x25, w9, sxtw
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [sp, #28]                  ; 4-byte Folded Reload
	b	LBB0_2
LBB0_7:
	mov	x22, #0
LBB0_8:
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	sub	w21, w8, w9
	ldp	w9, w8, [sp, #16]               ; 8-byte Folded Reload
	sub	w8, w8, w9
	sxtw	x8, w8
	ldr	x9, [x19, #32]
	sub	x0, x8, x9
	bl	_FFABS
	mov	x20, x0
	sxtw	x8, w21
	ldr	x9, [x19, #24]
	sub	x0, x8, x9
	bl	_FFABS
	add	w8, w0, w20
Lloh0:
	adrp	x9, _COST_PRED_SCALE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _COST_PRED_SCALE@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	sxtw	x8, w8
	madd	x0, x8, x9, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_COST_PRED_SCALE,4,2            ; @COST_PRED_SCALE
	.no_dead_strip	_get_sbad_ob
.subsections_via_symbols
