	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vimc_add_subdevs
_vimc_add_subdevs:                      ## @vimc_add_subdevs
	.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	$0, -56(%rbp)
	movq	16(%rdi), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movl	$1, %r15d
	leaq	-48(%rbp), %r12
	leaq	-56(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movl	-8(%rax,%r15,8), %edx
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	-48(%rbp), %edi
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	movl	-4(%rax,%r15,8), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	movl	-8(%rax,%r15,8), %esi
	movq	_PLATFORM_DEVID_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rcx
	movl	$4, %r8d
	callq	_platform_device_register_data
	movq	(%rbx), %rcx
	movq	%rax, -8(%rcx,%r15,8)
	movq	(%rbx), %rax
	movq	-8(%rax,%r15,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_vimc_comp_compare@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%rbx), %rax
	movq	-8(%rax,%r15,8), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_component_match_add
	movq	16(%rbx), %rax
	movslq	(%rax), %rcx
	leaq	1(%r15), %rdx
	cmpq	%rcx, %r15
	movq	%rdx, %r15
	jl	LBB0_2
	jmp	LBB0_6
LBB0_3:
	movq	(%rbx), %rax
	movq	-8(%rax,%r15,8), %rdi
	callq	_ERR_CAST
	movq	%rax, -56(%rbp)
	cmpl	$1, %r15d
	je	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	-16(%rax,%r15,8), %rdi
	callq	_platform_device_unregister
	decq	%r15
	cmpq	$1, %r15
	jg	LBB0_4
LBB0_6:
	movq	-56(%rbp), %rax
	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	"new pdev for %s\n"

	.comm	_PLATFORM_DEVID_AUTO,4,2        ## @PLATFORM_DEVID_AUTO
	.comm	_vimc_comp_compare,4,2          ## @vimc_comp_compare
	.no_dead_strip	_vimc_add_subdevs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vimc_add_subdevs
_vimc_add_subdevs:                      ; @vimc_add_subdevs
	.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
	str	xzr, [sp, #8]
	ldr	x8, [x0, #16]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x23, #0
	add	x20, x0, #8
	mov	x22, #-1
Lloh0:
	adrp	x24, _PLATFORM_DEVID_AUTO@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PLATFORM_DEVID_AUTO@GOTPAGEOFF]
Lloh2:
	adrp	x25, _vimc_comp_compare@GOTPAGE
Lloh3:
	ldr	x25, [x25, _vimc_comp_compare@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	w2, [x8, x23]
	mov	x0, x20
	mov	x1, x21
	bl	_dev_dbg
	ldr	w0, [sp]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	add	x8, x8, x23
	ldr	w1, [x8, #4]
	mov	w2, #4
	bl	_strscpy
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, x23]
	ldr	w2, [x24]
	mov	x3, sp
	mov	x0, x20
	mov	w4, #4
	bl	_platform_device_register_data
	ldr	x8, [x19]
	str	x0, [x8, x23]
	ldr	x8, [x19]
	ldr	x0, [x8, x23]
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x25]
	ldr	x8, [x19]
	ldr	x3, [x8, x23]
	add	x1, sp, #8
	mov	x0, x20
	bl	_component_match_add
	ldr	x8, [x19, #16]
	ldrsw	x9, [x8]
	add	x10, x22, #2
	add	x22, x22, #1
	add	x23, x23, #8
	cmp	x10, x9
	b.lt	LBB0_2
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19]
	ldr	x0, [x8, x23]
	bl	_ERR_CAST
	str	x0, [sp, #8]
	cmn	w22, #1
	b.eq	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x22, lsl #3]
	bl	_platform_device_unregister
	add	x8, x22, #1
	sub	x22, x22, #1
	cmp	x8, #1
	b.gt	LBB0_5
LBB0_6:
	ldr	x0, [sp, #8]
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"new pdev for %s\n"

	.comm	_PLATFORM_DEVID_AUTO,4,2        ; @PLATFORM_DEVID_AUTO
	.comm	_vimc_comp_compare,4,2          ; @vimc_comp_compare
	.no_dead_strip	_vimc_add_subdevs
.subsections_via_symbols
