	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdfld_dsi_send_gen_short       ## -- Begin function mdfld_dsi_send_gen_short
	.p2align	4, 0x90
_mdfld_dsi_send_gen_short:              ## @mdfld_dsi_send_gen_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_2
## %bb.1:
	cmpl	$3, %ecx
	jge	LBB0_2
## %bb.3:
	movl	%r8d, %r14d
	movq	%rdi, %rbx
	cmpl	$2, %ecx
	je	LBB0_8
## %bb.4:
	cmpl	$1, %ecx
	je	LBB0_7
## %bb.5:
                                        ## implicit-def: $r15d
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.6:
	movq	_MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$0, -40(%rbp)
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_7:
	movq	_MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%esi, -40(%rbp)
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_8:
	movq	_MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%esi, -40(%rbp)
LBB0_9:
	movl	%edx, -36(%rbp)
LBB0_10:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$8, %ecx
	movl	%r14d, %r8d
	callq	_send_pkg
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	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_GENERIC_SHORT_WRITE_0_PARAM,4,2 ## @MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM
	.comm	_MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM,4,2 ## @MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM
	.comm	_MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM,4,2 ## @MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdfld_dsi_send_gen_short       ; -- Begin function mdfld_dsi_send_gen_short
	.p2align	2
_mdfld_dsi_send_gen_short:              ; @mdfld_dsi_send_gen_short
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, #8]
	cbz	x0, LBB0_6
; %bb.1:
	cmp	w3, #3
	b.ge	LBB0_6
; %bb.2:
	mov	x20, x4
	mov	x19, x0
	cmp	w3, #2
	b.eq	LBB0_8
; %bb.3:
	cmp	w3, #1
	b.eq	LBB0_7
; %bb.4:
                                        ; implicit-def: $w21
	cbnz	w3, LBB0_11
; %bb.5:
	mov	w2, #0
Lloh3:
	adrp	x8, _MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	str	wzr, [sp]
	b	LBB0_10
LBB0_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_7:
	mov	w2, #0
Lloh11:
	adrp	x8, _MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM@GOTPAGEOFF]
LBB0_9:
	ldr	w21, [x8]
	str	w1, [sp]
LBB0_10:
	str	w2, [sp, #4]
LBB0_11:
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	mov	w3, #8
	mov	x4, x20
	bl	_send_pkg
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_12:
	ldr	x8, [sp, #8]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid parameter\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM,4,2 ; @MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM
	.comm	_MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM,4,2 ; @MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM
	.comm	_MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM,4,2 ; @MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM
.subsections_via_symbols
