	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdfld_mipi_config
_mdfld_mipi_config:                     ## @mdfld_mipi_config
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	$512, %r15d                     ## imm = 0x200
	orl	(%rdi), %r15d
	xorl	%edi, %edi
	callq	_MIPI_PORT_CONTROL
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	setne	%bl
	movl	$-2147418112, %esi              ## imm = 0x80010000
	movl	$2, %ecx
	cmovnel	%ecx, %esi
	shll	$31, %ebx
	movl	%eax, %edi
	callq	_REG_WRITE
	movl	$2, %edi
	callq	_MIPI_PORT_CONTROL
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_REG_WRITE
	movl	%r12d, %edi
	callq	_MIPI_DPHY_PARAM_REG
	movl	%eax, %edi
	movl	$353001487, %esi                ## imm = 0x150A600F
	callq	_REG_WRITE
	movl	%r12d, %edi
	callq	_MIPI_VIDEO_MODE_FORMAT_REG
	movl	%eax, %edi
	movl	$15, %esi
	callq	_REG_WRITE
	movl	%r12d, %edi
	callq	_MIPI_DSI_FUNC_PRG_REG
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_REG_WRITE
	movq	%r14, %rdi
	movl	%r12d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdfld_mipi_set_video_timing    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mdfld_mipi_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdfld_mipi_config
_mdfld_mipi_config:                     ; @mdfld_mipi_config
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w22, [x0]
	mov	w0, #0
	bl	_MIPI_PORT_CONTROL
	mov	w8, #2
	mov	w9, #-2147418112
	cmp	w19, #0
	csel	w1, w9, w8, eq
	cset	w8, ne
	lsl	w21, w8, #31
	bl	_REG_WRITE
	mov	w0, #2
	bl	_MIPI_PORT_CONTROL
	mov	x1, x21
	bl	_REG_WRITE
	mov	x0, x19
	bl	_MIPI_DPHY_PARAM_REG
	mov	w1, #24591
	movk	w1, #5386, lsl #16
	bl	_REG_WRITE
	mov	x0, x19
	bl	_MIPI_VIDEO_MODE_FORMAT_REG
	mov	w1, #15
	bl	_REG_WRITE
	mov	x0, x19
	bl	_MIPI_DSI_FUNC_PRG_REG
	orr	w1, w22, #0x200
	bl	_REG_WRITE
	mov	x0, x20
	mov	x1, x19
	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
	b	_mdfld_mipi_set_video_timing
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mdfld_mipi_config
.subsections_via_symbols
