	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvin_mc_parse_of_graph
_rvin_mc_parse_of_graph:                ## @rvin_mc_parse_of_graph
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	addq	$32, %rdi
	callq	_mutex_lock
	movq	_RCAR_VIN_NUM@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	$0, %r14d
	movl	$0, %r13d
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_5
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	24(%rcx), %rcx
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, %r13d
	movl	(%r12), %eax
	jmp	LBB0_2
LBB0_5:
	movq	(%r15), %rdi
	movl	(%rdi), %ebx
	addq	$32, %rdi
	callq	_mutex_unlock
	cmpl	%r14d, %ebx
	jne	LBB0_11
## %bb.6:
	movq	(%r15), %rdi
	addq	$8, %rdi
	callq	_v4l2_async_notifier_init
	cmpl	$0, (%r12)
	je	LBB0_12
## %bb.7:
	xorl	%ebx, %ebx
	movq	_rvin_mc_parse_of_endpoint@GOTPCREL(%rip), %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movl	(%r12), %eax
	cmpq	%rax, %rbx
	jae	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r15), %rsi
	movq	24(%rsi), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	addq	$8, %rsi
	movl	(%r14), %r8d
	movl	$4, %edx
	movl	$1, %ecx
	callq	_v4l2_async_notifier_parse_fwnode_endpoints_by_port
	testl	%eax, %eax
	je	LBB0_8
	jmp	LBB0_16
LBB0_12:
	movq	(%r15), %rdi
	addq	$16, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_14
LBB0_11:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	(%r15), %rsi
	movq	_rvin_group_notify_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rsi)
	addq	$8, %rsi
	leaq	8(%r15), %rdi
	callq	_v4l2_async_notifier_register
	movl	%eax, %ebx
	testl	%eax, %eax
	movl	$0, %eax
	jns	LBB0_16
## %bb.15:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_vin_err
	movq	(%r15), %rdi
	addq	$8, %rdi
	callq	_v4l2_async_notifier_cleanup
	movl	%ebx, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_RCAR_VIN_NUM,4,2               ## @RCAR_VIN_NUM
	.comm	_rvin_mc_parse_of_endpoint,4,2  ## @rvin_mc_parse_of_endpoint
	.comm	_rvin_group_notify_ops,4,2      ## @rvin_group_notify_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Notifier registration failed\n"

	.no_dead_strip	_rvin_mc_parse_of_graph
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvin_mc_parse_of_graph
_rvin_mc_parse_of_graph:                ; @rvin_mc_parse_of_graph
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0]
	add	x0, x8, #32
	bl	_mutex_lock
Lloh0:
	adrp	x22, _RCAR_VIN_NUM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RCAR_VIN_NUM@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, #0
	mov	w23, #0
	mov	w21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, uxtw
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x9, [x9, #24]
	ldr	x9, [x9, x20, lsl #3]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	mov	x0, x20
	bl	_BIT
	orr	w23, w0, w23
	ldr	w8, [x22]
	b	LBB0_2
LBB0_5:
	mov	w21, #0
	mov	w23, #0
LBB0_6:
	ldr	x0, [x19]
	ldr	w20, [x0], #32
	bl	_mutex_unlock
	cmp	w20, w21
	b.ne	LBB0_15
; %bb.7:
	ldr	x8, [x19]
	add	x0, x8, #8
	bl	_v4l2_async_notifier_init
	ldr	w8, [x22]
	cbz	w8, LBB0_13
; %bb.8:
	mov	x20, #0
Lloh2:
	adrp	x24, _rvin_mc_parse_of_endpoint@GOTPAGE
Lloh3:
	ldr	x24, [x24, _rvin_mc_parse_of_endpoint@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x20, x20, #1
	ldr	w8, [x22]
	cmp	x20, x8
	b.hs	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_BIT
	tst	w0, w23
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x8, #24]
	ldr	x9, [x9, x20, lsl #3]
	ldr	w0, [x9]
	add	x1, x8, #8
	ldr	w4, [x24]
	mov	w2, #4
	mov	w3, #1
	bl	_v4l2_async_notifier_parse_fwnode_endpoints_by_port
	cbz	w0, LBB0_9
; %bb.12:
	mov	x21, x0
	b	LBB0_16
LBB0_13:
	ldr	x8, [x19]
	add	x0, x8, #16
	bl	_list_empty
	cbnz	x0, LBB0_15
; %bb.14:
	mov	x0, x19
	ldr	x1, [x0], #8
Lloh4:
	adrp	x8, _rvin_group_notify_ops@GOTPAGE
Lloh5:
	ldr	x8, [x8, _rvin_group_notify_ops@GOTPAGEOFF]
	str	x8, [x1, #8]!
	bl	_v4l2_async_notifier_register
	tbnz	w0, #31, LBB0_17
LBB0_15:
	mov	w21, #0
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	x21, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_vin_err
	ldr	x8, [x19]
	add	x0, x8, #8
	bl	_v4l2_async_notifier_cleanup
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RCAR_VIN_NUM,4,2               ; @RCAR_VIN_NUM
	.comm	_rvin_mc_parse_of_endpoint,4,2  ; @rvin_mc_parse_of_endpoint
	.comm	_rvin_group_notify_ops,4,2      ; @rvin_group_notify_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Notifier registration failed\n"

	.no_dead_strip	_rvin_mc_parse_of_graph
.subsections_via_symbols
