	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ml86v7667_init
_ml86v7667_init:                        ## @ml86v7667_init
	.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, -56(%rbp)                 ## 8-byte Spill
	addq	$4, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r15
	movq	_MRA_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MRA_OUTPUT_MODE_MASK@GOTPCREL(%rip), %rax
	movq	_MRA_REGISTER_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %edx
	orl	%ecx, %edx
	movq	_MRA_ITUR_BT656@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_ml86v7667_mask_set
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_PLLR1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PLLR1_FIXED_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_ml86v7667_mask_set
	movl	%eax, %ebx
	movq	_ADC2_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ADC2_CLAMP_VOLTAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$7, %edi
	callq	_ADC2_CLAMP_VOLTAGE
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_ml86v7667_mask_set
	movl	%eax, %r13d
	movq	_SSEPL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSEPL_LUMINANCE_ONOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_ml86v7667_mask_set
	movl	%eax, %r12d
	movq	_CLC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CLC_CONTRAST_ONOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_ml86v7667_mask_set
	movl	%eax, %r14d
	movq	_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	%r13d, %ebx
	orl	%r12d, %ebx
	orl	%r14d, %ebx
	movq	_STATUS_NTSCPAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %r14
	movq	%r14, %rcx
	andl	%eax, %edx
	je	LBB0_3
## %bb.2:
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, (%r12)
	movq	_MRC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MRC_AUTOSELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_ml86v7667_mask_set
	orl	%eax, %ebx
	movl	(%r14), %eax
	andl	(%r12), %eax
	jne	LBB0_4
## %bb.5:
	movq	_MRA_PAL_BT601@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_MRA_NTSC_BT601@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ecx
	movq	_MRA_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MRA_INPUT_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ml86v7667_mask_set
	orl	%eax, %ebx
	movl	%ebx, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MRA_REG,4,2                    ## @MRA_REG
	.comm	_MRA_OUTPUT_MODE_MASK,4,2       ## @MRA_OUTPUT_MODE_MASK
	.comm	_MRA_REGISTER_MODE,4,2          ## @MRA_REGISTER_MODE
	.comm	_MRA_ITUR_BT656,4,2             ## @MRA_ITUR_BT656
	.comm	_PLLR1_REG,4,2                  ## @PLLR1_REG
	.comm	_PLLR1_FIXED_CLOCK,4,2          ## @PLLR1_FIXED_CLOCK
	.comm	_ADC2_REG,4,2                   ## @ADC2_REG
	.comm	_ADC2_CLAMP_VOLTAGE_MASK,4,2    ## @ADC2_CLAMP_VOLTAGE_MASK
	.comm	_SSEPL_REG,4,2                  ## @SSEPL_REG
	.comm	_SSEPL_LUMINANCE_ONOFF,4,2      ## @SSEPL_LUMINANCE_ONOFF
	.comm	_CLC_REG,4,2                    ## @CLC_REG
	.comm	_CLC_CONTRAST_ONOFF,4,2         ## @CLC_CONTRAST_ONOFF
	.comm	_STATUS_REG,4,2                 ## @STATUS_REG
	.comm	_STATUS_NTSCPAL,4,2             ## @STATUS_NTSCPAL
	.comm	_V4L2_STD_625_50,4,2            ## @V4L2_STD_625_50
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_MRC_REG,4,2                    ## @MRC_REG
	.comm	_MRC_AUTOSELECT,4,2             ## @MRC_AUTOSELECT
	.comm	_MRA_NTSC_BT601,4,2             ## @MRA_NTSC_BT601
	.comm	_MRA_PAL_BT601,4,2              ## @MRA_PAL_BT601
	.comm	_MRA_INPUT_MODE_MASK,4,2        ## @MRA_INPUT_MODE_MASK
	.no_dead_strip	_ml86v7667_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ml86v7667_init
_ml86v7667_init:                        ; @ml86v7667_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	add	x0, x0, #4
	bl	_v4l2_get_subdevdata
	mov	x19, x0
Lloh0:
	adrp	x26, _MRA_REG@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MRA_REG@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh2:
	adrp	x8, _MRA_OUTPUT_MODE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MRA_OUTPUT_MODE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MRA_REGISTER_MODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MRA_REGISTER_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh8:
	adrp	x8, _MRA_ITUR_BT656@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MRA_ITUR_BT656@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w3, w8, w9
	bl	_ml86v7667_mask_set
	mov	x21, x0
Lloh11:
	adrp	x8, _PLLR1_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PLLR1_REG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _PLLR1_FIXED_CLOCK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PLLR1_FIXED_CLOCK@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_ml86v7667_mask_set
	mov	x22, x0
Lloh17:
	adrp	x8, _ADC2_REG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ADC2_REG@GOTPAGEOFF]
Lloh19:
	ldr	w23, [x8]
Lloh20:
	adrp	x8, _ADC2_CLAMP_VOLTAGE_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ADC2_CLAMP_VOLTAGE_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w24, [x8]
	mov	w0, #7
	bl	_ADC2_CLAMP_VOLTAGE
	mov	x3, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_ml86v7667_mask_set
	mov	x23, x0
Lloh23:
	adrp	x8, _SSEPL_REG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SSEPL_REG@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _SSEPL_LUMINANCE_ONOFF@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SSEPL_LUMINANCE_ONOFF@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_ml86v7667_mask_set
	mov	x24, x0
Lloh29:
	adrp	x8, _CLC_REG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CLC_REG@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _CLC_CONTRAST_ONOFF@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CLC_CONTRAST_ONOFF@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_ml86v7667_mask_set
	mov	x25, x0
Lloh35:
	adrp	x8, _STATUS_REG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _STATUS_REG@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_2
; %bb.1:
	orr	w8, w22, w21
	orr	w8, w8, w23
	orr	w8, w8, w24
	orr	w21, w8, w25
Lloh38:
	adrp	x8, _STATUS_NTSCPAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _STATUS_NTSCPAL@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _V4L2_STD_625_50@GOTPAGE
Lloh42:
	ldr	x9, [x9, _V4L2_STD_625_50@GOTPAGEOFF]
Lloh43:
	adrp	x22, _V4L2_STD_525_60@GOTPAGE
Lloh44:
	ldr	x22, [x22, _V4L2_STD_525_60@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x22, x9, eq
	ldr	w8, [x8]
	str	w8, [x20]
Lloh45:
	adrp	x8, _MRC_REG@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MRC_REG@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x8, _MRC_AUTOSELECT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MRC_AUTOSELECT@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_ml86v7667_mask_set
	orr	w21, w21, w0
	ldr	w8, [x20]
	ldr	w9, [x22]
Lloh51:
	adrp	x10, _MRA_NTSC_BT601@GOTPAGE
Lloh52:
	ldr	x10, [x10, _MRA_NTSC_BT601@GOTPAGEOFF]
Lloh53:
	adrp	x11, _MRA_PAL_BT601@GOTPAGE
Lloh54:
	ldr	x11, [x11, _MRA_PAL_BT601@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w3, [x8]
	ldr	w1, [x26]
Lloh55:
	adrp	x8, _MRA_INPUT_MODE_MASK@GOTPAGE
Lloh56:
	ldr	x8, [x8, _MRA_INPUT_MODE_MASK@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ml86v7667_mask_set
	orr	w0, w21, w0
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_MRA_REG,4,2                    ; @MRA_REG
	.comm	_MRA_OUTPUT_MODE_MASK,4,2       ; @MRA_OUTPUT_MODE_MASK
	.comm	_MRA_REGISTER_MODE,4,2          ; @MRA_REGISTER_MODE
	.comm	_MRA_ITUR_BT656,4,2             ; @MRA_ITUR_BT656
	.comm	_PLLR1_REG,4,2                  ; @PLLR1_REG
	.comm	_PLLR1_FIXED_CLOCK,4,2          ; @PLLR1_FIXED_CLOCK
	.comm	_ADC2_REG,4,2                   ; @ADC2_REG
	.comm	_ADC2_CLAMP_VOLTAGE_MASK,4,2    ; @ADC2_CLAMP_VOLTAGE_MASK
	.comm	_SSEPL_REG,4,2                  ; @SSEPL_REG
	.comm	_SSEPL_LUMINANCE_ONOFF,4,2      ; @SSEPL_LUMINANCE_ONOFF
	.comm	_CLC_REG,4,2                    ; @CLC_REG
	.comm	_CLC_CONTRAST_ONOFF,4,2         ; @CLC_CONTRAST_ONOFF
	.comm	_STATUS_REG,4,2                 ; @STATUS_REG
	.comm	_STATUS_NTSCPAL,4,2             ; @STATUS_NTSCPAL
	.comm	_V4L2_STD_625_50,4,2            ; @V4L2_STD_625_50
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_MRC_REG,4,2                    ; @MRC_REG
	.comm	_MRC_AUTOSELECT,4,2             ; @MRC_AUTOSELECT
	.comm	_MRA_NTSC_BT601,4,2             ; @MRA_NTSC_BT601
	.comm	_MRA_PAL_BT601,4,2              ; @MRA_PAL_BT601
	.comm	_MRA_INPUT_MODE_MASK,4,2        ; @MRA_INPUT_MODE_MASK
	.no_dead_strip	_ml86v7667_init
.subsections_via_symbols
