	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mipi_dsi_generic_write         ## -- Begin function mipi_dsi_generic_write
	.p2align	4, 0x90
_mipi_dsi_generic_write:                ## @mipi_dsi_generic_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	%rsi, -24(%rbp)
	movq	%rdx, -16(%rbp)
	movl	(%rdi), %eax
	movl	%eax, -4(%rbp)
	cmpq	$2, %rdx
	ja	LBB0_1
## %bb.2:
	leaq	l_switch.table.mipi_dsi_generic_write(%rip), %rax
	movq	(%rax,%rdx,8), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MIPI_DSI_GENERIC_LONG_WRITE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	leaq	-24(%rbp), %rsi
	callq	_mipi_dsi_device_transfer
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_MIPI_DSI_GENERIC_LONG_WRITE,4,2 ## @MIPI_DSI_GENERIC_LONG_WRITE
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mipi_dsi_generic_write
l_switch.table.mipi_dsi_generic_write:
	.quad	_MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM
	.quad	_MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM
	.quad	_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	_mipi_dsi_generic_write         ; -- Begin function mipi_dsi_generic_write
	.p2align	2
_mipi_dsi_generic_write:                ; @mipi_dsi_generic_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	stp	x1, x2, [sp, #8]
	ldr	w8, [x0]
	str	w8, [sp, #28]
	cmp	x2, #2
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_switch.table.mipi_dsi_generic_write@PAGE
Lloh1:
	add	x8, x8, l_switch.table.mipi_dsi_generic_write@PAGEOFF
	ldr	x8, [x8, x2, lsl #3]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _MIPI_DSI_GENERIC_LONG_WRITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MIPI_DSI_GENERIC_LONG_WRITE@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x1, sp, #8
	bl	_mipi_dsi_device_transfer
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_MIPI_DSI_GENERIC_LONG_WRITE,4,2 ; @MIPI_DSI_GENERIC_LONG_WRITE
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mipi_dsi_generic_write
l_switch.table.mipi_dsi_generic_write:
	.quad	_MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM
	.quad	_MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM
	.quad	_MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM

.subsections_via_symbols
