	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3646_subdev_init
_lm3646_subdev_init:                    ## @lm3646_subdev_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	callq	_to_i2c_client
	leaq	4(%rbx), %r14
	movq	_lm3646_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
	movl	8(%rbx), %edi
	movq	_LM3646_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	%rbx, %rdi
	callq	_lm3646_init_controls
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	movq	%rbx, %rdi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_4
LBB0_1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_media_entity_pads_init
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	_MEDIA_ENT_F_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lm3646_ops,4,2                 ## @lm3646_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_LM3646_NAME,4,2                ## @LM3646_NAME
	.comm	_MEDIA_ENT_F_FLASH,4,2          ## @MEDIA_ENT_F_FLASH
	.no_dead_strip	_lm3646_subdev_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3646_subdev_init
_lm3646_subdev_init:                    ; @lm3646_subdev_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_to_i2c_client
	mov	x1, x0
	add	x20, x19, #4
Lloh0:
	adrp	x2, _lm3646_ops@GOTPAGE
Lloh1:
	ldr	x2, [x2, _lm3646_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_v4l2_i2c_subdev_init
Lloh2:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldp	w0, w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #12]
Lloh5:
	adrp	x8, _LM3646_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LM3646_NAME@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strscpy
	mov	x0, x19
	bl	_lm3646_init_controls
	mov	x21, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x19
	bl	_v4l2_ctrl_handler_free
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	mov	w1, #0
	mov	x2, #0
	bl	_media_entity_pads_init
	mov	x21, x0
	tbnz	w0, #31, LBB0_1
; %bb.3:
Lloh8:
	adrp	x8, _MEDIA_ENT_F_FLASH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MEDIA_ENT_F_FLASH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_lm3646_ops,4,2                 ; @lm3646_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_LM3646_NAME,4,2                ; @LM3646_NAME
	.comm	_MEDIA_ENT_F_FLASH,4,2          ; @MEDIA_ENT_F_FLASH
	.no_dead_strip	_lm3646_subdev_init
.subsections_via_symbols
