	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mccic_notify_bound
_mccic_notify_bound:                    ## @mccic_notify_bound
	.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, %r14
	callq	_notifier_to_mcam
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mutex_lock
	cmpq	$0, 8(%r15)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_cam_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_v4l2_set_subdev_hostdata
	movq	%r14, 8(%r15)
	movq	%r15, %rdi
	callq	_mcam_cam_init
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_mcam_setup_vb2
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	leaq	16(%r15), %rbx
	leaq	44(%r15), %rax
	movq	%rax, 32(%r15)
	movq	%r15, 24(%r15)
	movq	%r15, %rax
	addq	$40, %rax
	movq	%rax, 16(%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_video_set_drvdata
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_video_register_device
	testl	%eax, %eax
	je	LBB0_6
LBB0_3:
	movl	%eax, %ebx
	movq	$0, 8(%r15)
LBB0_7:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_cam_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sensor already bound\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_mcam_v4l_template,24,3         ## @mcam_v4l_template
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
L_.str.1:                               ## @.str.1
	.asciz	"sensor %s bound\n"

	.no_dead_strip	_mccic_notify_bound
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mccic_notify_bound
_mccic_notify_bound:                    ; @mccic_notify_bound
	.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
	bl	_notifier_to_mcam
	mov	x19, x0
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_cam_err
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_v4l2_set_subdev_hostdata
	str	x20, [x19, #8]
	mov	x0, x19
	bl	_mcam_cam_init
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mcam_setup_vb2
	cbz	w0, LBB0_7
LBB0_4:
	mov	x21, x0
LBB0_5:
	str	xzr, [x19, #8]
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	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_7:
	add	x8, x19, #44
	stp	x19, x8, [x19, #24]
	add	x8, x19, #40
	mov	x21, x19
	str	x8, [x21, #16]!
	mov	x0, x21
	mov	x1, x19
	bl	_video_set_drvdata
Lloh5:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #-1
	bl	_video_register_device
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.8:
	ldr	w2, [x20]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_cam_dbg
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sensor already bound\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_mcam_v4l_template,24,3         ; @mcam_v4l_template
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
l_.str.1:                               ; @.str.1
	.asciz	"sensor %s bound\n"

	.no_dead_strip	_mccic_notify_bound
.subsections_via_symbols
