	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_fimc_lite_entity
_register_fimc_lite_entity:             ## @register_fimc_lite_entity
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_FIMC_LITE_MAX_DEVS@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	cmpq	(%rcx), %rax
	jae	LBB0_2
## %bb.1:
	movq	8(%r14), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rcx,%rax,8)
	setne	%dil
LBB0_2:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_GRP_ID_FLITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	callq	_fimc_md_pipeline_create
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_v4l2_set_subdev_hostdata
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_device_register_subdev
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	movq	(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_err
	jmp	LBB0_10
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	movq	8(%r14), %rax
	movq	(%r15), %rcx
	movq	%r15, (%rax,%rcx,8)
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_FIMC_LITE_MAX_DEVS,8,3         ## @FIMC_LITE_MAX_DEVS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GRP_ID_FLITE,4,2               ## @GRP_ID_FLITE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register FIMC.LITE%d\n"

	.no_dead_strip	_register_fimc_lite_entity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_fimc_lite_entity
_register_fimc_lite_entity:             ; @register_fimc_lite_entity
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _FIMC_LITE_MAX_DEVS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FIMC_LITE_MAX_DEVS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_5
; %bb.1:
	ldr	x9, [x19, #8]
	ldr	x8, [x9, x8, lsl #3]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w21, w8
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
LBB0_5:
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_6:
Lloh5:
	adrp	x8, _GRP_ID_FLITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GRP_ID_FLITE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	x21, x20
	str	w8, [x21, #8]!
	mov	x0, x19
	bl	_fimc_md_pipeline_create
	cbz	x0, LBB0_9
; %bb.7:
	mov	x1, x0
	mov	x0, x21
	bl	_v4l2_set_subdev_hostdata
	mov	x0, x19
	mov	x1, x21
	bl	_v4l2_device_register_subdev
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.8:
	ldr	x2, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_v4l2_err
	b	LBB0_4
LBB0_9:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_10:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	str	x20, [x8, x9, lsl #3]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FIMC_LITE_MAX_DEVS,8,3         ; @FIMC_LITE_MAX_DEVS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GRP_ID_FLITE,4,2               ; @GRP_ID_FLITE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register FIMC.LITE%d\n"

	.no_dead_strip	_register_fimc_lite_entity
.subsections_via_symbols
