	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function feiyang_prepare
_feiyang_prepare:                       ## @feiyang_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_panel_to_feiyang
	movq	%rax, %r15
	movq	16(%rax), %r14
	movl	8(%rax), %edi
	callq	_regulator_enable
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movl	$10, %edi
	callq	_msleep
	movl	4(%r15), %edi
	callq	_regulator_enable
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_2
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_gpiod_set_value
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_gpiod_set_value
	movl	$200, %edi
	callq	_msleep
	movq	_feiyang_init_cmds@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	movq	_FEIYANG_INIT_CMD_LEN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_mipi_dsi_dcs_write_buffer
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_4
## %bb.6:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %r12d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_feiyang_init_cmds,8,3          ## @feiyang_init_cmds
	.comm	_FEIYANG_INIT_CMD_LEN,4,2       ## @FEIYANG_INIT_CMD_LEN
	.no_dead_strip	_feiyang_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function feiyang_prepare
_feiyang_prepare:                       ; @feiyang_prepare
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_panel_to_feiyang
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	w0, [x0, #8]
	bl	_regulator_enable
	cbnz	w0, LBB0_2
; %bb.1:
	mov	w0, #10
	bl	_msleep
	ldr	w0, [x20, #4]
	bl	_regulator_enable
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x20]
	mov	w1, #0
	bl	_gpiod_set_value
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x20]
	mov	w1, #1
	bl	_gpiod_set_value
	mov	w0, #200
	bl	_msleep
Lloh0:
	adrp	x20, _feiyang_init_cmds@GOTPAGE
Lloh1:
	ldr	x20, [x20, _feiyang_init_cmds@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_2
; %bb.4:
	mov	x21, #0
Lloh2:
	adrp	x22, _FEIYANG_INIT_CMD_LEN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FEIYANG_INIT_CMD_LEN@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w1, [x8, x21, lsl #2]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_mipi_dsi_dcs_write_buffer
	tbnz	w0, #31, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	x21, w0, uxtw
	b.lo	LBB0_5
; %bb.7:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_feiyang_init_cmds,8,3          ; @feiyang_init_cmds
	.comm	_FEIYANG_INIT_CMD_LEN,4,2       ; @FEIYANG_INIT_CMD_LEN
	.no_dead_strip	_feiyang_prepare
.subsections_via_symbols
