	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_plane_setup_blending
_tegra_plane_setup_blending:            ## @tegra_plane_setup_blending
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_BLEND_FACTOR_DST_ALPHA_ZERO@GOTPCREL(%rip), %r12
	movq	_BLEND_FACTOR_SRC_ALPHA_K2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%r12), %esi
	movq	_BLEND_FACTOR_DST_COLOR_NEG_K1_TIMES_SRC@GOTPCREL(%rip), %r13
	orl	(%r13), %esi
	movq	_BLEND_FACTOR_SRC_COLOR_K1_TIMES_SRC@GOTPCREL(%rip), %r14
	orl	(%r14), %esi
	movq	_DC_WIN_BLEND_MATCH_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_tegra_plane_writel
	movl	(%rbx), %esi
	orl	(%r12), %esi
	orl	(%r13), %esi
	orl	(%r14), %esi
	movq	_DC_WIN_BLEND_NOMATCH_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_tegra_plane_writel
	movl	$255, %edi
	callq	_K2
	movl	%eax, %ebx
	movl	$255, %edi
	callq	_K1
	orl	%eax, %ebx
	movl	$255, %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	subq	(%rax), %rdi
	callq	_WINDOW_LAYER_DEPTH
	orl	%eax, %ebx
	movq	_DC_WIN_BLEND_LAYER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tegra_plane_writel             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BLEND_FACTOR_DST_ALPHA_ZERO,4,2 ## @BLEND_FACTOR_DST_ALPHA_ZERO
	.comm	_BLEND_FACTOR_SRC_ALPHA_K2,4,2  ## @BLEND_FACTOR_SRC_ALPHA_K2
	.comm	_BLEND_FACTOR_DST_COLOR_NEG_K1_TIMES_SRC,4,2 ## @BLEND_FACTOR_DST_COLOR_NEG_K1_TIMES_SRC
	.comm	_BLEND_FACTOR_SRC_COLOR_K1_TIMES_SRC,4,2 ## @BLEND_FACTOR_SRC_COLOR_K1_TIMES_SRC
	.comm	_DC_WIN_BLEND_MATCH_SELECT,4,2  ## @DC_WIN_BLEND_MATCH_SELECT
	.comm	_DC_WIN_BLEND_NOMATCH_SELECT,4,2 ## @DC_WIN_BLEND_NOMATCH_SELECT
	.comm	_DC_WIN_BLEND_LAYER_CONTROL,4,2 ## @DC_WIN_BLEND_LAYER_CONTROL
	.no_dead_strip	_tegra_plane_setup_blending
.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
_tegra_plane_setup_blending:            ; @tegra_plane_setup_blending
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _BLEND_FACTOR_DST_ALPHA_ZERO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BLEND_FACTOR_DST_ALPHA_ZERO@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _BLEND_FACTOR_SRC_ALPHA_K2@GOTPAGE
Lloh3:
	ldr	x22, [x22, _BLEND_FACTOR_SRC_ALPHA_K2@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh4:
	adrp	x23, _BLEND_FACTOR_DST_COLOR_NEG_K1_TIMES_SRC@GOTPAGE
Lloh5:
	ldr	x23, [x23, _BLEND_FACTOR_DST_COLOR_NEG_K1_TIMES_SRC@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh6:
	adrp	x24, _BLEND_FACTOR_SRC_COLOR_K1_TIMES_SRC@GOTPAGE
Lloh7:
	ldr	x24, [x24, _BLEND_FACTOR_SRC_COLOR_K1_TIMES_SRC@GOTPAGEOFF]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w1, w8, w9
Lloh8:
	adrp	x8, _DC_WIN_BLEND_MATCH_SELECT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DC_WIN_BLEND_MATCH_SELECT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_tegra_plane_writel
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w1, w8, w9
Lloh11:
	adrp	x8, _DC_WIN_BLEND_NOMATCH_SELECT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DC_WIN_BLEND_NOMATCH_SELECT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_tegra_plane_writel
	mov	w22, #255
	mov	w0, #255
	bl	_K2
	mov	x21, x0
	mov	w0, #255
	bl	_K1
	orr	w21, w0, w21
	ldr	x8, [x19]
	sub	x0, x22, x8
	bl	_WINDOW_LAYER_DEPTH
	orr	w1, w21, w0
Lloh14:
	adrp	x8, _DC_WIN_BLEND_LAYER_CONTROL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DC_WIN_BLEND_LAYER_CONTROL@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BLEND_FACTOR_DST_ALPHA_ZERO,4,2 ; @BLEND_FACTOR_DST_ALPHA_ZERO
	.comm	_BLEND_FACTOR_SRC_ALPHA_K2,4,2  ; @BLEND_FACTOR_SRC_ALPHA_K2
	.comm	_BLEND_FACTOR_DST_COLOR_NEG_K1_TIMES_SRC,4,2 ; @BLEND_FACTOR_DST_COLOR_NEG_K1_TIMES_SRC
	.comm	_BLEND_FACTOR_SRC_COLOR_K1_TIMES_SRC,4,2 ; @BLEND_FACTOR_SRC_COLOR_K1_TIMES_SRC
	.comm	_DC_WIN_BLEND_MATCH_SELECT,4,2  ; @DC_WIN_BLEND_MATCH_SELECT
	.comm	_DC_WIN_BLEND_NOMATCH_SELECT,4,2 ; @DC_WIN_BLEND_NOMATCH_SELECT
	.comm	_DC_WIN_BLEND_LAYER_CONTROL,4,2 ; @DC_WIN_BLEND_LAYER_CONTROL
	.no_dead_strip	_tegra_plane_setup_blending
.subsections_via_symbols
