	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_mipi_sequence
_parse_mipi_sequence:                   ## @parse_mipi_sequence
	.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	8(%rdi), %rax
	movq	_MIPI_DSI_GENERIC_PANEL_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	movq	_BDB_MIPI_SEQUENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_find_section
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movq	%rax, %r14
	movl	(%rax), %esi
	cmpl	$4, %esi
	jl	LBB0_3
## %bb.20:
	leaq	L_.str.1(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_19:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_find_panel_sequence_block
	testq	%rax, %rax
	je	LBB0_18
## %bb.4:
	movl	-44(%rbp), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	_goto_next_sequence
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_16
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %r15
	movslq	%r12d, %r14
	movq	(%r13,%r14,8), %rbx
	movq	_MIPI_SEQ_END@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_MIPI_SEQ_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_MIPI_SEQ_TEAR_ON@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_MIPI_SEQ_TEAR_OFF@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	(,%r14,8), %rax
	addq	%r13, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r15, %r14
	cmpl	$3, (%r15)
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	jl	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	callq	_goto_next_sequence_v3
	jmp	LBB0_15
LBB0_16:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_17
LBB0_21:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, 24(%rdi)
	movl	-44(%rbp), %eax
	movl	%eax, 36(%rdi)
	movl	(%r15), %eax
	movl	%eax, 32(%rdi)
	callq	_fixup_mipi_sequences
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	jmp	LBB0_18
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
LBB0_17:
	movq	%rbx, %rsi
	callq	_DRM_ERROR
	movq	%r13, %rdi
	callq	_kfree
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPI_DSI_GENERIC_PANEL_ID,8,3  ## @MIPI_DSI_GENERIC_PANEL_ID
	.comm	_BDB_MIPI_SEQUENCE,4,2          ## @BDB_MIPI_SEQUENCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No MIPI Sequence found, parsing complete\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to parse MIPI Sequence Block v%u\n"

L_.str.2:                               ## @.str.2
	.asciz	"Found MIPI sequence block v%u\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MIPI_SEQ_END,8,3               ## @MIPI_SEQ_END
	.comm	_MIPI_SEQ_MAX,8,3               ## @MIPI_SEQ_MAX
L_.str.3:                               ## @.str.3
	.asciz	"Unknown sequence %u\n"

	.comm	_MIPI_SEQ_TEAR_ON,8,3           ## @MIPI_SEQ_TEAR_ON
	.comm	_MIPI_SEQ_TEAR_OFF,8,3          ## @MIPI_SEQ_TEAR_OFF
L_.str.4:                               ## @.str.4
	.asciz	"Unsupported sequence %u\n"

L_.str.5:                               ## @.str.5
	.asciz	"Invalid sequence %u\n"

L_.str.6:                               ## @.str.6
	.asciz	"MIPI related VBT parsing complete\n"

	.no_dead_strip	_parse_mipi_sequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_mipi_sequence
_parse_mipi_sequence:                   ; @parse_mipi_sequence
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _MIPI_DSI_GENERIC_PANEL_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MIPI_DSI_GENERIC_PANEL_ID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.1:
	mov	x19, x0
	ldr	w21, [x0]
Lloh3:
	adrp	x8, _BDB_MIPI_SEQUENCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BDB_MIPI_SEQUENCE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x0, x1
	mov	x1, x8
	bl	_find_section
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	w1, [x0]
	cmp	w1, #4
	b.lt	LBB0_5
; %bb.3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_DRM_ERROR
LBB0_4:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_DRM_DEBUG_KMS
LBB0_5:
	str	x1, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_find_panel_sequence_block
	cbz	x0, LBB0_19
; %bb.6:
	ldr	w1, [sp, #12]
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_kmemdup
	cbz	x0, LBB0_19
; %bb.7:
	mov	x21, x0
	mov	w24, #0
Lloh15:
	adrp	x26, _MIPI_SEQ_END@GOTPAGE
Lloh16:
	ldr	x26, [x26, _MIPI_SEQ_END@GOTPAGEOFF]
Lloh17:
	adrp	x27, _MIPI_SEQ_MAX@GOTPAGE
Lloh18:
	ldr	x27, [x27, _MIPI_SEQ_MAX@GOTPAGEOFF]
Lloh19:
	adrp	x28, _MIPI_SEQ_TEAR_ON@GOTPAGE
Lloh20:
	ldr	x28, [x28, _MIPI_SEQ_TEAR_ON@GOTPAGEOFF]
Lloh21:
	adrp	x22, _MIPI_SEQ_TEAR_OFF@GOTPAGE
Lloh22:
	ldr	x22, [x22, _MIPI_SEQ_TEAR_OFF@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	bl	_goto_next_sequence
	mov	x24, x0
	cbz	w0, LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x21, w24, sxtw #3
	ldr	x23, [x25]
	ldr	x8, [x26]
	cmp	x23, x8
	b.eq	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x27]
	cmp	x23, x8
	b.hs	LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x28]
	ldr	x9, [x22]
	cmp	x23, x8
	ccmp	x23, x9, #4, ne
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x23, [sp]
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #16]
	str	x25, [x8, x23, lsl #3]
	ldr	w8, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x21
	mov	x1, x24
	cmp	w8, #3
	b.lt	LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_goto_next_sequence_v3
	mov	x24, x0
	cbnz	w0, LBB0_9
LBB0_15:
Lloh25:
	adrp	x0, l_.str.5@PAGE
Lloh26:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_16:
	str	x21, [x19, #24]
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	stp	w9, w8, [x19, #32]
	mov	x0, x19
	bl	_fixup_mipi_sequences
Lloh27:
	adrp	x0, l_.str.6@PAGE
Lloh28:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	b	LBB0_19
LBB0_17:
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_18:
	mov	x1, x23
	bl	_DRM_ERROR
	mov	x0, x21
	bl	_kfree
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_DSI_GENERIC_PANEL_ID,8,3  ; @MIPI_DSI_GENERIC_PANEL_ID
	.comm	_BDB_MIPI_SEQUENCE,4,2          ; @BDB_MIPI_SEQUENCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No MIPI Sequence found, parsing complete\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to parse MIPI Sequence Block v%u\n"

l_.str.2:                               ; @.str.2
	.asciz	"Found MIPI sequence block v%u\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MIPI_SEQ_END,8,3               ; @MIPI_SEQ_END
	.comm	_MIPI_SEQ_MAX,8,3               ; @MIPI_SEQ_MAX
l_.str.3:                               ; @.str.3
	.asciz	"Unknown sequence %u\n"

	.comm	_MIPI_SEQ_TEAR_ON,8,3           ; @MIPI_SEQ_TEAR_ON
	.comm	_MIPI_SEQ_TEAR_OFF,8,3          ; @MIPI_SEQ_TEAR_OFF
l_.str.4:                               ; @.str.4
	.asciz	"Unsupported sequence %u\n"

l_.str.5:                               ; @.str.5
	.asciz	"Invalid sequence %u\n"

l_.str.6:                               ; @.str.6
	.asciz	"MIPI related VBT parsing complete\n"

	.no_dead_strip	_parse_mipi_sequence
.subsections_via_symbols
