	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_em28xx_init_camera             ## -- Begin function em28xx_init_camera
	.p2align	4, 0x90
_em28xx_init_camera:                    ## @em28xx_init_camera
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	8(%rdi), %edx
	addl	$-128, %edx
	cmpl	$4, %edx
	ja	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	(%rdi), %rcx
	leaq	(,%rcx,4), %r15
	addq	24(%rdi), %r15
	movq	16(%rdi), %r12
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_9:
	leaq	L_.str.1(%rip), %rdx
	movq	%rdx, -64(%rbp)
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -56(%rbp)
	movq	_I2C_CLIENT_SCCB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	$0, -48(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movabsq	$2061584302720, %r13            ## imm = 0x1E000000280
	movq	%r13, (%r12)
	leaq	20(%r12), %rdi
	xorl	%r14d, %r14d
	leaq	-64(%rbp), %rdx
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_v4l2_i2c_new_subdev_board
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	movq	_MEDIA_BUS_FMT_YUYV8_2X8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -72(%rbp)
	movq	%r13, -80(%rbp)
	movq	_pad@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_set_fmt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-80(%rbp), %r8
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_v4l2_subdev_call
	movq	_EM28XX_XCLK_FREQUENCY_24MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 12(%rbx)
	movq	_EM28XX_R0F_XCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_em28xx_write_reg
	movq	_EM28XX_VINMODE_YUV422_YUYV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str(%rip), %rdx
	movq	%rdx, -64(%rbp)
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	leaq	-80(%rbp), %rax
	movq	%rax, -48(%rbp)
	movabsq	$2061584302720, %rax            ## imm = 0x1E000000280
	movq	%rax, (%r12)
	movq	_EM28XX_XCLK_FREQUENCY_4_3MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 12(%rbx)
	movq	_EM28XX_R0F_XCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_em28xx_write_reg
	movl	$4300000, 8(%r12)               ## imm = 0x419CE0
	movl	$4300000, -80(%rbp)             ## imm = 0x419CE0
	leaq	20(%r12), %rdi
	xorl	%r14d, %r14d
	leaq	-64(%rbp), %rdx
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_v4l2_i2c_new_subdev_board
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_EM28XX_VINMODE_RGB8_GRBG@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	$0, 12(%r12)
	jmp	LBB0_13
LBB0_8:
	movabsq	$2199023256192, %rax            ## imm = 0x20000000280
	movq	%rax, (%r12)
	movq	_EM28XX_XCLK_FREQUENCY_48MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 12(%rbx)
	movq	_EM28XX_R0F_XCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_em28xx_write_reg
	movq	%rbx, %rdi
	callq	_em28xx_initialize_mt9m111
	movq	_EM28XX_VINMODE_YUV422_UYVY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movabsq	$4398046512384, %rax            ## imm = 0x40000000500
	movq	%rax, (%r12)
	movq	%rbx, %rdi
	callq	_em28xx_initialize_mt9m001
	movq	_EM28XX_VINMODE_RGB8_BGGR@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	$0, 12(%r12)
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mt9v011"

	.comm	_EM28XX_XCLK_FREQUENCY_4_3MHZ,4,2 ## @EM28XX_XCLK_FREQUENCY_4_3MHZ
	.comm	_EM28XX_R0F_XCLK,4,2            ## @EM28XX_R0F_XCLK
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EM28XX_VINMODE_RGB8_GRBG,4,2   ## @EM28XX_VINMODE_RGB8_GRBG
	.comm	_EM28XX_VINMODE_RGB8_BGGR,4,2   ## @EM28XX_VINMODE_RGB8_BGGR
	.comm	_EM28XX_XCLK_FREQUENCY_48MHZ,4,2 ## @EM28XX_XCLK_FREQUENCY_48MHZ
	.comm	_EM28XX_VINMODE_YUV422_UYVY,4,2 ## @EM28XX_VINMODE_YUV422_UYVY
L_.str.1:                               ## @.str.1
	.asciz	"ov2640"

	.comm	_I2C_CLIENT_SCCB,4,2            ## @I2C_CLIENT_SCCB
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_MEDIA_BUS_FMT_YUYV8_2X8,4,2    ## @MEDIA_BUS_FMT_YUYV8_2X8
	.comm	_pad,4,2                        ## @pad
	.comm	_set_fmt,4,2                    ## @set_fmt
	.comm	_EM28XX_XCLK_FREQUENCY_24MHZ,4,2 ## @EM28XX_XCLK_FREQUENCY_24MHZ
	.comm	_EM28XX_VINMODE_YUV422_YUYV,4,2 ## @EM28XX_VINMODE_YUV422_YUYV
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function em28xx_init_camera
lCPI0_0:
	.long	640                             ; 0x280
	.long	480                             ; 0x1e0
lCPI0_1:
	.long	640                             ; 0x280
	.long	512                             ; 0x200
lCPI0_2:
	.long	1280                            ; 0x500
	.long	1024                            ; 0x400
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_em28xx_init_camera
	.p2align	2
_em28xx_init_camera:                    ; @em28xx_init_camera
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 b8, -56
	.cfi_offset b9, -64
	ldr	w8, [x0, #8]
	sub	w10, w8, #128
	cmp	w10, #4
	b.hi	LBB0_4
; %bb.1:
	mov	x19, x0
	ldp	x11, x8, [x0, #24]
	ldr	x9, [x0]
	ldr	x21, [x0, #16]
	add	x20, x11, x9, lsl #2
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
Lloh2:
	adrp	x10, l_.str.1@PAGE
Lloh3:
	add	x10, x10, l_.str.1@PAGEOFF
	str	x10, [sp, #24]
	ldr	w8, [x8, x9, lsl #2]
Lloh4:
	adrp	x9, _I2C_CLIENT_SCCB@GOTPAGE
Lloh5:
	ldr	x9, [x9, _I2C_CLIENT_SCCB@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #32]
	str	xzr, [sp, #40]
Lloh7:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp, #20]
Lloh10:
	adrp	x8, lCPI0_0@PAGE
Lloh11:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	mov	x0, x21
	str	d8, [x0], #20
	add	x2, sp, #24
	mov	x1, x20
	mov	x3, #0
	bl	_v4l2_i2c_new_subdev_board
	cbz	x0, LBB0_10
; %bb.3:
Lloh12:
	adrp	x8, _MEDIA_BUS_FMT_YUYV8_2X8@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MEDIA_BUS_FMT_YUYV8_2X8@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	d8, [sp, #8]
Lloh15:
	adrp	x8, _pad@GOTPAGE
Lloh16:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _set_fmt@GOTPAGE
Lloh19:
	ldr	x8, [x8, _set_fmt@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x3, #0
	bl	_v4l2_subdev_call
Lloh21:
	adrp	x8, _EM28XX_XCLK_FREQUENCY_24MHZ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EM28XX_XCLK_FREQUENCY_24MHZ@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	str	w2, [x19, #12]
Lloh24:
	adrp	x8, _EM28XX_R0F_XCLK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EM28XX_R0F_XCLK@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_em28xx_write_reg
	mov	w0, #0
Lloh27:
	adrp	x8, _EM28XX_VINMODE_YUV422_YUYV@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EM28XX_VINMODE_YUV422_YUYV@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
Lloh31:
	adrp	x10, l_.str@PAGE
Lloh32:
	add	x10, x10, l_.str@PAGEOFF
	str	x10, [sp, #24]
	ldr	w8, [x8, x9, lsl #2]
	stp	w8, wzr, [sp, #32]
	add	x8, sp, #8
	str	x8, [sp, #40]
Lloh33:
	adrp	x8, lCPI0_0@PAGE
Lloh34:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
Lloh35:
	adrp	x8, _EM28XX_XCLK_FREQUENCY_4_3MHZ@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EM28XX_XCLK_FREQUENCY_4_3MHZ@GOTPAGEOFF]
	str	d0, [x21]
Lloh37:
	ldr	w2, [x8]
	str	w2, [x19, #12]
Lloh38:
	adrp	x8, _EM28XX_R0F_XCLK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EM28XX_R0F_XCLK@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_em28xx_write_reg
	mov	w8, #40160
	movk	w8, #65, lsl #16
	str	w8, [x21, #8]
	str	w8, [sp, #8]
	add	x0, x21, #20
	add	x2, sp, #24
	mov	x1, x20
	mov	x3, #0
	bl	_v4l2_i2c_new_subdev_board
	cbz	x0, LBB0_10
; %bb.6:
	mov	w0, #0
Lloh41:
	adrp	x8, _EM28XX_VINMODE_RGB8_GRBG@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EM28XX_VINMODE_RGB8_GRBG@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh43:
	adrp	x8, lCPI0_1@PAGE
Lloh44:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
Lloh45:
	adrp	x8, _EM28XX_XCLK_FREQUENCY_48MHZ@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EM28XX_XCLK_FREQUENCY_48MHZ@GOTPAGEOFF]
	str	d0, [x21]
Lloh47:
	ldr	w2, [x8]
	str	w2, [x19, #12]
Lloh48:
	adrp	x8, _EM28XX_R0F_XCLK@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EM28XX_R0F_XCLK@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_em28xx_write_reg
	mov	x0, x19
	bl	_em28xx_initialize_mt9m111
	mov	w0, #0
Lloh51:
	adrp	x8, _EM28XX_VINMODE_YUV422_UYVY@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EM28XX_VINMODE_YUV422_UYVY@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh53:
	adrp	x8, lCPI0_2@PAGE
Lloh54:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	str	d0, [x21]
	mov	x0, x19
	bl	_em28xx_initialize_mt9m001
	mov	w0, #0
Lloh55:
	adrp	x8, _EM28XX_VINMODE_RGB8_BGGR@GOTPAGE
Lloh56:
	ldr	x8, [x8, _EM28XX_VINMODE_RGB8_BGGR@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	stp	wzr, w8, [x21, #12]
	b	LBB0_12
LBB0_10:
Lloh57:
	adrp	x8, _ENODEV@GOTPAGE
Lloh58:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdrp	Lloh33, Lloh35
	.loh AdrpLdr	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdrp	Lloh43, Lloh45
	.loh AdrpLdr	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdr	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh57, Lloh58
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mt9v011"

	.comm	_EM28XX_XCLK_FREQUENCY_4_3MHZ,4,2 ; @EM28XX_XCLK_FREQUENCY_4_3MHZ
	.comm	_EM28XX_R0F_XCLK,4,2            ; @EM28XX_R0F_XCLK
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EM28XX_VINMODE_RGB8_GRBG,4,2   ; @EM28XX_VINMODE_RGB8_GRBG
	.comm	_EM28XX_VINMODE_RGB8_BGGR,4,2   ; @EM28XX_VINMODE_RGB8_BGGR
	.comm	_EM28XX_XCLK_FREQUENCY_48MHZ,4,2 ; @EM28XX_XCLK_FREQUENCY_48MHZ
	.comm	_EM28XX_VINMODE_YUV422_UYVY,4,2 ; @EM28XX_VINMODE_YUV422_UYVY
l_.str.1:                               ; @.str.1
	.asciz	"ov2640"

	.comm	_I2C_CLIENT_SCCB,4,2            ; @I2C_CLIENT_SCCB
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_MEDIA_BUS_FMT_YUYV8_2X8,4,2    ; @MEDIA_BUS_FMT_YUYV8_2X8
	.comm	_pad,4,2                        ; @pad
	.comm	_set_fmt,4,2                    ; @set_fmt
	.comm	_EM28XX_XCLK_FREQUENCY_24MHZ,4,2 ; @EM28XX_XCLK_FREQUENCY_24MHZ
	.comm	_EM28XX_VINMODE_YUV422_YUYV,4,2 ; @EM28XX_VINMODE_YUV422_YUYV
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
