	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tilcdc_crtc_enable
_tilcdc_crtc_enable:                    ## @tilcdc_crtc_enable
	.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	%rdi, %r15
	movq	(%rdi), %r12
	callq	_to_tilcdc_crtc
	movq	%rax, %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, (%rbx)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 16(%rbx)
	jne	LBB0_3
## %bb.2:
	movl	(%r12), %edi
	callq	_pm_runtime_get_sync
	movq	%r15, %rdi
	callq	_reset
	movq	%r15, %rdi
	callq	_tilcdc_crtc_set_mode
	movq	%r12, %rdi
	callq	_tilcdc_crtc_enable_irqs
	movq	_LCDC_DMA_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LCDC_DUAL_FRAME_BUFFER_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_tilcdc_clear
	movq	_LCDC_RASTER_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_DATA_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LCDC_PALETTE_LOAD_MODE
	movq	_LCDC_PALETTE_LOAD_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_tilcdc_write_mask
	movq	%rbx, %r13
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, 12(%rbx)
	movq	_LCDC_RASTER_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LCDC_RASTER_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_tilcdc_set
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	callq	_drm_crtc_vblank_on
	movl	$1, (%rbx)
LBB0_3:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LCDC_DMA_CTRL_REG,4,2          ## @LCDC_DMA_CTRL_REG
	.comm	_LCDC_DUAL_FRAME_BUFFER_ENABLE,4,2 ## @LCDC_DUAL_FRAME_BUFFER_ENABLE
	.comm	_LCDC_RASTER_CTRL_REG,4,2       ## @LCDC_RASTER_CTRL_REG
	.comm	_DATA_ONLY,4,2                  ## @DATA_ONLY
	.comm	_LCDC_PALETTE_LOAD_MODE_MASK,4,2 ## @LCDC_PALETTE_LOAD_MODE_MASK
	.comm	_LCDC_RASTER_ENABLE,4,2         ## @LCDC_RASTER_ENABLE
	.no_dead_strip	_tilcdc_crtc_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tilcdc_crtc_enable
_tilcdc_crtc_enable:                    ; @tilcdc_crtc_enable
	.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
	ldr	x22, [x0]
	bl	_to_tilcdc_crtc
	mov	x21, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x21]
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x22]
	bl	_pm_runtime_get_sync
	mov	x0, x19
	bl	_reset
	mov	x0, x19
	bl	_tilcdc_crtc_set_mode
	mov	x0, x22
	bl	_tilcdc_crtc_enable_irqs
Lloh0:
	adrp	x8, _LCDC_DMA_CTRL_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LCDC_DMA_CTRL_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _LCDC_DUAL_FRAME_BUFFER_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LCDC_DUAL_FRAME_BUFFER_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_tilcdc_clear
Lloh6:
	adrp	x24, _LCDC_RASTER_CTRL_REG@GOTPAGE
Lloh7:
	ldr	x24, [x24, _LCDC_RASTER_CTRL_REG@GOTPAGEOFF]
	ldr	w23, [x24]
Lloh8:
	adrp	x8, _DATA_ONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DATA_ONLY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_LCDC_PALETTE_LOAD_MODE
	mov	x2, x0
Lloh11:
	adrp	x8, _LCDC_PALETTE_LOAD_MODE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LCDC_PALETTE_LOAD_MODE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_tilcdc_write_mask
	add	x23, x21, #8
	mov	x0, x23
	bl	_spin_lock_irqsave
	bl	_ktime_get
	str	w0, [x21, #12]
	ldr	w1, [x24]
Lloh14:
	adrp	x8, _LCDC_RASTER_ENABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LCDC_RASTER_ENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_tilcdc_set
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_drm_crtc_vblank_on
	mov	w8, #1
	str	w8, [x21]
LBB0_3:
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LCDC_DMA_CTRL_REG,4,2          ; @LCDC_DMA_CTRL_REG
	.comm	_LCDC_DUAL_FRAME_BUFFER_ENABLE,4,2 ; @LCDC_DUAL_FRAME_BUFFER_ENABLE
	.comm	_LCDC_RASTER_CTRL_REG,4,2       ; @LCDC_RASTER_CTRL_REG
	.comm	_DATA_ONLY,4,2                  ; @DATA_ONLY
	.comm	_LCDC_PALETTE_LOAD_MODE_MASK,4,2 ; @LCDC_PALETTE_LOAD_MODE_MASK
	.comm	_LCDC_RASTER_ENABLE,4,2         ; @LCDC_RASTER_ENABLE
	.no_dead_strip	_tilcdc_crtc_enable
.subsections_via_symbols
