	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __read_panel_data
___read_panel_data:                     ## @__read_panel_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%r8, %r12
	testq	%r8, %r8
	je	LBB0_3
## %bb.2:
	testl	%r9d, %r9d
	je	LBB0_3
## %bb.5:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	_MDFLD_DSI_READ_MAX_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	addq	$12, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	(%r14), %r13d
	movl	$29, %edi
	callq	_BIT
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_REG_WRITE
	movl	(%r14), %edi
	callq	_REG_READ
	movl	%eax, %r13d
	movl	$29, %edi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
LBB0_7:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	16(%rbp), %r13d
	movl	%r13d, %r8d
	callq	_send_pkg
	testl	%r15d, %r15d
	je	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_REG_READ
	movl	%eax, %ebx
	movl	$29, %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	$100, %edi
	callq	_udelay
	decl	%r15d
	jne	LBB0_8
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%r14), %ebx
	movl	$29, %edi
	callq	_BIT
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_REG_WRITE
	xorl	%eax, %eax
	testl	%r13d, %r13d
	sete	%cl
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %edx
	jle	LBB0_14
## %bb.12:
	movb	%cl, %al
	movl	4(%r14,%rax,4), %r14d
	movl	%edx, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_REG_READ
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_13
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_MDFLD_DSI_READ_MAX_COUNT,4,2   ## @MDFLD_DSI_READ_MAX_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid parameters\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Can NOT clean read data valid interrupt\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	___read_panel_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __read_panel_data
___read_panel_data:                     ; @__read_panel_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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x4
	cbz	x4, LBB0_9
; %bb.2:
	mov	x21, x5
	cbz	w5, LBB0_9
; %bb.3:
	mov	x23, x6
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _MDFLD_DSI_READ_MAX_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDFLD_DSI_READ_MAX_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w28, [x8]
	add	x20, x0, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w27, [x22]
	mov	w0, #29
	bl	_BIT
	mov	x1, x0
	mov	x0, x27
	bl	_REG_WRITE
	ldr	w0, [x22]
	bl	_REG_READ
	mov	x27, x0
	mov	w0, #29
	bl	_BIT
	tst	w0, w27
	b.eq	LBB0_5
; %bb.4:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_5:
	mov	x0, x22
	mov	x1, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x23
	bl	_send_pkg
	cbz	w28, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_REG_READ
	mov	x24, x0
	mov	w0, #29
	bl	_BIT
	tst	w0, w24
	b.ne	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #100
	bl	_udelay
	subs	w28, w28, #1
	b.ne	LBB0_6
LBB0_8:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh5:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
LBB0_12:
	ldr	w24, [x22]
	mov	w0, #29
	bl	_BIT
	mov	x1, x0
	mov	x0, x24
	bl	_REG_WRITE
	cmp	w23, #0
	mov	w8, #4
	mov	w9, #8
	csel	x8, x9, x8, eq
	cmp	w21, #1
	b.lt	LBB0_15
; %bb.13:
	ldr	w22, [x22, x8]
	mov	w21, w21
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_REG_READ
	str	w0, [x19], #4
	subs	x21, x21, #1
	b.ne	LBB0_14
LBB0_15:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MDFLD_DSI_READ_MAX_COUNT,4,2   ; @MDFLD_DSI_READ_MAX_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid parameters\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Can NOT clean read data valid interrupt\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	___read_panel_data
.subsections_via_symbols
