	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_cmd_dma_rx
_dsi_cmd_dma_rx:                        ## @dsi_cmd_dma_rx
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	%rsi, %rax
	subq	(%rdi), %rax
	shrq	$2, %rax
	addl	$6, %ecx
	cmpl	$4, %edx
	cmovel	%edx, %ecx
	subl	%ecx, %eax
	addl	$16, %eax
	xorl	%esi, %esi
	cmpl	$17, %ecx
	cmovll	%esi, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	movq	%rdi, %r13
	addl	$3, %edx
	shrl	$2, %edx
	cmpl	$4, %edx
	movl	$4, %r15d
	cmovll	%edx, %r15d
	leaq	-112(%rbp), %r14
	incl	%r15d
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%r15), %edi
	callq	_REG_DSI_RDBK_DATA
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_dsi_read
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ntohl
	movl	%eax, (%r14)
	addq	$4, %r14
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_DBG
	decl	%r15d
	cmpl	$1, %r15d
	ja	LBB0_2
LBB0_3:
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	cmpl	$15, %ebx
	movl	$0, %eax
	jg	LBB0_5
## %bb.4:
	movslq	%ebx, %rax
	leaq	-112(,%rax,4), %rsi
	addq	%rbp, %rsi
	movl	$15, %eax
	subl	%ebx, %eax
	leaq	4(,%rax,4), %rdx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_memcpy
	movl	$16, %eax
	subl	%ebx, %eax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data = 0x%x and ntohl(data) = 0x%x"

	.no_dead_strip	_dsi_cmd_dma_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_cmd_dma_rx
_dsi_cmd_dma_rx:                        ; @dsi_cmd_dma_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	x8, [x0]
	sub	x8, x1, x8
	lsr	x8, x8, #2
	add	w9, w3, #6
	cmp	w2, #4
	csel	w9, w2, w9, eq
	sub	w8, w8, w9
	add	w8, w8, #16
	cmp	w9, #16
	csel	w24, w8, wzr, gt
	cmp	w2, #0
	b.le	LBB0_5
; %bb.1:
	mov	x20, x0
	add	w8, w2, #3
	lsr	w8, w8, #2
	mov	w9, #4
	cmp	w8, #4
	csel	w25, w8, w9, lt
	sub	w22, w25, #1
	mov	x0, x22
	bl	_REG_DSI_RDBK_DATA
	mov	x1, x0
	mov	x0, x20
	bl	_dsi_read
	mov	x21, x0
	bl	_ntohl
	mov	x2, x0
	str	w0, [sp, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DBG
	subs	w21, w25, #2
	b.lo	LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_REG_DSI_RDBK_DATA
	mov	x1, x0
	mov	x0, x20
	bl	_dsi_read
	mov	x23, x0
	bl	_ntohl
	mov	x2, x0
	str	w0, [sp, #12]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_DBG
	cmp	w22, #2
	b.lo	LBB0_5
; %bb.3:
	sub	w0, w25, #3
	bl	_REG_DSI_RDBK_DATA
	mov	x1, x0
	mov	x0, x20
	bl	_dsi_read
	mov	x22, x0
	bl	_ntohl
	mov	x2, x0
	str	w0, [sp, #16]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_DBG
	cmp	w21, #2
	b.lo	LBB0_5
; %bb.4:
	sub	w0, w25, #4
	bl	_REG_DSI_RDBK_DATA
	mov	x1, x0
	mov	x0, x20
	bl	_dsi_read
	mov	x20, x0
	bl	_ntohl
	mov	x2, x0
	str	w0, [sp, #20]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DBG
LBB0_5:
	cmp	w24, #15
	b.gt	LBB0_7
; %bb.6:
	add	x8, sp, #8
	add	x1, x8, w24, sxtw #2
	mov	w8, #15
	sub	w8, w8, w24
	lsl	x8, x8, #2
	add	x2, x8, #4
	mov	x0, x19
	bl	_memcpy
	mov	w8, #16
	sub	w0, w8, w24
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldr	x8, [sp, #72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data = 0x%x and ntohl(data) = 0x%x"

	.no_dead_strip	_dsi_cmd_dma_rx
.subsections_via_symbols
