	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdfld_dsi_send_mcs_short       ## -- Begin function mdfld_dsi_send_mcs_short
	.p2align	4, 0x90
_mdfld_dsi_send_mcs_short:              ## @mdfld_dsi_send_mcs_short
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%r8d, %r14d
	movq	%rdi, %rbx
	movq	%rsi, -48(%rbp)
	testq	%rcx, %rcx
	movq	_MIPI_DSI_DCS_SHORT_WRITE_PARAM@GOTPCREL(%rip), %rax
	cmoveq	_MIPI_DSI_DCS_SHORT_WRITE@GOTPCREL(%rip), %rax
	cmoveq	%rcx, %rdx
	movq	(%rax), %r15
	movq	%rdx, -40(%rbp)
	callq	_spin_lock_irqsave
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$16, %ecx
	movl	%r14d, %r8d
	callq	_send_pkg
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid parameter\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MIPI_DSI_DCS_SHORT_WRITE_PARAM,8,3 ## @MIPI_DSI_DCS_SHORT_WRITE_PARAM
	.comm	_MIPI_DSI_DCS_SHORT_WRITE,8,3   ## @MIPI_DSI_DCS_SHORT_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdfld_dsi_send_mcs_short       ; -- Begin function mdfld_dsi_send_mcs_short
	.p2align	2
_mdfld_dsi_send_mcs_short:              ; @mdfld_dsi_send_mcs_short
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x4
	mov	x19, x0
	str	x1, [sp, #8]
Lloh3:
	adrp	x8, _MIPI_DSI_DCS_SHORT_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIPI_DSI_DCS_SHORT_WRITE@GOTPAGEOFF]
	cmp	x3, #0
	csel	x9, xzr, x2, eq
Lloh5:
	adrp	x10, _MIPI_DSI_DCS_SHORT_WRITE_PARAM@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MIPI_DSI_DCS_SHORT_WRITE_PARAM@GOTPAGEOFF]
	csel	x8, x8, x10, eq
	ldr	x21, [x8]
	str	x9, [sp, #16]
	bl	_spin_lock_irqsave
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	mov	w3, #16
	mov	x4, x20
	bl	_send_pkg
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid parameter\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MIPI_DSI_DCS_SHORT_WRITE_PARAM,8,3 ; @MIPI_DSI_DCS_SHORT_WRITE_PARAM
	.comm	_MIPI_DSI_DCS_SHORT_WRITE,8,3   ; @MIPI_DSI_DCS_SHORT_WRITE
.subsections_via_symbols
