	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_vc_send_short
_dsi_vc_send_short:                     ## @dsi_vc_send_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_dsi_bus_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	cmpq	$0, 8(%r13)
	je	LBB0_2
## %bb.1:
	movzbl	%bl, %ecx
	movzbl	%bh, %eax
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%eax, %r8d
	callq	_DSSDBG
LBB0_2:
	movq	_DSI_VC_SOURCE_L4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_dsi_vc_config_source
	movl	%r14d, %edi
	callq	_DSI_VC_CTRL
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_dsi_read_reg
	movl	%eax, %edi
	movl	$16, %esi
	movl	$16, %edx
	callq	_FLD_GET
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_DSSERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	movq	(%r13), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %eax
	shll	$6, %eax
	shll	$8, %ebx
	shll	$24, %r15d
	orl	%r12d, %ebx
	orl	%r15d, %ebx
	orl	%eax, %ebx
	movl	%r14d, %edi
	callq	_DSI_VC_SHORT_PACKET_HEADER
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_dsi_write_reg
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsi_vc_send_short(ch%d, dt %#x, b1 %#x, b2 %#x)\n"

	.comm	_DSI_VC_SOURCE_L4,4,2           ## @DSI_VC_SOURCE_L4
L_.str.1:                               ## @.str.1
	.asciz	"ERROR FIFO FULL, aborting transfer\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dsi_vc_send_short
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_vc_send_short
_dsi_vc_send_short:                     ; @dsi_vc_send_short
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	bl	_dsi_bus_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	and	w3, w22, #0xff
	ubfx	w4, w22, #8, #8
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x23
	bl	_DSSDBG
LBB0_2:
Lloh2:
	adrp	x8, _DSI_VC_SOURCE_L4@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DSI_VC_SOURCE_L4@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_dsi_vc_config_source
	mov	x0, x20
	bl	_DSI_VC_CTRL
	mov	x1, x0
	mov	x0, x19
	bl	_dsi_read_reg
	mov	w1, #16
	mov	w2, #16
	bl	_FLD_GET
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DSSERR
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
	ldr	w8, [x8, w20, sxtw #2]
	orr	w9, w23, w22, lsl #8
	orr	w9, w9, w21, lsl #24
	orr	w21, w9, w8, lsl #6
	mov	x0, x20
	bl	_DSI_VC_SHORT_PACKET_HEADER
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_dsi_write_reg
	mov	w0, #0
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsi_vc_send_short(ch%d, dt %#x, b1 %#x, b2 %#x)\n"

	.comm	_DSI_VC_SOURCE_L4,4,2           ; @DSI_VC_SOURCE_L4
l_.str.1:                               ; @.str.1
	.asciz	"ERROR FIFO FULL, aborting transfer\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dsi_vc_send_short
.subsections_via_symbols
