	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fixup_mipi_sequences
_fixup_mipi_sequences:                  ## @fixup_mipi_sequences
	.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
	movq	%rdi, %rbx
	callq	_IS_VALLEYVIEW
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	24(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_9
## %bb.2:
	cmpl	$1, (%rbx)
	jne	LBB0_9
## %bb.3:
	movq	8(%rbx), %rax
	movq	_MIPI_SEQ_INIT_OTP@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_9
## %bb.4:
	movq	_MIPI_SEQ_ASSERT_RESET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_9
## %bb.5:
	movq	_MIPI_SEQ_DEASSERT_RESET@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_get_init_otp_deassert_fragment_len
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	8(%rbx), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %r15
	leal	1(%r14), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_kmemdup
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%r13), %rcx
	movq	%rcx, (%rax)
	movq	_MIPI_SEQ_ELEM_END@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r14d, %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	8(%rbx), %rcx
	movq	(%r13), %rsi
	movq	%rax, (%rcx,%rsi,8)
	movq	(%r12), %rax
	movq	%rax, -8(%r15,%rdx,8)
	leaq	(%r15,%rdx,8), %rax
	addq	$-8, %rax
	movq	8(%rbx), %rcx
	movq	(%r12), %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPI_SEQ_INIT_OTP,8,3          ## @MIPI_SEQ_INIT_OTP
	.comm	_MIPI_SEQ_ASSERT_RESET,8,3      ## @MIPI_SEQ_ASSERT_RESET
	.comm	_MIPI_SEQ_DEASSERT_RESET,8,3    ## @MIPI_SEQ_DEASSERT_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using init OTP fragment to deassert reset\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MIPI_SEQ_ELEM_END,8,3          ## @MIPI_SEQ_ELEM_END
	.no_dead_strip	_fixup_mipi_sequences
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fixup_mipi_sequences
_fixup_mipi_sequences:                  ; @fixup_mipi_sequences
	.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	x19, x0
	bl	_IS_VALLEYVIEW
	cbz	w0, LBB0_9
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbnz	x8, LBB0_9
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.3:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x22, _MIPI_SEQ_INIT_OTP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MIPI_SEQ_INIT_OTP@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_9
; %bb.4:
Lloh2:
	adrp	x9, _MIPI_SEQ_ASSERT_RESET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MIPI_SEQ_ASSERT_RESET@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_9
; %bb.5:
Lloh5:
	adrp	x23, _MIPI_SEQ_DEASSERT_RESET@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MIPI_SEQ_DEASSERT_RESET@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	x8, [x8, x9, lsl #3]
	cbnz	x8, LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_get_init_otp_deassert_fragment_len
	cbz	w0, LBB0_9
; %bb.7:
	mov	x20, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	ldr	x21, [x8, x9, lsl #3]
	add	w1, w20, #1
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_kmemdup
	str	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x23]
	str	x8, [x0]
Lloh12:
	adrp	x8, _MIPI_SEQ_ELEM_END@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MIPI_SEQ_ELEM_END@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	sbfiz	x9, x20, #3, #32
	str	x8, [x0, x9]
	ldr	x8, [x19, #8]
	ldr	x10, [x23]
	str	x0, [x8, x10, lsl #3]
	ldr	x8, [x22]
	add	x9, x21, x9
	str	x8, [x9, #-8]!
	ldr	x8, [x19, #8]
	ldr	x10, [x22]
	str	x9, [x8, x10, lsl #3]
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_SEQ_INIT_OTP,8,3          ; @MIPI_SEQ_INIT_OTP
	.comm	_MIPI_SEQ_ASSERT_RESET,8,3      ; @MIPI_SEQ_ASSERT_RESET
	.comm	_MIPI_SEQ_DEASSERT_RESET,8,3    ; @MIPI_SEQ_DEASSERT_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using init OTP fragment to deassert reset\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MIPI_SEQ_ELEM_END,8,3          ; @MIPI_SEQ_ELEM_END
	.no_dead_strip	_fixup_mipi_sequences
.subsections_via_symbols
