	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispc_ovl_setup
_dispc_ovl_setup:                       ## @dispc_ovl_setup
	.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	%r9d, %r14d
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	%esi, %ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	leaq	56(%rdx), %rdx
	leaq	52(%rbx), %rcx
	movl	48(%rbx), %r8d
	movl	44(%rbx), %r9d
	movl	40(%rbx), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	36(%rbx), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	32(%rbx), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	28(%rbx), %eax
	movl	24(%rbx), %r10d
	movl	16(%rbx), %r11d
	movl	20(%rbx), %r15d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	pushq	$1
	pushq	%r14
	pushq	%r11
	pushq	%r15
	pushq	%r10
	pushq	%rax
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_DSSDBG
	addq	$80, %rsp
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_dispc_ovl_set_channel_out
	movl	56(%rbx), %ecx
	movl	52(%rbx), %r8d
	movl	48(%rbx), %r9d
	movl	44(%rbx), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	40(%rbx), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	36(%rbx), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	32(%rbx), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	28(%rbx), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	24(%rbx), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	20(%rbx), %r11d
	movl	16(%rbx), %r15d
	movl	12(%rbx), %eax
	movl	8(%rbx), %r14d
	movl	(%rbx), %r10d
	movl	4(%rbx), %ebx
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	$1
	pushq	%r10
	pushq	%rbx
	pushq	%r14
	pushq	%rax
	pushq	%r15
	pushq	%r11
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_dispc_ovl_setup_common
	addq	$200, %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	"dispc_ovl_setup %d, pa %pad, pa_uv %pad, sw %d, %d,%d, %dx%d -> %dx%d, cmode %x, rot %d, chan %d repl %d\n"

	.no_dead_strip	_dispc_ovl_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dispc_ovl_setup
_dispc_ovl_setup:                       ; @dispc_ovl_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x24, x5
	mov	x23, x4
	mov	x22, x3
	mov	x25, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w21, [x8, w1, uxtw #2]
	ldr	w4, [x2, #48]
	add	x2, x2, #56
	add	x3, x25, #52
	ldp	w6, w5, [x25, #40]
	ldp	w8, w7, [x25, #32]
	ldp	w10, w9, [x25, #24]
	ldp	w12, w11, [x25, #16]
	mov	w26, #1
	stp	w24, w26, [sp, #20]
	stp	w11, w12, [sp, #12]
	stp	w9, w10, [sp, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	str	w8, [sp]
	bl	_DSSDBG
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_dispc_ovl_set_channel_out
	ldp	w4, w3, [x25, #52]
	ldp	w6, w5, [x25, #44]
	ldp	w8, w7, [x25, #36]
	ldp	w10, w9, [x25, #28]
	ldp	w12, w11, [x25, #20]
	ldp	w14, w13, [x25, #12]
	ldp	w16, w15, [x25, #4]
	ldr	w17, [x25]
	str	w23, [sp, #56]
	str	x22, [sp, #48]
	stp	w17, w26, [sp, #36]
	stp	w15, w16, [sp, #28]
	stp	w13, w14, [sp, #20]
	stp	w11, w12, [sp, #12]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_dispc_ovl_setup_common
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dispc_ovl_setup %d, pa %pad, pa_uv %pad, sw %d, %d,%d, %dx%d -> %dx%d, cmode %x, rot %d, chan %d repl %d\n"

	.no_dead_strip	_dispc_ovl_setup
.subsections_via_symbols
