	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_pkg_done
_send_pkg_done:                         ## @send_pkg_done
	.cfi_startproc
## %bb.0:
	addl	$-128, %esi
	cmpl	$2, %esi
	ja	LBB0_8
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdx), %ebx
	movq	_MIPI_DCS_ENTER_SLEEP_MODE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_MDFLD_DSI_PANEL_MODE_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
	movl	$120, %edi
	jmp	LBB0_6
LBB0_3:
	movq	_MIPI_DCS_EXIT_SLEEP_MODE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_MDFLD_DSI_PANEL_MODE_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r14)
	movl	$120, %edi
	jmp	LBB0_6
LBB0_5:
	movq	_MIPI_DCS_SOFT_RESET@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	sete	%dil
	callq	_unlikely
	movl	$5, %edi
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	callq	_mdelay
LBB0_7:
	movq	_MDFLD_DSI_PKG_SENDER_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
LBB0_8:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPI_DCS_ENTER_SLEEP_MODE,4,2  ## @MIPI_DCS_ENTER_SLEEP_MODE
	.comm	_MDFLD_DSI_PANEL_MODE_SLEEP,4,2 ## @MDFLD_DSI_PANEL_MODE_SLEEP
	.comm	_MIPI_DCS_EXIT_SLEEP_MODE,4,2   ## @MIPI_DCS_EXIT_SLEEP_MODE
	.comm	_MIPI_DCS_SOFT_RESET,4,2        ## @MIPI_DCS_SOFT_RESET
	.comm	_MDFLD_DSI_PKG_SENDER_FREE,4,2  ## @MDFLD_DSI_PKG_SENDER_FREE
	.no_dead_strip	_send_pkg_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_pkg_done
_send_pkg_done:                         ; @send_pkg_done
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #128
	cmp	w8, #2
	b.hi	LBB0_8
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w20, [x2]
Lloh0:
	adrp	x8, _MIPI_DCS_ENTER_SLEEP_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIPI_DCS_ENTER_SLEEP_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _MDFLD_DSI_PANEL_MODE_SLEEP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDFLD_DSI_PANEL_MODE_SLEEP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _MIPI_DCS_EXIT_SLEEP_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MIPI_DCS_EXIT_SLEEP_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w20, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.4:
Lloh9:
	adrp	x8, _MDFLD_DSI_PANEL_MODE_SLEEP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MDFLD_DSI_PANEL_MODE_SLEEP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
LBB0_5:
	str	w8, [x19, #4]
	mov	w0, #120
LBB0_6:
	bl	_mdelay
LBB0_7:
Lloh12:
	adrp	x8, _MDFLD_DSI_PKG_SENDER_FREE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MDFLD_DSI_PKG_SENDER_FREE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_8:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	mov	w0, #0
	ret
LBB0_9:
Lloh15:
	adrp	x8, _MIPI_DCS_SOFT_RESET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MIPI_DCS_SOFT_RESET@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w20, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.10:
	mov	w0, #5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_DCS_ENTER_SLEEP_MODE,4,2  ; @MIPI_DCS_ENTER_SLEEP_MODE
	.comm	_MDFLD_DSI_PANEL_MODE_SLEEP,4,2 ; @MDFLD_DSI_PANEL_MODE_SLEEP
	.comm	_MIPI_DCS_EXIT_SLEEP_MODE,4,2   ; @MIPI_DCS_EXIT_SLEEP_MODE
	.comm	_MIPI_DCS_SOFT_RESET,4,2        ; @MIPI_DCS_SOFT_RESET
	.comm	_MDFLD_DSI_PKG_SENDER_FREE,4,2  ; @MDFLD_DSI_PKG_SENDER_FREE
	.no_dead_strip	_send_pkg_done
.subsections_via_symbols
