	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sti_mixer_active_video_area    ## -- Begin function sti_mixer_active_video_area
	.p2align	4, 0x90
_sti_mixer_active_video_area:           ## @sti_mixer_active_video_area
	.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	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rsi), %rdi
	movq	8(%rsi), %rsi
	xorl	%edx, %edx
	callq	_sti_vtg_get_line_number
	movl	%eax, %ebx
	movq	(%r12), %rdi
	movq	8(%r12), %rsi
	leaq	-1(%rsi), %rdx
	callq	_sti_vtg_get_line_number
	movl	%eax, %r14d
	movq	(%r12), %rdi
	movq	8(%r12), %rsi
	xorl	%edx, %edx
	callq	_sti_vtg_get_pixel_number
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rdi
	movq	8(%r12), %rsi
	leaq	-1(%rdi), %rdx
	callq	_sti_vtg_get_pixel_number
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_sti_mixer_to_str
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	movl	%r14d, %r9d
	callq	_DRM_DEBUG_DRIVER
	movq	_GAM_MIXER_AVO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$16, %ebx
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_sti_mixer_reg_write
	movq	_GAM_MIXER_AVS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$16, %r14d
	orl	%r13d, %r14d
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_sti_mixer_reg_write
	movq	_bkg_color@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sti_mixer_set_background_color
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_sti_mixer_set_background_area
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_sti_mixer_set_background_status
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s active video area xdo:%d ydo:%d xds:%d yds:%d\n"

	.comm	_GAM_MIXER_AVO,4,2              ## @GAM_MIXER_AVO
	.comm	_GAM_MIXER_AVS,4,2              ## @GAM_MIXER_AVS
	.comm	_bkg_color,4,2                  ## @bkg_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sti_mixer_active_video_area    ; -- Begin function sti_mixer_active_video_area
	.p2align	2
_sti_mixer_active_video_area:           ; @sti_mixer_active_video_area
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldp	x0, x1, [x1]
	mov	x2, #0
	bl	_sti_vtg_get_line_number
	mov	x21, x0
	ldp	x0, x1, [x20]
	sub	x2, x1, #1
	bl	_sti_vtg_get_line_number
	mov	x22, x0
	ldp	x0, x1, [x20]
	mov	x2, #0
	bl	_sti_vtg_get_pixel_number
	mov	x23, x0
	ldp	x0, x1, [x20]
	sub	x2, x0, #1
	bl	_sti_vtg_get_pixel_number
	mov	x24, x0
	mov	x0, x19
	bl	_sti_mixer_to_str
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x21
	mov	x4, x24
	mov	x5, x22
	bl	_DRM_DEBUG_DRIVER
Lloh2:
	adrp	x8, _GAM_MIXER_AVO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GAM_MIXER_AVO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	orr	w2, w23, w21, lsl #16
	mov	x0, x19
	bl	_sti_mixer_reg_write
Lloh5:
	adrp	x8, _GAM_MIXER_AVS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GAM_MIXER_AVS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	orr	w2, w24, w22, lsl #16
	mov	x0, x19
	bl	_sti_mixer_reg_write
Lloh8:
	adrp	x8, _bkg_color@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bkg_color@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sti_mixer_set_background_color
	mov	x0, x19
	mov	x1, x20
	bl	_sti_mixer_set_background_area
	mov	x0, x19
	mov	w1, #1
	bl	_sti_mixer_set_background_status
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s active video area xdo:%d ydo:%d xds:%d yds:%d\n"

	.comm	_GAM_MIXER_AVO,4,2              ; @GAM_MIXER_AVO
	.comm	_GAM_MIXER_AVS,4,2              ; @GAM_MIXER_AVS
	.comm	_bkg_color,4,2                  ; @bkg_color
.subsections_via_symbols
