	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_config_vp_num_line_buffers
_dsi_config_vp_num_line_buffers:        ## @dsi_config_vp_num_line_buffers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_OMAP_DSS_DSI_VIDEO_MODE@GOTPCREL(%rip), %rcx
	movl	$2, %edx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	callq	_dsi_get_pixel_size
                                        ## kill: def $eax killed $eax def $rax
	imull	12(%rbx), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	xorl	%edx, %edx
	cmpl	%ecx, 8(%rbx)
	setg	%dl
	addl	%edx, %edx
LBB0_2:
	movq	_DSI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$13, %ecx
	movl	$12, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_REG_FLD_MOD                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_DSS_DSI_VIDEO_MODE,8,3    ## @OMAP_DSS_DSI_VIDEO_MODE
	.comm	_DSI_CTRL,4,2                   ## @DSI_CTRL
	.no_dead_strip	_dsi_config_vp_num_line_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_config_vp_num_line_buffers
_dsi_config_vp_num_line_buffers:        ; @dsi_config_vp_num_line_buffers
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _OMAP_DSS_DSI_VIDEO_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OMAP_DSS_DSI_VIDEO_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
	bl	_dsi_get_pixel_size
	ldp	w8, w9, [x19, #8]
	mul	w9, w9, w0
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	cmp	w8, w9, asr #3
	cset	w8, gt
	lsl	w2, w8, #1
	b	LBB0_3
LBB0_2:
	mov	w2, #2
LBB0_3:
Lloh3:
	adrp	x8, _DSI_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSI_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w3, #13
	mov	w4, #12
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_FLD_MOD
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_DSS_DSI_VIDEO_MODE,8,3    ; @OMAP_DSS_DSI_VIDEO_MODE
	.comm	_DSI_CTRL,4,2                   ; @DSI_CTRL
	.no_dead_strip	_dsi_config_vp_num_line_buffers
.subsections_via_symbols
