	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mipi_dsi_dcs_write_buffer      ## -- Begin function mipi_dsi_dcs_write_buffer
	.p2align	4, 0x90
_mipi_dsi_dcs_write_buffer:             ## @mipi_dsi_dcs_write_buffer
	.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
	je	LBB0_5
## %bb.1:
	cmpq	$1, %rdx
	je	LBB0_2
## %bb.3:
	testq	%rdx, %rdx
	jne	LBB0_6
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	movq	_MIPI_DSI_DCS_SHORT_WRITE_PARAM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_MIPI_DSI_DCS_SHORT_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_MIPI_DSI_DCS_LONG_WRITE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	leaq	-24(%rbp), %rsi
	callq	_mipi_dsi_device_transfer
LBB0_8:
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MIPI_DSI_DCS_SHORT_WRITE,4,2   ## @MIPI_DSI_DCS_SHORT_WRITE
	.comm	_MIPI_DSI_DCS_SHORT_WRITE_PARAM,4,2 ## @MIPI_DSI_DCS_SHORT_WRITE_PARAM
	.comm	_MIPI_DSI_DCS_LONG_WRITE,4,2    ## @MIPI_DSI_DCS_LONG_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mipi_dsi_dcs_write_buffer      ; -- Begin function mipi_dsi_dcs_write_buffer
	.p2align	2
_mipi_dsi_dcs_write_buffer:             ; @mipi_dsi_dcs_write_buffer
	.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.eq	LBB0_4
; %bb.1:
	cmp	x2, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	x2, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _MIPI_DSI_DCS_SHORT_WRITE_PARAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIPI_DSI_DCS_SHORT_WRITE_PARAM@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _MIPI_DSI_DCS_SHORT_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIPI_DSI_DCS_SHORT_WRITE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _MIPI_DSI_DCS_LONG_WRITE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MIPI_DSI_DCS_LONG_WRITE@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x1, sp, #8
	bl	_mipi_dsi_device_transfer
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MIPI_DSI_DCS_SHORT_WRITE,4,2   ; @MIPI_DSI_DCS_SHORT_WRITE
	.comm	_MIPI_DSI_DCS_SHORT_WRITE_PARAM,4,2 ; @MIPI_DSI_DCS_SHORT_WRITE_PARAM
	.comm	_MIPI_DSI_DCS_LONG_WRITE,4,2    ; @MIPI_DSI_DCS_LONG_WRITE
.subsections_via_symbols
