	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc358764_read
_tc358764_read:                         ## @tc358764_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movl	%esi, -36(%rbp)
	movl	(%rdi), %edi
	callq	_to_mipi_dsi_device
	cmpq	$0, 8(%rbx)
	jne	LBB0_4
## %bb.1:
	movq	%rax, %r15
	leaq	-36(%rbp), %r12
	movq	%r12, %rdi
	callq	_cpu_to_le16s
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	movq	%r14, %rcx
	movl	$4, %r8d
	callq	_mipi_dsi_generic_read
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_le32_to_cpus
LBB0_3:
	movl	(%rbx), %edi
	movl	-36(%rbp), %edx
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read: %d, addr: %d\n"

	.no_dead_strip	_tc358764_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc358764_read
_tc358764_read:                         ; @tc358764_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x0
	str	w1, [sp, #12]
	ldr	w0, [x0]
	bl	_to_mipi_dsi_device
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_4
; %bb.1:
	mov	x21, x0
	add	x0, sp, #12
	bl	_cpu_to_le16s
	add	x1, sp, #12
	mov	x0, x21
	mov	w2, #4
	mov	x3, x19
	mov	w4, #4
	bl	_mipi_dsi_generic_read
	tbnz	x0, #63, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_le32_to_cpus
LBB0_3:
	ldr	w0, [x20]
	ldr	w2, [sp, #12]
	ldr	w3, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read: %d, addr: %d\n"

	.no_dead_strip	_tc358764_read
.subsections_via_symbols
