	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_update_screen_dispc
_dsi_update_screen_dispc:               ## @dsi_update_screen_dispc
	.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
	movl	(%rdi), %r14d
	movl	4(%rdi), %r12d
	movl	44(%rdi), %r13d
	movl	48(%rdi), %ebx
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_DSSDBG
	movq	_DSI_VC_SOURCE_VP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_dsi_vc_config_source
	movl	40(%r15), %edi
	callq	_dsi_get_pixel_size
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	imull	%r13d, %ecx
	imull	%ecx, %ebx
	movl	%ebx, %esi
	cmpl	%r12d, %ebx
	jb	LBB0_2
## %bb.1:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	subl	%edx, %r12d
	movl	%r12d, %esi
LBB0_2:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	leal	1(%rsi), %r12d
	imull	%r12d, %eax
	leal	1(%rdx), %edi
	testl	%edx, %edx
	cmovel	%edx, %edi
	addl	%eax, %edi
	movl	$23, %esi
	xorl	%edx, %edx
	callq	_FLD_VAL
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_DSI_VC_TE
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_dsi_write_reg
	movq	_MIPI_DSI_DCS_LONG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	callq	_dsi_vc_write_long_header
	cmpq	$0, 16(%r15)
	je	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	movl	$1, %esi
	movl	$30, %edx
	movl	$30, %ecx
	jmp	LBB0_5
LBB0_4:
	movl	%ebx, %edi
	movl	$1, %esi
	movl	$31, %edx
	movl	$31, %ecx
LBB0_5:
	callq	_FLD_MOD
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_DSI_VC_TE
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_dsi_write_reg
	movq	32(%r15), %rax
	movl	(%rax), %edi
	callq	_dispc_disable_sidle
	movq	%r15, %rdi
	callq	_dsi_perf_mark_start
	leaq	28(%r15), %rbx
	movl	$250, %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_schedule_delayed_work
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	leaq	24(%r15), %rdi
	callq	_dss_mgr_start_update
	cmpq	$0, 16(%r15)
	je	LBB0_6
## %bb.7:
	movq	_DSI_TIMING2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$15, %ecx
	movl	$15, %r8d
	callq	_REG_FLD_MOD
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsi_vc_send_bta                ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsi_update_screen_dispc(%dx%d)\n"

	.comm	_DSI_VC_SOURCE_VP,4,2           ## @DSI_VC_SOURCE_VP
	.comm	_MIPI_DSI_DCS_LONG_WRITE,4,2    ## @MIPI_DSI_DCS_LONG_WRITE
	.comm	_DSI_TIMING2,4,2                ## @DSI_TIMING2
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_dsi_update_screen_dispc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_update_screen_dispc
_dsi_update_screen_dispc:               ; @dsi_update_screen_dispc
	.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	x20, x0
	ldp	w19, w23, [x0]
	ldp	w21, w22, [x0, #44]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	bl	_DSSDBG
Lloh2:
	adrp	x8, _DSI_VC_SOURCE_VP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DSI_VC_SOURCE_VP@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_dsi_vc_config_source
	ldr	w0, [x20, #40]
	bl	_dsi_get_pixel_size
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #3
	mul	w10, w8, w21
	mul	w8, w10, w22
	mov	x9, x8
	cmp	w8, w23
	b.lo	LBB0_2
; %bb.1:
	udiv	w9, w23, w10
	mul	w9, w9, w10
LBB0_2:
	add	w22, w9, #1
	udiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cmp	w8, #0
	csinc	w8, wzr, w8, eq
	madd	w0, w10, w22, w8
	mov	w1, #23
	mov	w2, #0
	bl	_FLD_VAL
	mov	x21, x0
	mov	x0, x19
	bl	_DSI_VC_TE
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_dsi_write_reg
Lloh5:
	adrp	x8, _MIPI_DSI_DCS_LONG_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIPI_DSI_DCS_LONG_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	mov	w4, #0
	bl	_dsi_vc_write_long_header
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	w1, #1
	mov	w2, #30
	mov	w3, #30
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	mov	w1, #1
	mov	w2, #31
	mov	w3, #31
LBB0_5:
	bl	_FLD_MOD
	mov	x21, x0
	mov	x0, x19
	bl	_DSI_VC_TE
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_dsi_write_reg
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
	bl	_dispc_disable_sidle
	mov	x0, x20
	bl	_dsi_perf_mark_start
	add	x21, x20, #28
	mov	w0, #250
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x21
	bl	_schedule_delayed_work
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	add	x0, x20, #24
	bl	_dss_mgr_start_update
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _DSI_TIMING2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DSI_TIMING2@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #15
	mov	w4, #15
	bl	_REG_FLD_MOD
	mov	x0, x20
	mov	x1, x19
	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	_dsi_vc_send_bta
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsi_update_screen_dispc(%dx%d)\n"

	.comm	_DSI_VC_SOURCE_VP,4,2           ; @DSI_VC_SOURCE_VP
	.comm	_MIPI_DSI_DCS_LONG_WRITE,4,2    ; @MIPI_DSI_DCS_LONG_WRITE
	.comm	_DSI_TIMING2,4,2                ; @DSI_TIMING2
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_dsi_update_screen_dispc
.subsections_via_symbols
