	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_pkg_prepare
_send_pkg_prepare:                      ## @send_pkg_prepare
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	addl	$-128, %esi
	cmpl	$2, %esi
	ja	LBB0_5
## %bb.1:
	movl	(%rdx), %ebx
	movq	_MDFLD_DSI_PKG_SENDER_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	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:
	movl	$120, %edi
	callq	_mdelay
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:
	movl	$120, %edi
	callq	_mdelay
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDFLD_DSI_PKG_SENDER_BUSY,4,2  ## @MDFLD_DSI_PKG_SENDER_BUSY
	.comm	_MIPI_DCS_ENTER_SLEEP_MODE,4,2  ## @MIPI_DCS_ENTER_SLEEP_MODE
	.comm	_MIPI_DCS_EXIT_SLEEP_MODE,4,2   ## @MIPI_DCS_EXIT_SLEEP_MODE
	.no_dead_strip	_send_pkg_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_pkg_prepare
_send_pkg_prepare:                      ; @send_pkg_prepare
	.cfi_startproc
; %bb.0:
	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
	sub	w8, w1, #128
	cmp	w8, #2
	b.hi	LBB0_5
; %bb.1:
	ldr	w19, [x2]
Lloh0:
	adrp	x8, _MDFLD_DSI_PKG_SENDER_BUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDFLD_DSI_PKG_SENDER_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh3:
	adrp	x8, _MIPI_DCS_ENTER_SLEEP_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIPI_DCS_ENTER_SLEEP_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w19, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	mov	w0, #120
	bl	_mdelay
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	w19, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #120
	bl	_mdelay
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MDFLD_DSI_PKG_SENDER_BUSY,4,2  ; @MDFLD_DSI_PKG_SENDER_BUSY
	.comm	_MIPI_DCS_ENTER_SLEEP_MODE,4,2  ; @MIPI_DCS_ENTER_SLEEP_MODE
	.comm	_MIPI_DCS_EXIT_SLEEP_MODE,4,2   ; @MIPI_DCS_EXIT_SLEEP_MODE
	.no_dead_strip	_send_pkg_prepare
.subsections_via_symbols
