	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cal_async_bound
_cal_async_bound:                       ## @cal_async_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_notifier_to_ctx
	movq	%rax, %rbx
	cmpq	$0, 16(%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ctx_info
	jmp	LBB0_14
LBB0_2:
	movq	%r14, 16(%rbx)
	movl	(%r14), %ecx
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_ctx_dbg
	movl	$0, (%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_cal_formats@GOTPCREL(%rip), %rbx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-64(%rbp), %r12d                ## 4-byte Reload
	incl	%r12d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	addl	(%rax), %ecx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_11
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	leaq	-88(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	%r12d, -88(%rbp)
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_enum_mbus_code@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_v4l2_subdev_call
	movl	%eax, %r15d
	testl	%eax, %eax
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %ecx
	movq	-80(%rbp), %r8
	movl	$2, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rdx
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_ctx_dbg
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	incq	%r15
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %r14
	cmpq	%rax, %r15
	movq	_cal_formats@GOTPCREL(%rip), %rbx
	jge	LBB0_10
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %r13
	movq	-80(%rbp), %rax
	cmpq	(%r13,%r14), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	leaq	(%r14,%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movslq	%r12d, %r12
	movq	%rax, (%rcx,%r12,8)
	movl	8(%r13,%r14), %edi
	callq	_fourcc_to_str
	movq	(%r13,%r14), %r8
	movl	$2, %edi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	leaq	L_.str.3(%rip), %rdx
	movl	%eax, %ecx
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_ctx_dbg
	incl	%r12d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, (%r13)
	movq	(%rbx), %r13
	jmp	LBB0_9
LBB0_11:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_12
## %bb.13:
	movq	%rbx, %rdi
	callq	_cal_complete_ctx
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_12:
	movl	(%r14), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ctx_err
	xorl	%eax, %eax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
LBB0_15:
	addq	$56, %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	"Rejecting subdev %s (Already set!!)"

L_.str.1:                               ## @.str.1
	.asciz	"Using sensor %s for capture\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pad,4,2                        ## @pad
	.comm	_enum_mbus_code,4,2             ## @enum_mbus_code
L_.str.2:                               ## @.str.2
	.asciz	"subdev %s: code: %04x idx: %d\n"

	.comm	_cal_formats,8,3                ## @cal_formats
L_.str.3:                               ## @.str.3
	.asciz	"matched fourcc: %s: code: %04x idx: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"No suitable format reported by subdev %s\n"

	.no_dead_strip	_cal_async_bound
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cal_async_bound
_cal_async_bound:                       ; @cal_async_bound
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	bl	_notifier_to_ctx
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w2, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ctx_info
	b	LBB0_13
LBB0_2:
	str	x20, [x19, #16]
	ldr	w3, [x20]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x1, x19
	bl	_ctx_dbg
	str	wzr, [x19]
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cbz	w8, LBB0_14
; %bb.3:
	mov	w26, #0
	mov	w25, #0
Lloh7:
	adrp	x21, _cal_formats@GOTPAGE
Lloh8:
	ldr	x21, [x21, _cal_formats@GOTPAGEOFF]
Lloh9:
	adrp	x22, l_.str.3@PAGE
Lloh10:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w26, w26, #1
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmn	w23, w8
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	w26, [sp, #16]
Lloh14:
	adrp	x8, _pad@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _enum_mbus_code@GOTPAGE
Lloh18:
	ldr	x8, [x8, _enum_mbus_code@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x4, sp, #16
	mov	x0, x20
	mov	x3, #0
	bl	_v4l2_subdev_call
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [x20]
	ldr	x8, [sp, #24]
	stp	x8, x26, [sp]
	mov	w0, #2
	mov	x1, x19
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_ctx_dbg
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, #0
	mov	x27, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x27, x27, #1
	bl	_ARRAY_SIZE
	add	x24, x24, #16
	cmp	x27, w0, sxtw
	b.ge	LBB0_4
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x21]
	add	x28, x0, x24
	ldr	x8, [sp, #24]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19, #8]
	str	x28, [x8, w25, sxtw #3]
	ldr	w0, [x28, #8]
	bl	_fourcc_to_str
	mov	x3, x0
	ldr	x8, [x28]
	stp	x8, x25, [sp]
	mov	w0, #2
	mov	x1, x19
	mov	x2, x22
	bl	_ctx_dbg
	add	w25, w25, #1
	str	w25, [x19]
	ldr	x0, [x21]
	b	LBB0_8
LBB0_11:
	cbz	w25, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_cal_complete_ctx
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	ldr	w2, [x20]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ctx_err
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rejecting subdev %s (Already set!!)"

l_.str.1:                               ; @.str.1
	.asciz	"Using sensor %s for capture\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pad,4,2                        ; @pad
	.comm	_enum_mbus_code,4,2             ; @enum_mbus_code
l_.str.2:                               ; @.str.2
	.asciz	"subdev %s: code: %04x idx: %d\n"

	.comm	_cal_formats,8,3                ; @cal_formats
l_.str.3:                               ; @.str.3
	.asciz	"matched fourcc: %s: code: %04x idx: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"No suitable format reported by subdev %s\n"

	.no_dead_strip	_cal_async_bound
.subsections_via_symbols
