	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_proto_config
_dsi_proto_config:                      ## @dsi_proto_config
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_DSI_FIFO_SIZE_32@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movl	%ecx, %esi
	movl	%ecx, %edx
	movl	%ecx, %r8d
	callq	_dsi_config_tx_fifo
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %esi
	movl	%ecx, %edx
	movl	%ecx, %r8d
	callq	_dsi_config_rx_fifo
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_dsi_set_stop_state_counter
	movq	%rbx, %rdi
	movl	$8191, %esi                     ## imm = 0x1FFF
	movl	$1, %edx
	movl	$1, %ecx
	callq	_dsi_set_ta_timeout
	movq	%rbx, %rdi
	movl	$8191, %esi                     ## imm = 0x1FFF
	movl	$1, %edx
	movl	$1, %ecx
	callq	_dsi_set_lp_rx_timeout
	movq	%rbx, %rdi
	movl	$8191, %esi                     ## imm = 0x1FFF
	movl	$1, %edx
	movl	$1, %ecx
	callq	_dsi_set_hs_tx_timeout
	movl	16(%rbx), %edi
	callq	_dsi_get_pixel_size
	cmpl	$16, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$24, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$18, %eax
	jne	LBB0_4
## %bb.3:
	movl	$1, %r14d
	jmp	LBB0_6
LBB0_5:
	movl	$2, %r14d
LBB0_6:
	movq	_DSI_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_dsi_read_reg
	movl	%eax, %edi
	movl	$1, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	movl	$1, %esi
	movl	$2, %edx
	movl	$2, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	movl	$1, %esi
	movl	$3, %edx
	movl	$3, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	movl	$1, %esi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	movl	%r14d, %esi
	movl	$7, %edx
	movl	$6, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$8, %edx
	movl	$8, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	movl	$1, %esi
	movl	$14, %edx
	movl	$14, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	movl	$1, %esi
	movl	$19, %edx
	movl	$19, %ecx
	callq	_FLD_MOD
	movq	8(%rbx), %rcx
	movq	_DSI_QUIRK_DCS_CMD_CONFIG_VC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	jne	LBB0_8
## %bb.7:
	movl	%eax, %edi
	movl	$1, %esi
	movl	$24, %edx
	movl	$24, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$25, %edx
	movl	$25, %ecx
	callq	_FLD_MOD
LBB0_8:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dsi_write_reg
	movq	%rbx, %rdi
	callq	_dsi_config_vp_num_line_buffers
	movq	(%rbx), %rax
	movq	_OMAP_DSS_DSI_VIDEO_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_dsi_config_vp_sync_events
	movq	%rbx, %rdi
	callq	_dsi_config_blanking_modes
	movq	%rbx, %rdi
	callq	_dsi_config_cmd_mode_interleaving
LBB0_10:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dsi_vc_initial_config
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_dsi_vc_initial_config
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_dsi_vc_initial_config
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_dsi_vc_initial_config
	jmp	LBB0_11
LBB0_4:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSI_FIFO_SIZE_32,4,2           ## @DSI_FIFO_SIZE_32
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DSI_CTRL,4,2                   ## @DSI_CTRL
	.comm	_DSI_QUIRK_DCS_CMD_CONFIG_VC,4,2 ## @DSI_QUIRK_DCS_CMD_CONFIG_VC
	.comm	_OMAP_DSS_DSI_VIDEO_MODE,8,3    ## @OMAP_DSS_DSI_VIDEO_MODE
	.no_dead_strip	_dsi_proto_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_proto_config
_dsi_proto_config:                      ; @dsi_proto_config
	.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
Lloh0:
	adrp	x20, _DSI_FIFO_SIZE_32@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DSI_FIFO_SIZE_32@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x2, x1
	mov	x3, x1
	mov	x4, x1
	bl	_dsi_config_tx_fifo
	ldr	w1, [x20]
	mov	x0, x19
	mov	x2, x1
	mov	x3, x1
	mov	x4, x1
	bl	_dsi_config_rx_fifo
	mov	x0, x19
	mov	w1, #4096
	mov	w2, #0
	mov	w3, #0
	bl	_dsi_set_stop_state_counter
	mov	x0, x19
	mov	w1, #8191
	mov	w2, #1
	mov	w3, #1
	bl	_dsi_set_ta_timeout
	mov	x0, x19
	mov	w1, #8191
	mov	w2, #1
	mov	w3, #1
	bl	_dsi_set_lp_rx_timeout
	mov	x0, x19
	mov	w1, #8191
	mov	w2, #1
	mov	w3, #1
	bl	_dsi_set_hs_tx_timeout
	ldr	w0, [x19, #16]
	bl	_dsi_get_pixel_size
	cmp	w0, #16
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #24
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #18
	b.ne	LBB0_11
; %bb.3:
	mov	w20, #1
	b	LBB0_6
LBB0_4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
	mov	w20, #2
LBB0_6:
Lloh2:
	adrp	x21, _DSI_CTRL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DSI_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dsi_read_reg
	mov	w1, #1
	mov	w2, #1
	mov	w3, #1
	bl	_FLD_MOD
	mov	w1, #1
	mov	w2, #2
	mov	w3, #2
	bl	_FLD_MOD
	mov	w1, #1
	mov	w2, #3
	mov	w3, #3
	bl	_FLD_MOD
	mov	w1, #1
	mov	w2, #4
	mov	w3, #4
	bl	_FLD_MOD
	mov	x1, x20
	mov	w2, #7
	mov	w3, #6
	bl	_FLD_MOD
	mov	w1, #0
	mov	w2, #8
	mov	w3, #8
	bl	_FLD_MOD
	mov	w1, #1
	mov	w2, #14
	mov	w3, #14
	bl	_FLD_MOD
	mov	w1, #1
	mov	w2, #19
	mov	w3, #19
	bl	_FLD_MOD
	mov	x2, x0
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _DSI_QUIRK_DCS_CMD_CONFIG_VC@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DSI_QUIRK_DCS_CMD_CONFIG_VC@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x2
	mov	w1, #1
	mov	w2, #24
	mov	w3, #24
	bl	_FLD_MOD
	mov	w1, #0
	mov	w2, #25
	mov	w3, #25
	bl	_FLD_MOD
	mov	x2, x0
LBB0_8:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dsi_write_reg
	mov	x0, x19
	bl	_dsi_config_vp_num_line_buffers
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _OMAP_DSS_DSI_VIDEO_MODE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OMAP_DSS_DSI_VIDEO_MODE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_dsi_config_vp_sync_events
	mov	x0, x19
	bl	_dsi_config_blanking_modes
	mov	x0, x19
	bl	_dsi_config_cmd_mode_interleaving
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_dsi_vc_initial_config
	mov	x0, x19
	mov	w1, #1
	bl	_dsi_vc_initial_config
	mov	x0, x19
	mov	w1, #2
	bl	_dsi_vc_initial_config
	mov	x0, x19
	mov	w1, #3
	bl	_dsi_vc_initial_config
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	bl	_BUG
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_FIFO_SIZE_32,4,2           ; @DSI_FIFO_SIZE_32
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DSI_CTRL,4,2                   ; @DSI_CTRL
	.comm	_DSI_QUIRK_DCS_CMD_CONFIG_VC,4,2 ; @DSI_QUIRK_DCS_CMD_CONFIG_VC
	.comm	_OMAP_DSS_DSI_VIDEO_MODE,8,3    ; @OMAP_DSS_DSI_VIDEO_MODE
	.no_dead_strip	_dsi_proto_config
.subsections_via_symbols
