	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov511_configure
_ov511_configure:                       ## @ov511_configure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$256, %rsp                      ## imm = 0x100
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_R51x_SYS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	$127, -76(%rbp)
	movq	_R51x_SYS_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -72(%rbp)
	movl	$1, -68(%rbp)
	movl	%eax, -64(%rbp)
	movl	$127, -60(%rbp)
	movl	%ecx, -56(%rbp)
	movl	$1, -52(%rbp)
	movl	%eax, -48(%rbp)
	movl	$63, -44(%rbp)
	movl	%ecx, -40(%rbp)
	movl	$1, -36(%rbp)
	movl	%eax, -32(%rbp)
	movl	$61, -28(%rbp)
	movq	_R511_DRAM_FLOW_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -144(%rbp)
	movl	$1, -140(%rbp)
	movq	_R51x_SYS_SNAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -136(%rbp)
	movl	$0, -132(%rbp)
	movl	%ecx, -128(%rbp)
	movl	$2, -124(%rbp)
	movl	%ecx, -120(%rbp)
	movl	$0, -116(%rbp)
	movq	_R511_FIFO_OPTS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -112(%rbp)
	movl	$31, -108(%rbp)
	movq	_R511_COMP_EN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, -104(%rbp)
	movl	$0, -100(%rbp)
	movq	_R511_COMP_LUT_EN@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movl	%edi, -96(%rbp)
	movl	$3, -92(%rbp)
	movl	%eax, -208(%rbp)
	movl	$255, -204(%rbp)
	movl	%ecx, -200(%rbp)
	movl	$0, -196(%rbp)
	movl	%ecx, -192(%rbp)
	movl	$2, -188(%rbp)
	movl	%ecx, -184(%rbp)
	movl	$0, -180(%rbp)
	movl	%edx, -176(%rbp)
	movl	$255, -172(%rbp)
	movl	%esi, -168(%rbp)
	movl	$0, -164(%rbp)
	movl	%edi, -160(%rbp)
	movl	$3, -156(%rbp)
	movaps	l___const.ov511_configure.compress_511+48(%rip), %xmm0
	movaps	%xmm0, -224(%rbp)
	movaps	l___const.ov511_configure.compress_511+32(%rip), %xmm0
	movaps	%xmm0, -240(%rbp)
	movaps	l___const.ov511_configure.compress_511+16(%rip), %xmm0
	movaps	%xmm0, -256(%rbp)
	movaps	l___const.ov511_configure.compress_511(%rip), %xmm0
	movaps	%xmm0, -272(%rbp)
	movq	_D_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_R51x_SYS_CUST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_reg_r
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_PDEBUG
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write_regvals
	movl	(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.3:
	leaq	-208(%rbp), %rbx
	jmp	LBB0_4
LBB0_1:
	leaq	-144(%rbp), %rbx
LBB0_4:
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write_regvals
LBB0_5:
	leaq	-272(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write_regvals
	movq	%r14, %rdi
	callq	_ov51x_upload_quan_tables
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$256, %rsp                      ## imm = 0x100
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_R51x_SYS_RESET,4,2             ## @R51x_SYS_RESET
	.comm	_R51x_SYS_INIT,4,2              ## @R51x_SYS_INIT
	.comm	_R511_DRAM_FLOW_CTL,4,2         ## @R511_DRAM_FLOW_CTL
	.comm	_R51x_SYS_SNAP,4,2              ## @R51x_SYS_SNAP
	.comm	_R511_FIFO_OPTS,4,2             ## @R511_FIFO_OPTS
	.comm	_R511_COMP_EN,4,2               ## @R511_COMP_EN
	.comm	_R511_COMP_LUT_EN,4,2           ## @R511_COMP_LUT_EN
	.section	__TEXT,__const
	.p2align	4                               ## @__const.ov511_configure.compress_511
l___const.ov511_configure.compress_511:
	.long	112                             ## 0x70
	.long	31                              ## 0x1f
	.long	113                             ## 0x71
	.long	5                               ## 0x5
	.long	114                             ## 0x72
	.long	6                               ## 0x6
	.long	115                             ## 0x73
	.long	6                               ## 0x6
	.long	116                             ## 0x74
	.long	20                              ## 0x14
	.long	117                             ## 0x75
	.long	3                               ## 0x3
	.long	118                             ## 0x76
	.long	4                               ## 0x4
	.long	119                             ## 0x77
	.long	4                               ## 0x4

	.comm	_D_PROBE,4,2                    ## @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device custom id %x"

	.comm	_R51x_SYS_CUST_ID,4,2           ## @R51x_SYS_CUST_ID
	.no_dead_strip	_ov511_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov511_configure
_ov511_configure:                       ; @ov511_configure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _R51x_SYS_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R51x_SYS_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #127
	stp	w8, w9, [x29, #-96]
Lloh6:
	adrp	x10, _R51x_SYS_INIT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _R51x_SYS_INIT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	mov	w11, #1
	stp	w10, w11, [x29, #-88]
	stp	w8, w9, [x29, #-80]
	stp	w10, w11, [x29, #-72]
	mov	w9, #63
	stp	w8, w9, [x29, #-64]
	stp	w10, w11, [x29, #-56]
	mov	w9, #61
	stp	w8, w9, [x29, #-48]
Lloh9:
	adrp	x8, _R511_DRAM_FLOW_CTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R511_DRAM_FLOW_CTL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w11, [sp, #120]
Lloh12:
	adrp	x9, _R51x_SYS_SNAP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _R51x_SYS_SNAP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, wzr, [sp, #128]
	mov	w10, #2
	stp	w9, w10, [sp, #136]
	stp	w9, wzr, [sp, #144]
Lloh15:
	adrp	x11, _R511_FIFO_OPTS@GOTPAGE
Lloh16:
	ldr	x11, [x11, _R511_FIFO_OPTS@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	mov	w12, #31
	stp	w11, w12, [sp, #152]
Lloh18:
	adrp	x12, _R511_COMP_EN@GOTPAGE
Lloh19:
	ldr	x12, [x12, _R511_COMP_EN@GOTPAGEOFF]
Lloh20:
	ldr	w12, [x12]
Lloh21:
	adrp	x13, _R511_COMP_LUT_EN@GOTPAGE
Lloh22:
	ldr	x13, [x13, _R511_COMP_LUT_EN@GOTPAGEOFF]
	stp	w12, wzr, [sp, #160]
Lloh23:
	ldr	w13, [x13]
	mov	w14, #3
	stp	w13, w14, [sp, #168]
	mov	w15, #255
	stp	w8, w15, [sp, #64]
	stp	w9, wzr, [sp, #72]
	stp	w9, w10, [sp, #80]
	stp	w9, wzr, [sp, #88]
	stp	w11, w15, [sp, #96]
	stp	w12, wzr, [sp, #104]
	stp	w13, w14, [sp, #112]
Lloh24:
	adrp	x8, l___const.ov511_configure.compress_511@PAGE
Lloh25:
	add	x8, x8, l___const.ov511_configure.compress_511@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp]
	ldp	q0, q1, [x8, #32]
	stp	q0, q1, [sp, #32]
Lloh26:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh28:
	ldr	w20, [x8]
Lloh29:
	adrp	x8, _R51x_SYS_CUST_ID@GOTPAGE
Lloh30:
	ldr	x8, [x8, _R51x_SYS_CUST_ID@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_reg_r
	mov	x2, x0
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_PDEBUG
	sub	x0, x29, #96
	bl	_ARRAY_SIZE
	mov	x2, x0
	sub	x1, x29, #96
	mov	x0, x19
	bl	_write_regvals
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
	add	x20, sp, #64
	b	LBB0_4
LBB0_3:
	add	x20, sp, #120
LBB0_4:
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_write_regvals
LBB0_5:
	mov	x0, sp
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x1, sp
	mov	x0, x19
	bl	_write_regvals
	mov	x0, x19
	bl	_ov51x_upload_quan_tables
	ldur	x8, [x29, #-40]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_R51x_SYS_RESET,4,2             ; @R51x_SYS_RESET
	.comm	_R51x_SYS_INIT,4,2              ; @R51x_SYS_INIT
	.comm	_R511_DRAM_FLOW_CTL,4,2         ; @R511_DRAM_FLOW_CTL
	.comm	_R51x_SYS_SNAP,4,2              ; @R51x_SYS_SNAP
	.comm	_R511_FIFO_OPTS,4,2             ; @R511_FIFO_OPTS
	.comm	_R511_COMP_EN,4,2               ; @R511_COMP_EN
	.comm	_R511_COMP_LUT_EN,4,2           ; @R511_COMP_LUT_EN
	.section	__TEXT,__const
	.p2align	2                               ; @__const.ov511_configure.compress_511
l___const.ov511_configure.compress_511:
	.long	112                             ; 0x70
	.long	31                              ; 0x1f
	.long	113                             ; 0x71
	.long	5                               ; 0x5
	.long	114                             ; 0x72
	.long	6                               ; 0x6
	.long	115                             ; 0x73
	.long	6                               ; 0x6
	.long	116                             ; 0x74
	.long	20                              ; 0x14
	.long	117                             ; 0x75
	.long	3                               ; 0x3
	.long	118                             ; 0x76
	.long	4                               ; 0x4
	.long	119                             ; 0x77
	.long	4                               ; 0x4

	.comm	_D_PROBE,4,2                    ; @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device custom id %x"

	.comm	_R51x_SYS_CUST_ID,4,2           ; @R51x_SYS_CUST_ID
	.no_dead_strip	_ov511_configure
.subsections_via_symbols
