	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_vc_dcs_read
_dsi_vc_dcs_read:                       ## @dsi_vc_dcs_read
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r12
	callq	_to_dsi_data
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_dsi_vc_dcs_send_read_request
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_dsi_vc_send_bta_sync
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_DSSERR
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_DSS_DSI_CONTENT_DCS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_dsi_vc_read_rx_fifo
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	cmpl	%r15d, %eax
	je	LBB0_7
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_DSS_DSI_CONTENT_DCS,4,2        ## @DSS_DSI_CONTENT_DCS
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsi_vc_dcs_read(ch %d, cmd 0x%02x) failed\n"

	.no_dead_strip	_dsi_vc_dcs_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_vc_dcs_read
_dsi_vc_dcs_read:                       ; @dsi_vc_dcs_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x25, x0
	bl	_to_dsi_data
	mov	x24, x0
	mov	x1, x20
	mov	x2, x19
	bl	_dsi_vc_dcs_send_read_request
	mov	x23, x0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x25
	mov	x1, x20
	bl	_dsi_vc_send_bta_sync
	mov	x23, x0
	cbz	w0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_DSSERR
LBB0_3:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh2:
	adrp	x8, _DSS_DSI_CONTENT_DCS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DSS_DSI_CONTENT_DCS@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
	mov	x0, x24
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_dsi_vc_read_rx_fifo
	mov	x23, x0
	tbnz	w0, #31, LBB0_2
; %bb.5:
	cmp	w23, w21
	b.ne	LBB0_7
; %bb.6:
	mov	w23, #0
	b	LBB0_3
LBB0_7:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DSS_DSI_CONTENT_DCS,4,2        ; @DSS_DSI_CONTENT_DCS
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsi_vc_dcs_read(ch %d, cmd 0x%02x) failed\n"

	.no_dead_strip	_dsi_vc_dcs_read
.subsections_via_symbols
