	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxsfb_crtc_mode_set_nofb
_mxsfb_crtc_mode_set_nofb:              ## @mxsfb_crtc_mode_set_nofb
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	movl	20(%rdi), %r12d
	movq	(%rdi), %rdi
	callq	_mxsfb_reset_block
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	_CTRL1_FIFO_CLEAR@GOTPCREL(%rip), %rax
	movq	_LCDC_CTRL1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rbx), %rsi
	movl	(%rax), %edi
	movq	_REG_SET@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_writel
	movq	%rbx, %rdi
	callq	_mxsfb_set_pixel_fmt
	testl	%eax, %eax
	je	LBB0_2
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	16(%rbx), %edi
	imull	$1000, (%r15), %esi             ## imm = 0x3E8
	callq	_clk_set_rate
	movl	40(%r15), %edi
	callq	_TRANSFER_COUNT_SET_VCOUNT
	movl	%eax, %r14d
	movl	36(%r15), %edi
	callq	_TRANSFER_COUNT_SET_HCOUNT
	orl	%eax, %r14d
	movq	8(%rbx), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	movl	4(%r15), %edi
	subl	8(%r15), %edi
	movq	_VDCTRL0_ENABLE_PRESENT@GOTPCREL(%rip), %rax
	movq	_VDCTRL0_VSYNC_PERIOD_UNIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	_VDCTRL0_VSYNC_PULSE_WIDTH_UNIT@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	callq	_VDCTRL0_SET_VSYNC_PULSE_WIDTH
	movl	12(%r15), %ecx
	movq	_DRM_MODE_FLAG_PHSYNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	je	LBB0_4
## %bb.3:
	movq	_VDCTRL0_HSYNC_ACT_HIGH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_4:
	orl	%eax, %r14d
	movq	_DRM_MODE_FLAG_PVSYNC@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	je	LBB0_6
## %bb.5:
	movq	_VDCTRL0_VSYNC_ACT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_6:
	orl	%edx, %r14d
	movq	_DRM_BUS_FLAG_DE_LOW@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	movl	(%rdx), %edx
	andl	%r12d, %edx
	jne	LBB0_8
## %bb.7:
	movq	_VDCTRL0_ENABLE_ACT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	orl	%eax, %ecx
	orl	%ecx, %r14d
	movq	_DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	je	LBB0_10
## %bb.9:
	movq	_VDCTRL0_DOTCLK_ACT_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_10:
	orl	%r12d, %r14d
	movq	_LCDC_VDCTRL0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	%rbx, %rdi
	callq	_mxsfb_set_bus_fmt
	movl	16(%r15), %edi
	movq	_LCDC_VDCTRL1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movl	20(%r15), %esi
	subl	24(%r15), %esi
	movq	%rbx, %rdi
	callq	_set_hsync_pulse_width
	movl	%eax, %r14d
	movl	28(%r15), %edi
	callq	_VDCTRL2_SET_HSYNC_PERIOD
	orl	%eax, %r14d
	movq	_LCDC_VDCTRL2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	movl	28(%r15), %edi
	subl	24(%r15), %edi
	callq	_SET_HOR_WAIT_CNT
	movl	%eax, %r14d
	movl	16(%r15), %edi
	subl	8(%r15), %edi
	callq	_SET_VERT_WAIT_CNT
	orl	%eax, %r14d
	movq	_LCDC_VDCTRL3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	movl	32(%r15), %edi
	callq	_SET_DOTCLK_H_VALID_DATA_CNT
	movq	_LCDC_VDCTRL4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rbx), %rsi
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL1_FIFO_CLEAR,4,2           ## @CTRL1_FIFO_CLEAR
	.comm	_LCDC_CTRL1,8,3                 ## @LCDC_CTRL1
	.comm	_REG_SET,8,3                    ## @REG_SET
	.comm	_VDCTRL0_ENABLE_PRESENT,4,2     ## @VDCTRL0_ENABLE_PRESENT
	.comm	_VDCTRL0_VSYNC_PERIOD_UNIT,4,2  ## @VDCTRL0_VSYNC_PERIOD_UNIT
	.comm	_VDCTRL0_VSYNC_PULSE_WIDTH_UNIT,4,2 ## @VDCTRL0_VSYNC_PULSE_WIDTH_UNIT
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ## @DRM_MODE_FLAG_PHSYNC
	.comm	_VDCTRL0_HSYNC_ACT_HIGH,4,2     ## @VDCTRL0_HSYNC_ACT_HIGH
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ## @DRM_MODE_FLAG_PVSYNC
	.comm	_VDCTRL0_VSYNC_ACT_HIGH,4,2     ## @VDCTRL0_VSYNC_ACT_HIGH
	.comm	_DRM_BUS_FLAG_DE_LOW,4,2        ## @DRM_BUS_FLAG_DE_LOW
	.comm	_VDCTRL0_ENABLE_ACT_HIGH,4,2    ## @VDCTRL0_ENABLE_ACT_HIGH
	.comm	_DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,4,2 ## @DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE
	.comm	_VDCTRL0_DOTCLK_ACT_FALLING,4,2 ## @VDCTRL0_DOTCLK_ACT_FALLING
	.comm	_LCDC_VDCTRL0,8,3               ## @LCDC_VDCTRL0
	.comm	_LCDC_VDCTRL1,8,3               ## @LCDC_VDCTRL1
	.comm	_LCDC_VDCTRL2,8,3               ## @LCDC_VDCTRL2
	.comm	_LCDC_VDCTRL3,8,3               ## @LCDC_VDCTRL3
	.comm	_LCDC_VDCTRL4,8,3               ## @LCDC_VDCTRL4
	.no_dead_strip	_mxsfb_crtc_mode_set_nofb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxsfb_crtc_mode_set_nofb
_mxsfb_crtc_mode_set_nofb:              ; @mxsfb_crtc_mode_set_nofb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x21, [x0, #24]
	ldr	w22, [x0, #20]
	ldr	x0, [x0]
	bl	_mxsfb_reset_block
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CTRL1_FIFO_CLEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTRL1_FIFO_CLEAR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _LCDC_CTRL1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LCDC_CTRL1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _REG_SET@GOTPAGE
Lloh7:
	ldr	x10, [x10, _REG_SET@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writel
	mov	x0, x19
	bl	_mxsfb_set_pixel_fmt
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w0, [x19, #16]
	ldr	w8, [x21]
	mov	w9, #1000
	mul	w1, w8, w9
	bl	_clk_set_rate
	ldr	w0, [x21, #40]
	bl	_TRANSFER_COUNT_SET_VCOUNT
	mov	x20, x0
	ldr	w0, [x21, #36]
	bl	_TRANSFER_COUNT_SET_HCOUNT
	orr	w0, w0, w20
	ldp	x8, x9, [x19]
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldp	w8, w9, [x21, #4]
	sub	w0, w8, w9
Lloh9:
	adrp	x8, _VDCTRL0_ENABLE_PRESENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VDCTRL0_ENABLE_PRESENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _VDCTRL0_VSYNC_PERIOD_UNIT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VDCTRL0_VSYNC_PERIOD_UNIT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _VDCTRL0_VSYNC_PULSE_WIDTH_UNIT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VDCTRL0_VSYNC_PULSE_WIDTH_UNIT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w20, w8, w9
	bl	_VDCTRL0_SET_VSYNC_PULSE_WIDTH
	orr	w8, w20, w0
	ldr	w9, [x21, #12]
Lloh18:
	adrp	x10, _DRM_MODE_FLAG_PHSYNC@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DRM_MODE_FLAG_PHSYNC@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x11, _VDCTRL0_HSYNC_ACT_HIGH@GOTPAGE
Lloh22:
	ldr	x11, [x11, _VDCTRL0_HSYNC_ACT_HIGH@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w8, w10
Lloh24:
	adrp	x10, _DRM_MODE_FLAG_PVSYNC@GOTPAGE
Lloh25:
	ldr	x10, [x10, _DRM_MODE_FLAG_PVSYNC@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
Lloh27:
	adrp	x11, _VDCTRL0_VSYNC_ACT_HIGH@GOTPAGE
Lloh28:
	ldr	x11, [x11, _VDCTRL0_VSYNC_ACT_HIGH@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _DRM_BUS_FLAG_DE_LOW@GOTPAGE
Lloh31:
	ldr	x9, [x9, _DRM_BUS_FLAG_DE_LOW@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _VDCTRL0_ENABLE_ACT_HIGH@GOTPAGE
Lloh34:
	ldr	x10, [x10, _VDCTRL0_ENABLE_ACT_HIGH@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	tst	w9, w22
	csel	w9, w10, wzr, eq
	orr	w8, w8, w9
Lloh36:
	adrp	x9, _DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
Lloh39:
	adrp	x10, _VDCTRL0_DOTCLK_ACT_FALLING@GOTPAGE
Lloh40:
	ldr	x10, [x10, _VDCTRL0_DOTCLK_ACT_FALLING@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	tst	w9, w22
	csel	w9, wzr, w10, eq
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh42:
	adrp	x9, _LCDC_VDCTRL0@GOTPAGE
Lloh43:
	ldr	x9, [x9, _LCDC_VDCTRL0@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	bl	_mxsfb_set_bus_fmt
	ldr	w0, [x21, #16]
	ldr	x8, [x19]
Lloh45:
	adrp	x9, _LCDC_VDCTRL1@GOTPAGE
Lloh46:
	ldr	x9, [x9, _LCDC_VDCTRL1@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldp	w8, w9, [x21, #20]
	sub	w1, w8, w9
	mov	x0, x19
	bl	_set_hsync_pulse_width
	mov	x20, x0
	ldr	w0, [x21, #28]
	bl	_VDCTRL2_SET_HSYNC_PERIOD
	orr	w0, w0, w20
	ldr	x8, [x19]
Lloh48:
	adrp	x9, _LCDC_VDCTRL2@GOTPAGE
Lloh49:
	ldr	x9, [x9, _LCDC_VDCTRL2@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldp	w9, w8, [x21, #24]
	sub	w0, w8, w9
	bl	_SET_HOR_WAIT_CNT
	mov	x20, x0
	ldr	w8, [x21, #16]
	ldr	w9, [x21, #8]
	sub	w0, w8, w9
	bl	_SET_VERT_WAIT_CNT
	orr	w0, w0, w20
	ldr	x8, [x19]
Lloh51:
	adrp	x9, _LCDC_VDCTRL3@GOTPAGE
Lloh52:
	ldr	x9, [x9, _LCDC_VDCTRL3@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x21, #32]
	bl	_SET_DOTCLK_H_VALID_DATA_CNT
	ldr	x8, [x19]
Lloh54:
	adrp	x9, _LCDC_VDCTRL4@GOTPAGE
Lloh55:
	ldr	x9, [x9, _LCDC_VDCTRL4@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL1_FIFO_CLEAR,4,2           ; @CTRL1_FIFO_CLEAR
	.comm	_LCDC_CTRL1,8,3                 ; @LCDC_CTRL1
	.comm	_REG_SET,8,3                    ; @REG_SET
	.comm	_VDCTRL0_ENABLE_PRESENT,4,2     ; @VDCTRL0_ENABLE_PRESENT
	.comm	_VDCTRL0_VSYNC_PERIOD_UNIT,4,2  ; @VDCTRL0_VSYNC_PERIOD_UNIT
	.comm	_VDCTRL0_VSYNC_PULSE_WIDTH_UNIT,4,2 ; @VDCTRL0_VSYNC_PULSE_WIDTH_UNIT
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ; @DRM_MODE_FLAG_PHSYNC
	.comm	_VDCTRL0_HSYNC_ACT_HIGH,4,2     ; @VDCTRL0_HSYNC_ACT_HIGH
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ; @DRM_MODE_FLAG_PVSYNC
	.comm	_VDCTRL0_VSYNC_ACT_HIGH,4,2     ; @VDCTRL0_VSYNC_ACT_HIGH
	.comm	_DRM_BUS_FLAG_DE_LOW,4,2        ; @DRM_BUS_FLAG_DE_LOW
	.comm	_VDCTRL0_ENABLE_ACT_HIGH,4,2    ; @VDCTRL0_ENABLE_ACT_HIGH
	.comm	_DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,4,2 ; @DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE
	.comm	_VDCTRL0_DOTCLK_ACT_FALLING,4,2 ; @VDCTRL0_DOTCLK_ACT_FALLING
	.comm	_LCDC_VDCTRL0,8,3               ; @LCDC_VDCTRL0
	.comm	_LCDC_VDCTRL1,8,3               ; @LCDC_VDCTRL1
	.comm	_LCDC_VDCTRL2,8,3               ; @LCDC_VDCTRL2
	.comm	_LCDC_VDCTRL3,8,3               ; @LCDC_VDCTRL3
	.comm	_LCDC_VDCTRL4,8,3               ; @LCDC_VDCTRL4
	.no_dead_strip	_mxsfb_crtc_mode_set_nofb
.subsections_via_symbols
