	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_panel_sequence_block
_find_panel_sequence_block:             ## @find_panel_sequence_block
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_get_blocksize
	movl	8(%rbx), %r9d
	xorl	%r11d, %r11d
	cmpl	$3, %r9d
	setge	%cl
	movq	_MAX_MIPI_CONFIGURATIONS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	testl	%r10d, %r10d
	jle	LBB0_11
## %bb.1:
	testl	%eax, %eax
	jle	LBB0_11
## %bb.2:
	movb	%cl, %r11b
	leal	(%r11,%r11), %r8d
	addl	$3, %r8d
	shlq	$5, %r11
	addq	(%rbx), %r11
	xorl	%edi, %edi
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rdi,%r8), %edx
	cmpl	%eax, %edx
	jg	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%edi, %rsi
	cmpl	$3, %r9d
	movl	8(%r11,%rsi,8), %ecx
	leal	(%rcx,%rdx), %edi
	cmpl	%eax, %edi
	jg	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r15, (%r11,%rsi,8)
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r10d, %ebx
	jge	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	%eax, %edi
	jl	LBB0_5
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
LBB0_12:
	callq	_DRM_ERROR
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_12
LBB0_10:
	movl	%ecx, (%r14)
	movslq	%edx, %rax
	leaq	(%r11,%rax,8), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MIPI_CONFIGURATIONS,4,2    ## @MAX_MIPI_CONFIGURATIONS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid sequence block (header)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid sequence block\n"

L_.str.2:                               ## @.str.2
	.asciz	"Sequence block detected but no valid configuration\n"

	.no_dead_strip	_find_panel_sequence_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_panel_sequence_block
_find_panel_sequence_block:             ; @find_panel_sequence_block
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_get_blocksize
	ldr	w8, [x21, #8]
	mov	w9, #3
	mov	w10, #5
	cmp	w8, #2
	csel	w9, w10, w9, gt
	cset	w11, gt
Lloh0:
	adrp	x10, _MAX_MIPI_CONFIGURATIONS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MAX_MIPI_CONFIGURATIONS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w10, #1
	ccmp	w0, #1, #8, ge
	b.ge	LBB0_4
LBB0_1:
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_2:
	bl	_DRM_ERROR
	mov	x0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w13, #0
	ldr	x12, [x21]
	add	x11, x12, x11, lsl #5
	mov	w12, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w14, w13, w9
	cmp	w14, w0
	b.gt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x15, x11, w13, sxtw #3
	cmp	w8, #3
	ldr	w16, [x15, #8]
	add	w13, w16, w14
	cmp	w13, w0
	b.gt	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x15, [x15]
	cmp	x15, x20
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w12, w10
	b.ge	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w12, w12, #1
	cmp	w13, w0
	b.lt	LBB0_5
	b	LBB0_1
LBB0_10:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_2
LBB0_11:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_12:
	str	w16, [x19]
	add	x0, x11, w14, sxtw #3
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MIPI_CONFIGURATIONS,4,2    ; @MAX_MIPI_CONFIGURATIONS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid sequence block (header)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid sequence block\n"

l_.str.2:                               ; @.str.2
	.asciz	"Sequence block detected but no valid configuration\n"

	.no_dead_strip	_find_panel_sequence_block
.subsections_via_symbols
