	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tv_setup_filter
_tv_setup_filter:                       ## @tv_setup_filter
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_tv_enc
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_get_tv_norm
	movq	%rax, %r15
	movq	(%rbx), %r13
	movl	4(%r14), %edi
	callq	_calc_overscan
	movl	%eax, %r14d
	movq	_id3@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r13), %r12d
	imull	%ebx, %r12d
	imull	4(%r13), %ebx
	movl	(%r15), %esi
	imull	%r14d, %esi
	movl	%r12d, %edi
	callq	_do_div
	imull	4(%r15), %r14d
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_do_div
	movq	_id2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%r12d, %edi
	callq	_max
	movl	(%r14), %esi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_max                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_id3,4,2                        ## @id3
	.comm	_id2,4,2                        ## @id2
	.comm	_fparams,8,3                    ## @fparams
	.comm	_id5,4,2                        ## @id5
	.no_dead_strip	_tv_setup_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tv_setup_filter
_tv_setup_filter:                       ; @tv_setup_filter
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_to_tv_enc
	mov	x20, x0
	mov	x0, x19
	bl	_get_tv_norm
	mov	x21, x0
	ldr	x22, [x19]
	ldr	w0, [x20, #4]
	bl	_calc_overscan
	mov	x19, x0
Lloh0:
	adrp	x8, _id3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _id3@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x22]
	mul	w20, w8, w9
	mul	w22, w10, w8
	ldr	w8, [x21]
	mul	w1, w8, w0
	mov	x0, x20
	bl	_do_div
	ldr	w8, [x21, #4]
	mul	w1, w8, w19
	mov	x0, x22
	bl	_do_div
Lloh3:
	adrp	x19, _id2@GOTPAGE
Lloh4:
	ldr	x19, [x19, _id2@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_max
	ldr	w1, [x19]
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_max
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_id3,4,2                        ; @id3
	.comm	_id2,4,2                        ; @id2
	.comm	_fparams,8,3                    ; @fparams
	.comm	_id5,4,2                        ; @id5
	.no_dead_strip	_tv_setup_filter
.subsections_via_symbols
