	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsp1_probe
_vsp1_probe:                            ## @vsp1_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	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	movq	%r14, 16(%rax)
	leaq	44(%rax), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, %rdi
	addq	$40, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	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, 36(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	36(%r12), %edi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_5:
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movl	(%rax), %r15d
	movq	_vsp1_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_13
## %bb.9:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_rcar_fcp_get
	movl	%eax, 32(%r12)
	movq	%r15, %rdi
	callq	_of_node_put
	movl	32(%r12), %edi
	callq	_IS_ERR
	movl	32(%r12), %edi
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	callq	_PTR_ERR
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	movl	32(%r12), %edi
	jmp	LBB0_3
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_13:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_14:
	movq	16(%r12), %rax
	jmp	LBB0_16
LBB0_15:
	callq	_rcar_fcp_get_device
LBB0_16:
	movq	%rax, 24(%r12)
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_21
## %bb.17:
	movq	_VI6_IP_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_vsp1_read
	movl	%eax, (%r12)
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync
	movq	_vsp1_device_infos@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_23
## %bb.18:
	xorl	%ebx, %ebx
	movq	_VI6_IP_VERSION_MODEL_MASK@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	andl	(%r12), %eax
	movq	_vsp1_device_infos@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	cmpl	(%rdi,%rbx), %eax
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	incq	%r15
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jb	LBB0_19
	jmp	LBB0_23
LBB0_21:
	movl	%eax, %r15d
	jmp	LBB0_28
LBB0_22:
	addq	%rbx, %rdi
	movq	%rdi, 8(%r12)
LBB0_23:
	cmpq	$0, 8(%r12)
	movl	(%r12), %edx
	je	LBB0_26
## %bb.24:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	%r12, %rdi
	callq	_vsp1_create_entities
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_27
## %bb.25:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_28
LBB0_26:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_27:
	testl	%r15d, %r15d
	je	LBB0_29
LBB0_28:
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	jmp	LBB0_6
LBB0_29:
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing IRQ\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_vsp1_irq_handler,4,2           ## @vsp1_irq_handler
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"failed to request IRQ\n"

L_.str.2:                               ## @.str.2
	.asciz	"renesas,fcp"

L_.str.3:                               ## @.str.3
	.asciz	"FCP not found (%ld)\n"

	.comm	_VI6_IP_VERSION,4,2             ## @VI6_IP_VERSION
	.comm	_vsp1_device_infos,8,3          ## @vsp1_device_infos
	.comm	_VI6_IP_VERSION_MODEL_MASK,4,2  ## @VI6_IP_VERSION_MODEL_MASK
L_.str.4:                               ## @.str.4
	.asciz	"unsupported IP version 0x%08x\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.5:                               ## @.str.5
	.asciz	"IP version 0x%08x\n"

L_.str.6:                               ## @.str.6
	.asciz	"failed to create entities\n"

	.no_dead_strip	_vsp1_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsp1_probe
_vsp1_probe:                            ; @vsp1_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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #16]
	add	x0, x0, #44
	bl	_INIT_LIST_HEAD
	add	x0, x20, #40
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #36]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w0, [x20, #36]
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:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	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_7:
Lloh8:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_12
; %bb.8:
	ldr	w21, [x0]
Lloh11:
	adrp	x8, _vsp1_irq_handler@GOTPAGE
Lloh12:
	ldr	x8, [x8, _vsp1_irq_handler@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
Lloh14:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x5, x20
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_13
; %bb.9:
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_14
; %bb.10:
	mov	x21, x0
	bl	_rcar_fcp_get
	str	w0, [x20, #32]
	mov	x0, x21
	bl	_of_node_put
	ldr	w0, [x20, #32]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20, #32]
	cbz	x8, LBB0_15
; %bb.11:
	bl	_PTR_ERR
	mov	x2, x0
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w0, [x20, #32]
	b	LBB0_3
LBB0_12:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_13:
	mov	x21, x0
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
LBB0_14:
	ldr	x0, [x20, #16]
	b	LBB0_16
LBB0_15:
	bl	_rcar_fcp_get_device
LBB0_16:
	str	x0, [x20, #24]
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_21
; %bb.17:
Lloh27:
	adrp	x8, _VI6_IP_VERSION@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VI6_IP_VERSION@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_vsp1_read
	str	w0, [x20]
	mov	x0, x19
	bl	_pm_runtime_put_sync
Lloh30:
	adrp	x21, _vsp1_device_infos@GOTPAGE
Lloh31:
	ldr	x21, [x21, _vsp1_device_infos@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_23
; %bb.18:
	mov	x22, #0
	mov	x23, #0
Lloh32:
	adrp	x24, _VI6_IP_VERSION_MODEL_MASK@GOTPAGE
Lloh33:
	ldr	x24, [x24, _VI6_IP_VERSION_MODEL_MASK@GOTPAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	w9, [x24]
	and	w8, w9, w8
	ldr	x0, [x21]
	ldr	w9, [x0, x22]
	cmp	w8, w9
	b.eq	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #4
	cmp	x23, w0, uxtw
	b.lo	LBB0_19
	b	LBB0_23
LBB0_21:
	mov	x21, x0
	b	LBB0_28
LBB0_22:
	add	x8, x0, x22
	str	x8, [x20, #8]
LBB0_23:
	ldr	x8, [x20, #8]
	ldr	w2, [x20]
	cbz	x8, LBB0_26
; %bb.24:
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
	mov	x0, x20
	bl	_vsp1_create_entities
	mov	x21, x0
	tbz	w0, #31, LBB0_27
; %bb.25:
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_28
LBB0_26:
	str	x2, [sp]
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh40:
	adrp	x8, _ENXIO@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_27:
	cbz	w21, LBB0_6
LBB0_28:
	mov	x0, x19
	bl	_pm_runtime_disable
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing IRQ\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_vsp1_irq_handler,4,2           ; @vsp1_irq_handler
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"failed to request IRQ\n"

l_.str.2:                               ; @.str.2
	.asciz	"renesas,fcp"

l_.str.3:                               ; @.str.3
	.asciz	"FCP not found (%ld)\n"

	.comm	_VI6_IP_VERSION,4,2             ; @VI6_IP_VERSION
	.comm	_vsp1_device_infos,8,3          ; @vsp1_device_infos
	.comm	_VI6_IP_VERSION_MODEL_MASK,4,2  ; @VI6_IP_VERSION_MODEL_MASK
l_.str.4:                               ; @.str.4
	.asciz	"unsupported IP version 0x%08x\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.5:                               ; @.str.5
	.asciz	"IP version 0x%08x\n"

l_.str.6:                               ; @.str.6
	.asciz	"failed to create entities\n"

	.no_dead_strip	_vsp1_probe
.subsections_via_symbols
