	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov518_configure
_ov518_configure:                       ## @ov518_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_R51x_SYS_CUST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_reg_r
	andl	$31, %eax
	movl	%eax, (%rbx)
	movq	_D_PROBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_gspca_dbg
	leaq	_ov518_configure.init_518(%rip), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_write_regvals
	movq	_R518_GPIO_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$2, %ecx
	callq	_reg_w_mask
	movl	4(%rbx), %eax
	cmpl	$132, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$131, %eax
	jne	LBB0_5
## %bb.3:
	leaq	_ov518_configure.norm_518_p(%rip), %r14
	jmp	LBB0_4
LBB0_1:
	leaq	_ov518_configure.norm_518(%rip), %r14
LBB0_4:
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_write_regvals
LBB0_5:
	movq	%rbx, %rdi
	callq	_ov51x_upload_quan_tables
	movq	%rbx, %rdi
	movl	$47, %esi
	movl	$128, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_reg_w                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @ov518_configure.init_518
_ov518_configure.init_518:
	.long	129                             ## 0x81
	.long	64                              ## 0x40
	.long	130                             ## 0x82
	.long	225                             ## 0xe1
	.long	129                             ## 0x81
	.long	62                              ## 0x3e
	.long	130                             ## 0x82
	.long	225                             ## 0xe1
	.long	129                             ## 0x81
	.long	0                               ## 0x0
	.long	130                             ## 0x82
	.long	225                             ## 0xe1
	.long	70                              ## 0x46
	.long	0                               ## 0x0
	.long	93                              ## 0x5d
	.long	3                               ## 0x3

	.p2align	4                               ## @ov518_configure.norm_518
_ov518_configure.norm_518:
	.long	128                             ## 0x80
	.long	2                               ## 0x2
	.long	128                             ## 0x80
	.long	1                               ## 0x1
	.long	49                              ## 0x31
	.long	15                              ## 0xf
	.long	93                              ## 0x5d
	.long	3                               ## 0x3
	.long	36                              ## 0x24
	.long	159                             ## 0x9f
	.long	37                              ## 0x25
	.long	144                             ## 0x90
	.long	32                              ## 0x20
	.long	0                               ## 0x0
	.long	81                              ## 0x51
	.long	4                               ## 0x4
	.long	113                             ## 0x71
	.long	25                              ## 0x19
	.long	47                              ## 0x2f
	.long	128                             ## 0x80

	.p2align	4                               ## @ov518_configure.norm_518_p
_ov518_configure.norm_518_p:
	.long	128                             ## 0x80
	.long	2                               ## 0x2
	.long	128                             ## 0x80
	.long	1                               ## 0x1
	.long	49                              ## 0x31
	.long	15                              ## 0xf
	.long	93                              ## 0x5d
	.long	3                               ## 0x3
	.long	36                              ## 0x24
	.long	159                             ## 0x9f
	.long	37                              ## 0x25
	.long	144                             ## 0x90
	.long	32                              ## 0x20
	.long	96                              ## 0x60
	.long	81                              ## 0x51
	.long	2                               ## 0x2
	.long	113                             ## 0x71
	.long	25                              ## 0x19
	.long	64                              ## 0x40
	.long	255                             ## 0xff
	.long	65                              ## 0x41
	.long	66                              ## 0x42
	.long	70                              ## 0x46
	.long	0                               ## 0x0
	.long	51                              ## 0x33
	.long	4                               ## 0x4
	.long	33                              ## 0x21
	.long	25                              ## 0x19
	.long	63                              ## 0x3f
	.long	16                              ## 0x10
	.long	47                              ## 0x2f
	.long	128                             ## 0x80

	.comm	_R51x_SYS_CUST_ID,4,2           ## @R51x_SYS_CUST_ID
	.comm	_D_PROBE,4,2                    ## @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device revision %d\n"

	.comm	_R518_GPIO_CTL,4,2              ## @R518_GPIO_CTL
	.no_dead_strip	_ov518_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov518_configure
_ov518_configure:                       ; @ov518_configure
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _R51x_SYS_CUST_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R51x_SYS_CUST_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_reg_r
	and	w3, w0, #0x1f
	str	w3, [x19]
Lloh3:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
Lloh8:
	adrp	x20, _ov518_configure.init_518@PAGE
Lloh9:
	add	x20, x20, _ov518_configure.init_518@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_write_regvals
Lloh10:
	adrp	x8, _R518_GPIO_CTL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _R518_GPIO_CTL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #2
	bl	_reg_w_mask
	ldr	w8, [x19, #4]
	cmp	w8, #132
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #131
	b.ne	LBB0_5
; %bb.2:
Lloh13:
	adrp	x20, _ov518_configure.norm_518_p@PAGE
Lloh14:
	add	x20, x20, _ov518_configure.norm_518_p@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x20, _ov518_configure.norm_518@PAGE
Lloh16:
	add	x20, x20, _ov518_configure.norm_518@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_write_regvals
LBB0_5:
	mov	x0, x19
	bl	_ov51x_upload_quan_tables
	mov	x0, x19
	mov	w1, #47
	mov	w2, #128
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_reg_w
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ov518_configure.init_518
_ov518_configure.init_518:
	.long	129                             ; 0x81
	.long	64                              ; 0x40
	.long	130                             ; 0x82
	.long	225                             ; 0xe1
	.long	129                             ; 0x81
	.long	62                              ; 0x3e
	.long	130                             ; 0x82
	.long	225                             ; 0xe1
	.long	129                             ; 0x81
	.long	0                               ; 0x0
	.long	130                             ; 0x82
	.long	225                             ; 0xe1
	.long	70                              ; 0x46
	.long	0                               ; 0x0
	.long	93                              ; 0x5d
	.long	3                               ; 0x3

	.p2align	2                               ; @ov518_configure.norm_518
_ov518_configure.norm_518:
	.long	128                             ; 0x80
	.long	2                               ; 0x2
	.long	128                             ; 0x80
	.long	1                               ; 0x1
	.long	49                              ; 0x31
	.long	15                              ; 0xf
	.long	93                              ; 0x5d
	.long	3                               ; 0x3
	.long	36                              ; 0x24
	.long	159                             ; 0x9f
	.long	37                              ; 0x25
	.long	144                             ; 0x90
	.long	32                              ; 0x20
	.long	0                               ; 0x0
	.long	81                              ; 0x51
	.long	4                               ; 0x4
	.long	113                             ; 0x71
	.long	25                              ; 0x19
	.long	47                              ; 0x2f
	.long	128                             ; 0x80

	.p2align	2                               ; @ov518_configure.norm_518_p
_ov518_configure.norm_518_p:
	.long	128                             ; 0x80
	.long	2                               ; 0x2
	.long	128                             ; 0x80
	.long	1                               ; 0x1
	.long	49                              ; 0x31
	.long	15                              ; 0xf
	.long	93                              ; 0x5d
	.long	3                               ; 0x3
	.long	36                              ; 0x24
	.long	159                             ; 0x9f
	.long	37                              ; 0x25
	.long	144                             ; 0x90
	.long	32                              ; 0x20
	.long	96                              ; 0x60
	.long	81                              ; 0x51
	.long	2                               ; 0x2
	.long	113                             ; 0x71
	.long	25                              ; 0x19
	.long	64                              ; 0x40
	.long	255                             ; 0xff
	.long	65                              ; 0x41
	.long	66                              ; 0x42
	.long	70                              ; 0x46
	.long	0                               ; 0x0
	.long	51                              ; 0x33
	.long	4                               ; 0x4
	.long	33                              ; 0x21
	.long	25                              ; 0x19
	.long	63                              ; 0x3f
	.long	16                              ; 0x10
	.long	47                              ; 0x2f
	.long	128                             ; 0x80

	.comm	_R51x_SYS_CUST_ID,4,2           ; @R51x_SYS_CUST_ID
	.comm	_D_PROBE,4,2                    ; @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device revision %d\n"

	.comm	_R518_GPIO_CTL,4,2              ; @R518_GPIO_CTL
	.no_dead_strip	_ov518_configure
.subsections_via_symbols
