	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cal_probe
_cal_probe:                             ## @cal_probe
	.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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movl	48(%rax), %edi
	movq	_CAL_MODULE_NAME@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	%r14, 40(%rbx)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_platform_get_resource_byname
	movq	%rax, 24(%rbx)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	32(%rbx), %rdi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_23
LBB0_6:
	movq	24(%rbx), %r9
	movl	8(%r9), %ecx
	leaq	4(%r9), %r8
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_cal_dbg
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %edi
	movq	%rbx, %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_cal_dbg
	movq	_cal_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %r8d
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	movq	%rbx, %r9
	callq	_devm_request_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_7
LBB0_23:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	callq	_cm_create
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	16(%rbx), %rdi
	jmp	LBB0_5
LBB0_9:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cc_create
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	jmp	LBB0_5
LBB0_11:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_cc_create
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	8(%rbx), %rax
	movq	8(%rax), %rdi
	jmp	LBB0_5
LBB0_13:
	movq	(%rbx), %rax
	movq	$0, (%rax)
	movq	(%rbx), %rax
	movq	$0, 8(%rax)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cal_create_instance
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_cal_create_instance
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_16
## %bb.14:
	cmpq	$0, 8(%rax)
	je	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%rbx, %rdi
	callq	_cal_runtime_get
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movq	_CAL_NUM_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_23
## %bb.19:
	xorl	%r13d, %r13d
	jmp	LBB0_20
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_23
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	movq	(%rcx,%r13,8), %r14
	testq	%r14, %r14
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	leaq	8(%r14), %r12
	movq	%r12, %rdi
	callq	_v4l2_async_notifier_unregister
	movq	%r12, %rdi
	callq	_v4l2_async_notifier_cleanup
	leaq	4(%r14), %rdi
	callq	_v4l2_ctrl_handler_free
	movq	%r14, %rdi
	callq	_v4l2_device_unregister
	movq	_CAL_NUM_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_17:
	movq	%rbx, %rdi
	callq	_cal_get_hwinfo
	movq	%rbx, %rdi
	callq	_cal_runtime_put
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_15:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cal_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CAL_MODULE_NAME,4,2            ## @CAL_MODULE_NAME
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cal_top"

L_.str.1:                               ## @.str.1
	.asciz	"ioresource %s at %pa - %pa\n"

L_.str.2:                               ## @.str.2
	.asciz	"got irq# %d\n"

	.comm	_cal_irq,4,2                    ## @cal_irq
L_.str.3:                               ## @.str.3
	.asciz	"Neither port is configured, no point in staying up\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CAL_NUM_CONTEXT,4,2            ## @CAL_NUM_CONTEXT
	.no_dead_strip	_cal_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cal_probe
_cal_probe:                             ; @cal_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #48]
Lloh3:
	adrp	x22, _CAL_MODULE_NAME@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CAL_MODULE_NAME@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #4
	bl	_strscpy
	str	x20, [x19, #40]
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_platform_get_resource_byname
	mov	x1, x0
	str	x0, [x19, #24]
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x19, #32]
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #24]
	ldr	w3, [x8, #8]
	add	x9, x8, #4
	stp	x9, x8, [sp]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x1, x19
	bl	_cal_dbg
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x1, x19
	mov	x3, x21
	bl	_cal_dbg
Lloh16:
	adrp	x8, _cal_irq@GOTPAGE
Lloh17:
	ldr	x8, [x8, _cal_irq@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	ldr	w4, [x22]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	mov	x21, x0
	cbz	w0, LBB0_8
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_cm_create
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [x19, #16]
	b	LBB0_3
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_cc_create
	ldr	x8, [x19, #8]
	str	x0, [x8]
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	b	LBB0_3
LBB0_12:
	mov	x0, x19
	mov	w1, #1
	bl	_cc_create
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	b	LBB0_3
LBB0_14:
	ldr	x8, [x19]
	str	xzr, [x8]
	ldr	x8, [x19]
	str	xzr, [x8, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_cal_create_instance
	ldr	x8, [x19]
	str	x0, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_cal_create_instance
	ldr	x8, [x19]
	str	x0, [x8, #8]
	ldr	x8, [x19]
	ldr	x9, [x8]
	cbnz	x9, LBB0_16
; %bb.15:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_23
LBB0_16:
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_cal_runtime_get
	mov	x21, x0
	cbz	w0, LBB0_22
; %bb.17:
	mov	x0, x20
	bl	_pm_runtime_disable
Lloh19:
	adrp	x23, _CAL_NUM_CONTEXT@GOTPAGE
Lloh20:
	ldr	x23, [x23, _CAL_NUM_CONTEXT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.18:
	mov	x24, #0
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_7
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x20, [x9, x24, lsl #3]
	cbz	x20, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x22, x20, #8
	mov	x0, x22
	bl	_v4l2_async_notifier_unregister
	mov	x0, x22
	bl	_v4l2_async_notifier_cleanup
	add	x0, x20, #4
	bl	_v4l2_ctrl_handler_free
	mov	x0, x20
	bl	_v4l2_device_unregister
	ldr	w8, [x23]
	b	LBB0_19
LBB0_22:
	mov	x0, x19
	bl	_cal_get_hwinfo
	mov	x0, x19
	bl	_cal_runtime_put
	b	LBB0_7
LBB0_23:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_cal_err
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CAL_MODULE_NAME,4,2            ; @CAL_MODULE_NAME
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cal_top"

l_.str.1:                               ; @.str.1
	.asciz	"ioresource %s at %pa - %pa\n"

l_.str.2:                               ; @.str.2
	.asciz	"got irq# %d\n"

	.comm	_cal_irq,4,2                    ; @cal_irq
l_.str.3:                               ; @.str.3
	.asciz	"Neither port is configured, no point in staying up\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CAL_NUM_CONTEXT,4,2            ; @CAL_NUM_CONTEXT
	.no_dead_strip	_cal_probe
.subsections_via_symbols
