	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mipi_exec_send_packet
_mipi_exec_send_packet:                 ## @mipi_exec_send_packet
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_to_i915
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	(%rbx), %r12d
	movq	_PORT_C@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$1, %eax
	movl	%r13d, %ecx
	shll	%cl, %eax
	movl	4(%rbx), %r15d
	movslq	8(%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpl	%eax, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_MIPI_PORT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r12d, %edi
	sarl	%cl, %edi
	andl	$3, %edi
	callq	_intel_dsi_seq_port_to_port
	movl	%eax, %r13d
LBB0_2:
	addq	$16, %rbx
	movq	8(%r14), %rax
	movl	%r13d, %ecx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	movq	_MIPI_TRANSFER_MODE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %r12d
	movq	_MIPI_DSI_MODE_LPM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jae	LBB0_6
## %bb.5:
	notl	%eax
	andl	%eax, 4(%rdi)
	jmp	LBB0_7
LBB0_3:
	movl	%r13d, %edi
	callq	_port_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_6:
	orl	%eax, 4(%rdi)
LBB0_7:
	movq	_MIPI_VIRTUAL_CHANNEL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r12d
	andl	$3, %r12d
	movl	%r12d, (%rdi)
	addl	$-128, %r15d
	cmpl	$10, %r15d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	ja	LBB0_19
## %bb.8:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	jmp	LBB0_19
LBB0_11:
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_mipi_dsi_generic_write
	jmp	LBB0_19
LBB0_10:
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_mipi_dsi_generic_write
	jmp	LBB0_19
LBB0_9:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_mipi_dsi_generic_write
	jmp	LBB0_19
LBB0_13:
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_mipi_dsi_generic_write
	jmp	LBB0_19
LBB0_15:
	movq	%rbx, %rsi
	movl	$2, %edx
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.3(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	jmp	LBB0_19
LBB0_17:
	movq	%rbx, %rsi
	movl	%r12d, %edx
	jmp	LBB0_18
LBB0_14:
	movq	%rbx, %rsi
	movl	$1, %edx
LBB0_18:
	callq	_mipi_dsi_dcs_write_buffer
LBB0_19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_INTEL_GEN
	cmpl	$10, %eax
	jg	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_vlv_dsi_wait_for_fifo_empty
LBB0_21:
	leaq	(%rbx,%r12,4), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_15
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_MIPI_PORT_SHIFT,4,2            ## @MIPI_PORT_SHIFT
	.comm	_PORT_C,4,2                     ## @PORT_C
L_.str.1:                               ## @.str.1
	.asciz	"no dsi device for port %c\n"

	.comm	_MIPI_TRANSFER_MODE_SHIFT,4,2   ## @MIPI_TRANSFER_MODE_SHIFT
	.comm	_MIPI_DSI_MODE_LPM,4,2          ## @MIPI_DSI_MODE_LPM
	.comm	_MIPI_VIRTUAL_CHANNEL_SHIFT,4,2 ## @MIPI_VIRTUAL_CHANNEL_SHIFT
L_.str.2:                               ## @.str.2
	.asciz	"Generic Read not yet implemented or used\n"

L_.str.3:                               ## @.str.3
	.asciz	"DCS Read not yet implemented or used\n"

	.no_dead_strip	_mipi_exec_send_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mipi_exec_send_packet
_mipi_exec_send_packet:                 ; @mipi_exec_send_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x20, x0
	ldr	w0, [x0, #16]
	bl	_to_i915
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldp	w25, w24, [x22]
	ldrsw	x19, [x22, #8]
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _PORT_C@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PORT_C@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x9]
	mov	w9, #1
	lsl	w9, w9, w23
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _MIPI_PORT_SHIFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIPI_PORT_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	asr	w8, w25, w8
	and	w0, w8, #0x3
	bl	_intel_dsi_seq_port_to_port
	mov	x23, x0
LBB0_2:
	add	x22, x22, #16
	ldr	x8, [x20, #8]
	ldr	x8, [x8, w23, uxtw #3]
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _MIPI_TRANSFER_MODE_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MIPI_TRANSFER_MODE_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x8]
Lloh11:
	adrp	x8, _MIPI_DSI_MODE_LPM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MIPI_DSI_MODE_LPM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	lsr	w9, w25, w9
	tbz	w9, #0, LBB0_6
; %bb.4:
	ldr	w9, [x0, #4]
	bic	w8, w9, w8
	b	LBB0_7
LBB0_5:
	mov	x0, x23
	bl	_port_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_21
LBB0_6:
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
LBB0_7:
	str	w8, [x0, #4]
Lloh16:
	adrp	x8, _MIPI_VIRTUAL_CHANNEL_SHIFT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MIPI_VIRTUAL_CHANNEL_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	asr	w8, w25, w8
	and	w8, w8, #0x3
	str	w8, [x0]
	sub	w8, w24, #128
	cmp	w8, #10
	b.hi	LBB0_19
; %bb.8:
Lloh19:
	adrp	x9, lJTI0_0@PAGE
Lloh20:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	b	LBB0_19
LBB0_10:
	mov	x1, x22
	mov	w2, #2
	bl	_mipi_dsi_generic_write
	b	LBB0_19
LBB0_11:
	mov	x1, x22
	mov	w2, #1
	bl	_mipi_dsi_generic_write
	b	LBB0_19
LBB0_12:
	mov	x1, #0
	mov	w2, #0
	bl	_mipi_dsi_generic_write
	b	LBB0_19
LBB0_13:
	mov	x1, x22
	mov	x2, x19
	bl	_mipi_dsi_generic_write
	b	LBB0_19
LBB0_14:
	mov	x1, x22
	mov	w2, #2
	b	LBB0_18
LBB0_15:
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	b	LBB0_19
LBB0_16:
	mov	x1, x22
	mov	x2, x19
	b	LBB0_18
LBB0_17:
	mov	x1, x22
	mov	w2, #1
LBB0_18:
	bl	_mipi_dsi_dcs_write_buffer
LBB0_19:
	mov	x0, x21
	bl	_INTEL_GEN
	cmp	w0, #10
	b.gt	LBB0_21
; %bb.20:
	mov	x0, x20
	mov	x1, x23
	bl	_vlv_dsi_wait_for_fifo_empty
LBB0_21:
	add	x0, x22, x19, lsl #2
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_13-LBB0_9)>>2
	.byte	(LBB0_14-LBB0_9)>>2
	.byte	(LBB0_17-LBB0_9)>>2
	.byte	(LBB0_15-LBB0_9)>>2
	.byte	(LBB0_16-LBB0_9)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_MIPI_PORT_SHIFT,4,2            ; @MIPI_PORT_SHIFT
	.comm	_PORT_C,4,2                     ; @PORT_C
l_.str.1:                               ; @.str.1
	.asciz	"no dsi device for port %c\n"

	.comm	_MIPI_TRANSFER_MODE_SHIFT,4,2   ; @MIPI_TRANSFER_MODE_SHIFT
	.comm	_MIPI_DSI_MODE_LPM,4,2          ; @MIPI_DSI_MODE_LPM
	.comm	_MIPI_VIRTUAL_CHANNEL_SHIFT,4,2 ; @MIPI_VIRTUAL_CHANNEL_SHIFT
l_.str.2:                               ; @.str.2
	.asciz	"Generic Read not yet implemented or used\n"

l_.str.3:                               ; @.str.3
	.asciz	"DCS Read not yet implemented or used\n"

	.no_dead_strip	_mipi_exec_send_packet
.subsections_via_symbols
