	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mixer_graph_buffer
_mixer_graph_buffer:                    ## @mixer_graph_buffer
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	4(%rsi), %edi
	callq	_to_exynos_plane_state
	movq	%rax, %r15
	movq	24(%rax), %r13
	movq	8(%r13), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_1
## %bb.2:
	movq	_DRM_MODE_BLEND_PIXEL_NONE@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	leaq	12(%r15), %rcx
LBB0_3:
	movl	8(%r15), %edx
	movl	(%rbx), %r12d
	movl	(%rcx), %ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movl	$-129, %ecx
	addl	(%rax), %ecx
	cmpl	$5, %ecx
	ja	LBB0_4
## %bb.5:
	movslq	%ecx, %rax
	leaq	l_switch.table.mixer_graph_buffer(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_MXR_FORMAT_ARGB8888@GOTPCREL(%rip), %rax
LBB0_6:
	incl	%edx
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	xorl	%ecx, %ecx
	cmpl	$32768, (%r15)                  ## imm = 0x8000
	sete	%cl
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	xorl	%ecx, %ecx
	cmpl	$32768, 4(%r15)                 ## imm = 0x8000
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	sete	%cl
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	48(%r15), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	52(%r15), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_exynos_drm_fb_dma_addr
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	movq	8(%rdx), %rdx
	movl	(%rdx), %edx
	imull	32(%r15), %edx
	addl	%eax, %edx
	movl	(%rcx), %eax
	imull	36(%r15), %eax
	addl	%edx, %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	%r12d, %edi
	callq	_MXR_GRAPHIC_CFG
	movl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_MXR_GRP_CFG_FORMAT_VAL
	movq	_MXR_GRP_CFG_FORMAT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_mixer_reg_writemask
	movl	%r12d, %edi
	callq	_MXR_GRAPHIC_SPAN
	movl	%eax, %esi
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movl	(%rax), %eax
	movq	8(%rcx), %rcx
	cltd
	idivl	(%rcx)
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mixer_reg_write
	movl	44(%r15), %edi
	callq	_MXR_GRP_WH_WIDTH
	movl	%eax, %ebx
	movl	40(%r15), %edi
	callq	_MXR_GRP_WH_HEIGHT
	orl	%eax, %ebx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_MXR_GRP_WH_H_SCALE
	orl	%eax, %ebx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_MXR_GRP_WH_V_SCALE
	orl	%eax, %ebx
	movl	%r12d, %edi
	callq	_MXR_GRAPHIC_WH
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_mixer_reg_write
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_MXR_GRP_DXY_DX
	movl	%eax, %ebx
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_MXR_GRP_DXY_DY
	orl	%eax, %ebx
	movl	%r12d, %edi
	callq	_MXR_GRAPHIC_DXY
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_mixer_reg_write
	movl	%r12d, %edi
	callq	_MXR_GRAPHIC_BASE
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_mixer_reg_write
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_mixer_cfg_layer
	movl	16(%r15), %ecx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_mixer_cfg_gfx_blend
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mixer_regs_dump                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_BLEND_PIXEL_NONE,4,2  ## @DRM_MODE_BLEND_PIXEL_NONE
	.comm	_MXR_FORMAT_ARGB4444,4,2        ## @MXR_FORMAT_ARGB4444
	.comm	_MXR_FORMAT_ARGB1555,4,2        ## @MXR_FORMAT_ARGB1555
	.comm	_MXR_FORMAT_RGB565,4,2          ## @MXR_FORMAT_RGB565
	.comm	_MXR_FORMAT_ARGB8888,4,2        ## @MXR_FORMAT_ARGB8888
	.comm	_MXR_GRP_CFG_FORMAT_MASK,4,2    ## @MXR_GRP_CFG_FORMAT_MASK
	.no_dead_strip	_mixer_graph_buffer
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mixer_graph_buffer
l_switch.table.mixer_graph_buffer:
	.quad	_MXR_FORMAT_ARGB4444
	.quad	_MXR_FORMAT_ARGB1555
	.quad	_MXR_FORMAT_RGB565
	.quad	_MXR_FORMAT_ARGB8888
	.quad	_MXR_FORMAT_ARGB4444
	.quad	_MXR_FORMAT_ARGB1555

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mixer_graph_buffer
_mixer_graph_buffer:                    ; @mixer_graph_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x1, #4]
	bl	_to_exynos_plane_state
	mov	x20, x0
	ldr	x27, [x0, #24]
	ldr	w8, [x0, #8]
	ldr	w21, [x21]
	ldr	x9, [x27, #8]
	ldr	x10, [x9, #16]
	add	x11, x0, #12
Lloh0:
	adrp	x12, _DRM_MODE_BLEND_PIXEL_NONE@GOTPAGE
Lloh1:
	ldr	x12, [x12, _DRM_MODE_BLEND_PIXEL_NONE@GOTPAGEOFF]
	cmp	x10, #0
	csel	x10, x12, x11, eq
	ldr	w10, [x10]
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
	ldr	w9, [x9]
	sub	w9, w9, #129
	cmp	w9, #5
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x10, l_switch.table.mixer_graph_buffer@PAGE
Lloh3:
	add	x10, x10, l_switch.table.mixer_graph_buffer@PAGEOFF
	ldr	x9, [x10, w9, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x9, _MXR_FORMAT_ARGB8888@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MXR_FORMAT_ARGB8888@GOTPAGEOFF]
LBB0_3:
	ldr	w23, [x9]
	add	w8, w8, #1
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	ldp	w8, w9, [x20]
	cmp	w8, #8, lsl #12                 ; =32768
	cset	w22, eq
	cmp	w9, #8, lsl #12                 ; =32768
	cset	w28, eq
	ldp	w26, w25, [x20, #48]
	mov	x0, x27
	mov	w1, #0
	bl	_exynos_drm_fb_dma_addr
	ldp	x9, x8, [x27]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	ldp	w10, w11, [x20, #32]
	madd	w8, w8, w10, w0
	ldr	w9, [x9]
	madd	w8, w9, w11, w8
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x21
	bl	_MXR_GRAPHIC_CFG
	mov	x24, x0
	mov	x0, x23
	bl	_MXR_GRP_CFG_FORMAT_VAL
	mov	x2, x0
Lloh6:
	adrp	x8, _MXR_GRP_CFG_FORMAT_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MXR_GRP_CFG_FORMAT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x24
	bl	_mixer_reg_writemask
	mov	x0, x21
	bl	_MXR_GRAPHIC_SPAN
	mov	x1, x0
	ldp	x8, x9, [x27]
	ldr	w8, [x8]
	ldr	x9, [x9, #8]
	ldr	w9, [x9]
	sdiv	w2, w8, w9
	mov	x0, x19
	bl	_mixer_reg_write
	ldr	w0, [x20, #44]
	bl	_MXR_GRP_WH_WIDTH
	mov	x23, x0
	ldr	w0, [x20, #40]
	bl	_MXR_GRP_WH_HEIGHT
	orr	w23, w0, w23
	mov	x0, x22
	bl	_MXR_GRP_WH_H_SCALE
	orr	w22, w23, w0
	mov	x0, x28
	bl	_MXR_GRP_WH_V_SCALE
	orr	w22, w22, w0
	mov	x0, x21
	bl	_MXR_GRAPHIC_WH
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_mixer_reg_write
	mov	x0, x26
	bl	_MXR_GRP_DXY_DX
	mov	x22, x0
	mov	x0, x25
	bl	_MXR_GRP_DXY_DY
	orr	w22, w0, w22
	mov	x0, x21
	bl	_MXR_GRAPHIC_DXY
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_mixer_reg_write
	mov	x0, x21
	bl	_MXR_GRAPHIC_BASE
	mov	x1, x0
	mov	x0, x19
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	bl	_mixer_reg_write
	mov	x0, x19
	mov	x1, x21
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	mov	w3, #1
	bl	_mixer_cfg_layer
	ldr	w3, [x20, #16]
	mov	x0, x19
	mov	x1, x21
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_mixer_cfg_gfx_blend
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_mixer_regs_dump
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_BLEND_PIXEL_NONE,4,2  ; @DRM_MODE_BLEND_PIXEL_NONE
	.comm	_MXR_FORMAT_ARGB4444,4,2        ; @MXR_FORMAT_ARGB4444
	.comm	_MXR_FORMAT_ARGB1555,4,2        ; @MXR_FORMAT_ARGB1555
	.comm	_MXR_FORMAT_RGB565,4,2          ; @MXR_FORMAT_RGB565
	.comm	_MXR_FORMAT_ARGB8888,4,2        ; @MXR_FORMAT_ARGB8888
	.comm	_MXR_GRP_CFG_FORMAT_MASK,4,2    ; @MXR_GRP_CFG_FORMAT_MASK
	.no_dead_strip	_mixer_graph_buffer
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mixer_graph_buffer
l_switch.table.mixer_graph_buffer:
	.quad	_MXR_FORMAT_ARGB4444
	.quad	_MXR_FORMAT_ARGB1555
	.quad	_MXR_FORMAT_RGB565
	.quad	_MXR_FORMAT_ARGB8888
	.quad	_MXR_FORMAT_ARGB4444
	.quad	_MXR_FORMAT_ARGB1555

.subsections_via_symbols
