	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9v032_registered
_mt9v032_registered:                    ## @mt9v032_registered
	.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	%rdi, %rbx
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_mt9v032
	movq	%rax, %r15
	leaq	4(%r14), %rbx
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r15, %rdi
	callq	_mt9v032_power_on
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	8(%r15), %edi
	movq	_MT9V032_CHIP_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_mt9v032_power_off
	testl	%r13d, %r13d
	js	LBB0_5
## %bb.3:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_mt9v032_versions@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movq	(%rdi,%r14), %rax
	cmpq	-56(%rbp), %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$16, %r14
	cmpq	%rax, %r12
	jb	LBB0_8
	jmp	LBB0_10
LBB0_1:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_9:
	addq	%r14, %rdi
	movq	%rdi, (%r15)
LBB0_10:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movl	8(%rax), %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r15, %rdi
	callq	_mt9v032_configure_pixel_rate
	jmp	LBB0_13
LBB0_11:
	movq	-56(%rbp), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Probing MT9V032 at address 0x%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"MT9V032 power up failed\n"

	.comm	_MT9V032_CHIP_VERSION,4,2       ## @MT9V032_CHIP_VERSION
L_.str.2:                               ## @.str.2
	.asciz	"Failed reading chip version\n"

	.comm	_mt9v032_versions,8,3           ## @mt9v032_versions
L_.str.3:                               ## @.str.3
	.asciz	"Unsupported chip version 0x%04x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.4:                               ## @.str.4
	.asciz	"%s detected at address 0x%02x\n"

	.no_dead_strip	_mt9v032_registered
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9v032_registered
_mt9v032_registered:                    ; @mt9v032_registered
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	bl	_v4l2_get_subdevdata
	mov	x22, x0
	mov	x0, x19
	bl	_to_mt9v032
	mov	x21, x0
	mov	x19, x22
	ldr	w2, [x19], #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x21
	bl	_mt9v032_power_on
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	w0, [x21, #8]
Lloh2:
	adrp	x8, _MT9V032_CHIP_VERSION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT9V032_CHIP_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_regmap_read
	mov	x20, x0
	mov	x0, x21
	bl	_mt9v032_power_off
	tbnz	w20, #31, LBB0_9
; %bb.2:
Lloh5:
	adrp	x23, _mt9v032_versions@GOTPAGE
Lloh6:
	ldr	x23, [x23, _mt9v032_versions@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_6
; %bb.3:
	mov	x24, #0
	mov	x25, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	ldr	x8, [x0, x24]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	bl	_ARRAY_SIZE
	add	x24, x24, #16
	cmp	x25, w0, uxtw
	b.lo	LBB0_4
LBB0_6:
	ldr	x8, [x21]
	cbz	x8, LBB0_12
LBB0_7:
	ldr	w2, [x8, #8]
	ldr	w8, [x22]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.4@PAGE
Lloh8:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x21
	bl	_mt9v032_configure_pixel_rate
	b	LBB0_13
LBB0_8:
	mov	x20, x0
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_11:
	add	x8, x0, x24
	str	x8, [x21]
	ldr	x8, [x21]
	cbnz	x8, LBB0_7
LBB0_12:
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Probing MT9V032 at address 0x%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"MT9V032 power up failed\n"

	.comm	_MT9V032_CHIP_VERSION,4,2       ; @MT9V032_CHIP_VERSION
l_.str.2:                               ; @.str.2
	.asciz	"Failed reading chip version\n"

	.comm	_mt9v032_versions,8,3           ; @mt9v032_versions
l_.str.3:                               ; @.str.3
	.asciz	"Unsupported chip version 0x%04x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.4:                               ; @.str.4
	.asciz	"%s detected at address 0x%02x\n"

	.no_dead_strip	_mt9v032_registered
.subsections_via_symbols
