	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_vc_flush_receive_data
_dsi_vc_flush_receive_data:             ## @dsi_vc_flush_receive_data
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_DSI_VC_CTRL
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$20, %edx
	movl	$20, %ecx
	callq	_REG_GET
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	leaq	L_.str(%rip), %r15
	movq	_MIPI_DSI_RX_ACKNOWLEDGE_AND_ERROR_REPORT@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	$23, %esi
	movl	$8, %edx
	callq	_FLD_GET
	movq	%rax, %rdi
	callq	_dsi_show_rx_ack_with_err
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_DSI_VC_CTRL
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$20, %edx
	movl	$20, %ecx
	callq	_REG_GET
	testq	%rax, %rax
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_DSI_VC_SHORT_PACKET_HEADER
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dsi_read_reg
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_DSSERR
	movq	%r13, %rdi
	movl	$5, %esi
	xorl	%edx, %edx
	callq	_FLD_GET
	cmpq	(%r12), %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_1BYTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	$23, %esi
	movl	$8, %edx
	callq	_FLD_GET
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_2BYTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	$23, %esi
	movl	$8, %edx
	callq	_FLD_GET
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MIPI_DSI_RX_DCS_LONG_READ_RESPONSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	$23, %esi
	movl	$8, %edx
	callq	_FLD_GET
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	callq	_DSSERR
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_dsi_vc_flush_long_data
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.4(%rip), %rdi
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rsi
	callq	_DSSERR
	jmp	LBB0_12
LBB0_13:
	xorl	%eax, %eax
	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	"\trawval %#08x\n"

	.comm	_MIPI_DSI_RX_ACKNOWLEDGE_AND_ERROR_REPORT,8,3 ## @MIPI_DSI_RX_ACKNOWLEDGE_AND_ERROR_REPORT
	.comm	_MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_1BYTE,8,3 ## @MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_1BYTE
L_.str.1:                               ## @.str.1
	.asciz	"\tDCS short response, 1 byte: %#x\n"

	.comm	_MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_2BYTE,8,3 ## @MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_2BYTE
L_.str.2:                               ## @.str.2
	.asciz	"\tDCS short response, 2 byte: %#x\n"

	.comm	_MIPI_DSI_RX_DCS_LONG_READ_RESPONSE,8,3 ## @MIPI_DSI_RX_DCS_LONG_READ_RESPONSE
L_.str.3:                               ## @.str.3
	.asciz	"\tDCS long response, len %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"\tunknown datatype 0x%02x\n"

	.no_dead_strip	_dsi_vc_flush_receive_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_vc_flush_receive_data
_dsi_vc_flush_receive_data:             ; @dsi_vc_flush_receive_data
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_DSI_VC_CTRL
	mov	x1, x0
	mov	x0, x20
	mov	w2, #20
	mov	w3, #20
	bl	_REG_GET
	cbz	x0, LBB0_13
; %bb.1:
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x27, _MIPI_DSI_RX_ACKNOWLEDGE_AND_ERROR_REPORT@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MIPI_DSI_RX_ACKNOWLEDGE_AND_ERROR_REPORT@GOTPAGEOFF]
Lloh4:
	adrp	x28, _MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_1BYTE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_1BYTE@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh8:
	adrp	x24, _MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_2BYTE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_2BYTE@GOTPAGEOFF]
Lloh10:
	adrp	x23, l_.str.2@PAGE
Lloh11:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh12:
	adrp	x25, _MIPI_DSI_RX_DCS_LONG_READ_RESPONSE@GOTPAGE
Lloh13:
	ldr	x25, [x25, _MIPI_DSI_RX_DCS_LONG_READ_RESPONSE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	mov	w1, #23
	mov	w2, #8
	bl	_FLD_GET
	bl	_dsi_show_rx_ack_with_err
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_DSI_VC_CTRL
	mov	x1, x0
	mov	x0, x20
	mov	w2, #20
	mov	w3, #20
	bl	_REG_GET
	cbz	x0, LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_DSI_VC_SHORT_PACKET_HEADER
	mov	x1, x0
	mov	x0, x20
	bl	_dsi_read_reg
	mov	x26, x0
	mov	x0, x21
	mov	x1, x26
	bl	_DSSERR
	mov	x0, x26
	mov	w1, #5
	mov	w2, #0
	bl	_FLD_GET
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	mov	w1, #23
	mov	w2, #8
	bl	_FLD_GET
	mov	x1, x0
	mov	x0, x22
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	cmp	x1, x8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	mov	w1, #23
	mov	w2, #8
	bl	_FLD_GET
	mov	x1, x0
	mov	x0, x23
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	cmp	x1, x8
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	mov	w1, #23
	mov	w2, #8
	bl	_FLD_GET
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DSSERR
	mov	x0, x20
	mov	x1, x19
	bl	_dsi_vc_flush_long_data
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_DSSERR
	b	LBB0_3
LBB0_13:
	mov	x0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\trawval %#08x\n"

	.comm	_MIPI_DSI_RX_ACKNOWLEDGE_AND_ERROR_REPORT,8,3 ; @MIPI_DSI_RX_ACKNOWLEDGE_AND_ERROR_REPORT
	.comm	_MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_1BYTE,8,3 ; @MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_1BYTE
l_.str.1:                               ; @.str.1
	.asciz	"\tDCS short response, 1 byte: %#x\n"

	.comm	_MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_2BYTE,8,3 ; @MIPI_DSI_RX_DCS_SHORT_READ_RESPONSE_2BYTE
l_.str.2:                               ; @.str.2
	.asciz	"\tDCS short response, 2 byte: %#x\n"

	.comm	_MIPI_DSI_RX_DCS_LONG_READ_RESPONSE,8,3 ; @MIPI_DSI_RX_DCS_LONG_READ_RESPONSE
l_.str.3:                               ; @.str.3
	.asciz	"\tDCS long response, len %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"\tunknown datatype 0x%02x\n"

	.no_dead_strip	_dsi_vc_flush_receive_data
.subsections_via_symbols
