	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_plane_setup_blending_legacy
_tegra_plane_setup_blending_legacy:     ## @tegra_plane_setup_blending_legacy
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	callq	_BLEND_WEIGHT1
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_BLEND_WEIGHT0
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_BLEND_COLOR_KEY_NONE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%rax, %r14
	xorl	%edi, %edi
	callq	_BLEND_WEIGHT1
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_BLEND_WEIGHT0
	movl	%eax, %r12d
	orl	%ebx, %r12d
	orl	(%r14), %r12d
	xorl	%edi, %edi
	callq	_BLEND_WEIGHT1
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_BLEND_WEIGHT0
	orl	%ebx, %eax
	orl	(%r14), %eax
	movq	%r14, %rbx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$255, %edi
	callq	_BLEND_WEIGHT1
	movl	%eax, %r14d
	movl	$255, %edi
	callq	_BLEND_WEIGHT0
	movl	%eax, %r13d
	orl	%r14d, %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	orl	(%rbx), %r13d
	movl	$255, %edi
	callq	_BLEND_WEIGHT1
	movl	%eax, %ebx
	movl	$255, %edi
	callq	_BLEND_WEIGHT0
	orl	%eax, %ebx
	movq	_DC_WIN_BLEND_NOKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_tegra_plane_writel
	movq	_DC_WIN_BLEND_1WIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_tegra_plane_writel
	movl	(%r14), %edi
	callq	_to_tegra_plane_state
	cmpq	$0, 16(%rax)
	je	LBB0_5
## %bb.1:
	movq	_BLEND_CONTROL_DEPENDENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, %r15d
	orl	%ecx, %r12d
	movl	8(%rax), %edx
	cmpl	$1, %edx
	je	LBB0_17
## %bb.2:
	testl	%edx, %edx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_23
## %bb.3:
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_21
## %bb.4:
	xorl	%edx, %edx
	cmpq	$0, 24(%rax)
	cmovel	%edx, %ecx
	orl	%ecx, %ebx
	jmp	LBB0_21
LBB0_5:
	movq	_BLEND_CONTROL_ALPHA@GOTPCREL(%rip), %r8
	movq	(%rax), %rcx
	movq	_BLEND_CONTROL_DEPENDENT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	8(%rcx), %r10
	testq	%r10, %r10
	je	LBB0_7
## %bb.6:
	xorl	%ebx, %ebx
	cmpq	$0, (%rcx)
	cmovnel	%r9d, %ebx
	orl	%ebx, %r15d
LBB0_7:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	(%r8), %edi
	movq	24(%rcx), %r8
	testq	%r8, %r8
	je	LBB0_9
## %bb.8:
	xorl	%edx, %edx
	cmpq	$0, 16(%rcx)
	cmovnel	%r9d, %edx
	orl	%edx, %r12d
LBB0_9:
	orl	%edi, %r13d
	movl	8(%rax), %edx
	cmpl	$1, %edx
	je	LBB0_13
## %bb.10:
	testl	%edx, %edx
	jne	LBB0_23
## %bb.11:
	testq	%r10, %r10
	je	LBB0_21
## %bb.12:
	xorl	%eax, %eax
	testq	%r8, %r8
	cmovel	%eax, %r9d
	orl	%r9d, %ebx
	jmp	LBB0_21
LBB0_23:
	movl	%r13d, %r15d
	movl	%r13d, %ebx
	cmpl	$2, %edx
	je	LBB0_22
## %bb.24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	orl	%ecx, %ebx
	jmp	LBB0_18
LBB0_13:
	testq	%r10, %r10
	je	LBB0_15
## %bb.14:
	xorl	%edx, %edx
	cmpq	$0, (%rcx)
	cmovnel	%edi, %edx
	orl	%edx, %ebx
LBB0_15:
	testq	%r8, %r8
	je	LBB0_18
## %bb.16:
	xorl	%edx, %edx
	cmpq	$0, 16(%rcx)
	cmovel	%edx, %edi
	orl	%edi, %ebx
LBB0_18:
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_22
## %bb.19:
	cmpq	$0, 16(%rax)
	je	LBB0_22
## %bb.20:
	movl	%r13d, %r15d
LBB0_21:
	movl	%r12d, %r13d
LBB0_22:
	movq	_DC_WIN_BLEND_2WIN_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_tegra_plane_writel
	movq	_DC_WIN_BLEND_2WIN_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_tegra_plane_writel
	movq	_DC_WIN_BLEND_3WIN_XY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tegra_plane_writel             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BLEND_COLOR_KEY_NONE,4,2       ## @BLEND_COLOR_KEY_NONE
	.comm	_DC_WIN_BLEND_NOKEY,4,2         ## @DC_WIN_BLEND_NOKEY
	.comm	_DC_WIN_BLEND_1WIN,4,2          ## @DC_WIN_BLEND_1WIN
	.comm	_BLEND_CONTROL_DEPENDENT,4,2    ## @BLEND_CONTROL_DEPENDENT
	.comm	_BLEND_CONTROL_ALPHA,4,2        ## @BLEND_CONTROL_ALPHA
	.comm	_DC_WIN_BLEND_2WIN_X,4,2        ## @DC_WIN_BLEND_2WIN_X
	.comm	_DC_WIN_BLEND_2WIN_Y,4,2        ## @DC_WIN_BLEND_2WIN_Y
	.comm	_DC_WIN_BLEND_3WIN_XY,4,2       ## @DC_WIN_BLEND_3WIN_XY
	.no_dead_strip	_tegra_plane_setup_blending_legacy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_plane_setup_blending_legacy
_tegra_plane_setup_blending_legacy:     ; @tegra_plane_setup_blending_legacy
	.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	x19, x0
	mov	w0, #0
	bl	_BLEND_WEIGHT1
	mov	x20, x0
	mov	w0, #0
	bl	_BLEND_WEIGHT0
	orr	w8, w0, w20
Lloh0:
	adrp	x23, _BLEND_COLOR_KEY_NONE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BLEND_COLOR_KEY_NONE@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w20, w8, w9
	mov	w0, #0
	bl	_BLEND_WEIGHT1
	mov	x21, x0
	mov	w0, #0
	bl	_BLEND_WEIGHT0
	orr	w8, w0, w21
	ldr	w9, [x23]
	orr	w24, w8, w9
	mov	w0, #0
	bl	_BLEND_WEIGHT1
	mov	x21, x0
	mov	w0, #0
	bl	_BLEND_WEIGHT0
	orr	w8, w0, w21
	ldr	w9, [x23]
	orr	w21, w8, w9
	mov	w0, #255
	bl	_BLEND_WEIGHT1
	mov	x22, x0
	mov	w0, #255
	bl	_BLEND_WEIGHT0
	orr	w8, w0, w22
	ldr	w9, [x23]
	orr	w22, w8, w9
	mov	w0, #255
	bl	_BLEND_WEIGHT1
	mov	x23, x0
	mov	w0, #255
	bl	_BLEND_WEIGHT0
	orr	w1, w0, w23
Lloh2:
	adrp	x8, _DC_WIN_BLEND_NOKEY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DC_WIN_BLEND_NOKEY@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tegra_plane_writel
Lloh5:
	adrp	x8, _DC_WIN_BLEND_1WIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DC_WIN_BLEND_1WIN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_tegra_plane_writel
	ldr	w0, [x19]
	bl	_to_tegra_plane_state
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_5
; %bb.1:
Lloh8:
	adrp	x8, _BLEND_CONTROL_DEPENDENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BLEND_CONTROL_DEPENDENT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w20, w8, w20
	orr	w24, w8, w24
	ldr	w13, [x0, #8]
	cmp	w13, #1
	b.eq	LBB0_14
; %bb.2:
	cbnz	w13, LBB0_12
; %bb.3:
	ldr	x9, [x0]
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_22
; %bb.4:
	ldr	x9, [x9, #24]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
	orr	w21, w21, w8
	b	LBB0_22
LBB0_5:
Lloh11:
	adrp	x11, _BLEND_CONTROL_ALPHA@GOTPAGE
Lloh12:
	ldr	x11, [x11, _BLEND_CONTROL_ALPHA@GOTPAGEOFF]
	ldr	x8, [x0]
Lloh13:
	adrp	x9, _BLEND_CONTROL_DEPENDENT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BLEND_CONTROL_DEPENDENT@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x9]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	x12, [x8]
	cmp	x12, #0
	csel	w12, wzr, w10, eq
	orr	w20, w20, w12
LBB0_7:
	ldr	w12, [x11]
	ldr	x11, [x8, #24]
	cbz	x11, LBB0_9
; %bb.8:
	ldr	x13, [x8, #16]
	cmp	x13, #0
	csel	w13, wzr, w10, eq
	orr	w24, w24, w13
LBB0_9:
	orr	w22, w12, w22
	ldr	w13, [x0, #8]
	cmp	w13, #1
	b.eq	LBB0_15
; %bb.10:
	cbnz	w13, LBB0_12
; %bb.11:
	cmp	x11, #0
	csel	w8, wzr, w10, eq
	orr	w8, w21, w8
	cmp	x9, #0
	csel	w21, w21, w8, eq
	b	LBB0_22
LBB0_12:
	mov	x20, x22
	mov	x21, x22
	cmp	w13, #2
	b.eq	LBB0_23
; %bb.13:
	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
LBB0_14:
	orr	w21, w8, w21
	b	LBB0_19
LBB0_15:
	cbz	x9, LBB0_17
; %bb.16:
	ldr	x9, [x8]
	cmp	x9, #0
	csel	w9, wzr, w12, eq
	orr	w21, w21, w9
LBB0_17:
	cbz	x11, LBB0_19
; %bb.18:
	ldr	x8, [x8, #16]
	cmp	x8, #0
	csel	w8, wzr, w12, eq
	orr	w21, w21, w8
LBB0_19:
	ldr	x8, [x0]
	ldr	x9, [x8]
	cbnz	x9, LBB0_23
; %bb.20:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_23
; %bb.21:
	mov	x20, x22
LBB0_22:
	mov	x22, x24
LBB0_23:
Lloh16:
	adrp	x8, _DC_WIN_BLEND_2WIN_X@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DC_WIN_BLEND_2WIN_X@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_tegra_plane_writel
Lloh19:
	adrp	x8, _DC_WIN_BLEND_2WIN_Y@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DC_WIN_BLEND_2WIN_Y@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_tegra_plane_writel
Lloh22:
	adrp	x8, _DC_WIN_BLEND_3WIN_XY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DC_WIN_BLEND_3WIN_XY@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	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
	b	_tegra_plane_writel
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BLEND_COLOR_KEY_NONE,4,2       ; @BLEND_COLOR_KEY_NONE
	.comm	_DC_WIN_BLEND_NOKEY,4,2         ; @DC_WIN_BLEND_NOKEY
	.comm	_DC_WIN_BLEND_1WIN,4,2          ; @DC_WIN_BLEND_1WIN
	.comm	_BLEND_CONTROL_DEPENDENT,4,2    ; @BLEND_CONTROL_DEPENDENT
	.comm	_BLEND_CONTROL_ALPHA,4,2        ; @BLEND_CONTROL_ALPHA
	.comm	_DC_WIN_BLEND_2WIN_X,4,2        ; @DC_WIN_BLEND_2WIN_X
	.comm	_DC_WIN_BLEND_2WIN_Y,4,2        ; @DC_WIN_BLEND_2WIN_Y
	.comm	_DC_WIN_BLEND_3WIN_XY,4,2       ; @DC_WIN_BLEND_3WIN_XY
	.no_dead_strip	_tegra_plane_setup_blending_legacy
.subsections_via_symbols
