	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dpu_crtc_setup_blend_cfg
__dpu_crtc_setup_blend_cfg:             ## @_dpu_crtc_setup_blend_cfg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	(%rdi), %rdi
	cmpl	$0, (%rdx)
	je	LBB0_1
## %bb.2:
	movq	_DPU_BLEND_FG_ALPHA_FG_PIXEL@GOTPCREL(%rip), %rax
	movq	_DPU_BLEND_BG_ALPHA_FG_PIXEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_DPU_BLEND_BG_INV_ALPHA@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DPU_BLEND_FG_ALPHA_FG_CONST@GOTPCREL(%rip), %rax
	movq	_DPU_BLEND_BG_ALPHA_BG_CONST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_3:
	orl	(%rax), %ebx
	movl	(%rsi), %esi
	movl	$255, %edx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	*(%rdi)
	movl	4(%r14), %edi
	leaq	-24(%rbp), %rsi
	callq	_drm_get_format_name
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %ecx
	callq	_DPU_DEBUG
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPU_BLEND_FG_ALPHA_FG_CONST,4,2 ## @DPU_BLEND_FG_ALPHA_FG_CONST
	.comm	_DPU_BLEND_BG_ALPHA_BG_CONST,4,2 ## @DPU_BLEND_BG_ALPHA_BG_CONST
	.comm	_DPU_BLEND_FG_ALPHA_FG_PIXEL,4,2 ## @DPU_BLEND_FG_ALPHA_FG_PIXEL
	.comm	_DPU_BLEND_BG_ALPHA_FG_PIXEL,4,2 ## @DPU_BLEND_BG_ALPHA_FG_PIXEL
	.comm	_DPU_BLEND_BG_INV_ALPHA,4,2     ## @DPU_BLEND_BG_INV_ALPHA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"format:%s, alpha_en:%u blend_op:0x%x\n"

	.no_dead_strip	__dpu_crtc_setup_blend_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _dpu_crtc_setup_blend_cfg
__dpu_crtc_setup_blend_cfg:             ; @_dpu_crtc_setup_blend_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	ldr	x0, [x0]
	ldr	w8, [x2]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _DPU_BLEND_FG_ALPHA_FG_PIXEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPU_BLEND_FG_ALPHA_FG_PIXEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DPU_BLEND_BG_ALPHA_FG_PIXEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DPU_BLEND_BG_ALPHA_FG_PIXEL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _DPU_BLEND_BG_INV_ALPHA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DPU_BLEND_BG_INV_ALPHA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w20, w8, w9
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _DPU_BLEND_FG_ALPHA_FG_CONST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DPU_BLEND_FG_ALPHA_FG_CONST@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _DPU_BLEND_BG_ALPHA_BG_CONST@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DPU_BLEND_BG_ALPHA_BG_CONST@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w20, w9, w8
LBB0_3:
	ldr	x8, [x0]
	ldr	w1, [x1]
	mov	w2, #255
	mov	w3, #0
	mov	x4, x20
	blr	x8
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	bl	_drm_get_format_name
	mov	x1, x0
	ldr	w2, [x19]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x20
	bl	_DPU_DEBUG
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DPU_BLEND_FG_ALPHA_FG_CONST,4,2 ; @DPU_BLEND_FG_ALPHA_FG_CONST
	.comm	_DPU_BLEND_BG_ALPHA_BG_CONST,4,2 ; @DPU_BLEND_BG_ALPHA_BG_CONST
	.comm	_DPU_BLEND_FG_ALPHA_FG_PIXEL,4,2 ; @DPU_BLEND_FG_ALPHA_FG_PIXEL
	.comm	_DPU_BLEND_BG_ALPHA_FG_PIXEL,4,2 ; @DPU_BLEND_BG_ALPHA_FG_PIXEL
	.comm	_DPU_BLEND_BG_INV_ALPHA,4,2     ; @DPU_BLEND_BG_INV_ALPHA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"format:%s, alpha_en:%u blend_op:0x%x\n"

	.no_dead_strip	__dpu_crtc_setup_blend_cfg
.subsections_via_symbols
