	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ceu_probe
_ceu_probe:                             ## @ceu_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), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r14, 48(%r15)
	leaq	40(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	36(%r15), %rdi
	callq	_spin_lock_init
	leaq	32(%r15), %rdi
	callq	_mutex_init
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 28(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	28(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_20:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_21
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_20
## %bb.5:
	movq	_ceu_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_20
LBB0_7:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_v4l2_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.8:
	movq	%r15, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_v4l2_async_notifier_init
	movq	_CONFIG_OF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	cmpq	$0, 8(%r14)
	je	LBB0_11
## %bb.10:
	movq	_ceu_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_of_match_device
	movq	(%rax), %r13
	movq	%r15, %rdi
	callq	_ceu_parse_dt
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_11:
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_ceu_parse_platform_data
	movl	%eax, %ebx
	movq	_ceu_data_sh4@GOTPCREL(%rip), %r13
	jmp	LBB0_14
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
                                        ## implicit-def: $r13
LBB0_14:
	testl	%ebx, %ebx
	js	LBB0_18
## %bb.15:
	movl	(%r13), %eax
	movl	%eax, 24(%r15)
	movq	%r15, 16(%r15)
	movq	_ceu_notify_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_v4l2_async_notifier_register
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_v4l2_async_notifier_cleanup
LBB0_18:
	movq	%r15, %rdi
	callq	_v4l2_device_unregister
LBB0_19:
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	jmp	LBB0_20
LBB0_16:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ceu_irq,4,2                    ## @ceu_irq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to request CEU interrupt.\n"

	.comm	_CONFIG_OF,4,2                  ## @CONFIG_OF
	.comm	_ceu_of_match,4,2               ## @ceu_of_match
	.comm	_ceu_data_sh4,4,2               ## @ceu_data_sh4
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ceu_notify_ops,4,2             ## @ceu_notify_ops
L_.str.1:                               ## @.str.1
	.asciz	"Renesas Capture Engine Unit %s\n"

	.no_dead_strip	_ceu_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ceu_probe
_ceu_probe:                             ; @ceu_probe
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	str	x20, [x19, #48]
	add	x0, x19, #40
	bl	_INIT_LIST_HEAD
	add	x0, x19, #36
	bl	_spin_lock_init
	add	x0, x19, #32
	bl	_mutex_init
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #28]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #28]
	bl	_PTR_ERR
	mov	x21, x0
LBB0_3:
	mov	x0, x19
	bl	_kfree
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	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_6:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_3
; %bb.7:
Lloh9:
	adrp	x8, _ceu_irq@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ceu_irq@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_dev_name
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_9
; %bb.8:
	mov	x21, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_3
LBB0_9:
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	x0, x20
	mov	x1, x19
	bl	_v4l2_device_register
	mov	x21, x0
	cbnz	w0, LBB0_20
; %bb.10:
	add	x22, x19, #8
	mov	x0, x22
	bl	_v4l2_async_notifier_init
Lloh14:
	adrp	x8, _CONFIG_OF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CONFIG_OF@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_13
; %bb.12:
Lloh17:
	adrp	x8, _ceu_of_match@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ceu_of_match@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_of_match_device
	ldr	x23, [x0]
	mov	x0, x19
	bl	_ceu_parse_dt
	mov	x21, x0
	b	LBB0_16
LBB0_13:
	ldr	x1, [x20]
	cbz	x1, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_ceu_parse_platform_data
	mov	x21, x0
Lloh20:
	adrp	x23, _ceu_data_sh4@GOTPAGE
Lloh21:
	ldr	x23, [x23, _ceu_data_sh4@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
                                        ; implicit-def: $x23
LBB0_16:
	tbnz	w21, #31, LBB0_19
; %bb.17:
	ldr	w8, [x23]
	str	w8, [x19, #24]
Lloh25:
	adrp	x8, _ceu_notify_ops@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ceu_notify_ops@GOTPAGEOFF]
	stp	x8, x19, [x19, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_v4l2_async_notifier_register
	mov	x21, x0
	cbz	w0, LBB0_21
; %bb.18:
	mov	x0, x22
	bl	_v4l2_async_notifier_cleanup
LBB0_19:
	mov	x0, x19
	bl	_v4l2_device_unregister
LBB0_20:
	mov	x0, x20
	bl	_pm_runtime_disable
	b	LBB0_3
LBB0_21:
	mov	x0, x20
	bl	_dev_name
	mov	x2, x0
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ceu_irq,4,2                    ; @ceu_irq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to request CEU interrupt.\n"

	.comm	_CONFIG_OF,4,2                  ; @CONFIG_OF
	.comm	_ceu_of_match,4,2               ; @ceu_of_match
	.comm	_ceu_data_sh4,4,2               ; @ceu_data_sh4
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ceu_notify_ops,4,2             ; @ceu_notify_ops
l_.str.1:                               ; @.str.1
	.asciz	"Renesas Capture Engine Unit %s\n"

	.no_dead_strip	_ceu_probe
.subsections_via_symbols
