	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvin_group_notify_unbind
_rvin_group_notify_unbind:              ## @rvin_group_notify_unbind
	.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	%rdx, %r15
	movq	%rsi, %r14
	movl	(%rdi), %edi
	callq	_v4l2_dev_to_vin
	movq	%rax, %r13
	movq	_RCAR_VIN_NUM@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	movq	16(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_rvin_v4l2_unregister
	movl	(%r12), %eax
	jmp	LBB0_4
LBB0_5:
	movq	(%r13), %rdi
	callq	_mutex_lock
	movq	_RVIN_CSI_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	(%r13), %rcx
	movq	8(%rcx), %rdx
	movq	(%r15), %rsi
	addq	$8, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, -8(%rdx)
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rcx
	addq	$16, %rdx
	cmpq	%rcx, %rax
	jne	LBB0_7
	jmp	LBB0_10
LBB0_8:
	movq	$0, (%rdx)
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_vin_dbg
LBB0_10:
	movq	(%r13), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RCAR_VIN_NUM,4,2               ## @RCAR_VIN_NUM
	.comm	_RVIN_CSI_MAX,4,2               ## @RVIN_CSI_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unbind CSI-2 %s from slot %u\n"

	.no_dead_strip	_rvin_group_notify_unbind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvin_group_notify_unbind
_rvin_group_notify_unbind:              ; @rvin_group_notify_unbind
	.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	x21, x2
	mov	x20, x1
	ldr	w0, [x0]
	bl	_v4l2_dev_to_vin
	mov	x19, x0
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	x23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, uxtw
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x9, [x9, #16]
	ldr	x0, [x9, x23, lsl #3]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_rvin_v4l2_unregister
	ldr	w8, [x22]
	b	LBB0_2
LBB0_5:
	ldr	x0, [x19]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _RVIN_CSI_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RVIN_CSI_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.6:
	mov	x3, #0
	ldr	x9, [x19]
	ldr	x9, [x9, #8]
	ldr	x10, [x21]
	add	x9, x9, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-8]
	cmp	x11, x10
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x3, x3, #1
	add	x9, x9, #16
	cmp	x8, x3
	b.ne	LBB0_7
	b	LBB0_10
LBB0_9:
	str	xzr, [x9]
	ldr	w2, [x20]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_vin_dbg
LBB0_10:
	ldr	x0, [x19]
	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
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RCAR_VIN_NUM,4,2               ; @RCAR_VIN_NUM
	.comm	_RVIN_CSI_MAX,4,2               ; @RVIN_CSI_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unbind CSI-2 %s from slot %u\n"

	.no_dead_strip	_rvin_group_notify_unbind
.subsections_via_symbols
