	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_vc_generic_read
_dsi_vc_generic_read:                   ## @dsi_vc_generic_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	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_to_dsi_data
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_dsi_vc_generic_send_read_request
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_dsi_vc_send_bta_sync
	testl	%eax, %eax
	je	LBB0_2
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_DSS_DSI_CONTENT_GENERIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_dsi_vc_read_rx_fifo
	movl	%eax, %ecx
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	cmpl	%ebx, %ecx
	je	LBB0_6
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movl	%ecx, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_DSS_DSI_CONTENT_GENERIC,4,2    ## @DSS_DSI_CONTENT_GENERIC
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_dsi_vc_generic_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_generic_read
_dsi_vc_generic_read:                   ; @dsi_vc_generic_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	x19, x5
	mov	x20, x4
	mov	x24, x3
	mov	x25, x2
	mov	x21, x1
	mov	x23, x0
	bl	_to_dsi_data
	mov	x22, x0
	mov	x1, x21
	mov	x2, x25
	mov	x3, x24
	bl	_dsi_vc_generic_send_read_request
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x21
	bl	_dsi_vc_send_bta_sync
	cbz	w0, LBB0_3
LBB0_2:
	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_3:
Lloh0:
	adrp	x8, _DSS_DSI_CONTENT_GENERIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSS_DSI_CONTENT_GENERIC@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_dsi_vc_read_rx_fifo
	tbnz	w0, #31, LBB0_2
; %bb.4:
	cmp	w0, w19
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_2
LBB0_6:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DSS_DSI_CONTENT_GENERIC,4,2    ; @DSS_DSI_CONTENT_GENERIC
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_dsi_vc_generic_read
.subsections_via_symbols
