	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armada_drm_crtc_update
_armada_drm_crtc_update:                ## @armada_drm_crtc_update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edx
	movq	_CFG_DUMB_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%edx, %eax
	movl	%eax, %ecx
	testl	%esi, %esi
	cmovel	%edx, %ecx
	jne	LBB0_3
## %bb.1:
	movq	_DUMB_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r8d, %esi
	andl	%ecx, %esi
	movq	_DUMB24_RGB888_0@GOTPCREL(%rip), %r9
	movl	%edx, %eax
	cmpl	(%r9), %esi
	jne	LBB0_3
## %bb.2:
	notl	%r8d
	andl	%r8d, %ecx
	movq	_DUMB_BLANK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, %eax
LBB0_3:
	movq	_CFG_INV_CSYNC@GOTPCREL(%rip), %rcx
	movq	_CFG_INV_HSYNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_CFG_INV_VSYNC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	notl	%esi
	movq	_LCD_SPU_DUMB_CTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	8(%rdi), %rdx
	movl	%eax, %edi
	popq	%rbp
	jmp	_armada_updatel                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG_DUMB_ENA,4,2               ## @CFG_DUMB_ENA
	.comm	_DUMB_MASK,4,2                  ## @DUMB_MASK
	.comm	_DUMB24_RGB888_0,4,2            ## @DUMB24_RGB888_0
	.comm	_DUMB_BLANK,4,2                 ## @DUMB_BLANK
	.comm	_CFG_INV_CSYNC,4,2              ## @CFG_INV_CSYNC
	.comm	_CFG_INV_HSYNC,4,2              ## @CFG_INV_HSYNC
	.comm	_CFG_INV_VSYNC,4,2              ## @CFG_INV_VSYNC
	.comm	_LCD_SPU_DUMB_CTRL,8,3          ## @LCD_SPU_DUMB_CTRL
	.no_dead_strip	_armada_drm_crtc_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function armada_drm_crtc_update
_armada_drm_crtc_update:                ; @armada_drm_crtc_update
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _CFG_DUMB_ENA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CFG_DUMB_ENA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w9
	cmp	w1, #0
	csel	w10, w9, w8, eq
	cbnz	w1, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _DUMB_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DUMB_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x8]
	and	w12, w11, w10
Lloh6:
	adrp	x8, _DUMB24_RGB888_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DUMB24_RGB888_0@GOTPAGEOFF]
Lloh8:
	ldr	w13, [x8]
	mov	x8, x9
	cmp	w12, w13
	b.ne	LBB0_3
; %bb.2:
	bic	w8, w10, w11
Lloh9:
	adrp	x9, _DUMB_BLANK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DUMB_BLANK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_3:
Lloh12:
	adrp	x9, _CFG_INV_CSYNC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CFG_INV_CSYNC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _CFG_INV_HSYNC@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CFG_INV_HSYNC@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _CFG_INV_VSYNC@GOTPAGE
Lloh19:
	ldr	x11, [x11, _CFG_INV_VSYNC@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh20:
	ldr	w10, [x11]
	orr	w9, w9, w10
	mvn	w1, w9
Lloh21:
	adrp	x9, _LCD_SPU_DUMB_CTRL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _LCD_SPU_DUMB_CTRL@GOTPAGEOFF]
	ldr	x10, [x0, #8]
Lloh23:
	ldr	x9, [x9]
	add	x2, x9, x10
	mov	x0, x8
	b	_armada_updatel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_DUMB_ENA,4,2               ; @CFG_DUMB_ENA
	.comm	_DUMB_MASK,4,2                  ; @DUMB_MASK
	.comm	_DUMB24_RGB888_0,4,2            ; @DUMB24_RGB888_0
	.comm	_DUMB_BLANK,4,2                 ; @DUMB_BLANK
	.comm	_CFG_INV_CSYNC,4,2              ; @CFG_INV_CSYNC
	.comm	_CFG_INV_HSYNC,4,2              ; @CFG_INV_HSYNC
	.comm	_CFG_INV_VSYNC,4,2              ; @CFG_INV_VSYNC
	.comm	_LCD_SPU_DUMB_CTRL,8,3          ; @LCD_SPU_DUMB_CTRL
	.no_dead_strip	_armada_drm_crtc_update
.subsections_via_symbols
