	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_probe
_vpif_probe:                            ## @vpif_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, _vpif_probe.res(%rip)
	leaq	16(%r12), %r14
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	_vpif_base@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_pm_runtime_get
	movq	_vpif_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_init
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movl	32(%r12), %edi
	xorl	%esi, %esi
	callq	_of_graph_get_next_endpoint
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, _vpif_probe.res_irq(%rip)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, (%rax)
	movl	$-1, 8(%rax)
	movq	_vpif_probe.res_irq(%rip), %rcx
	movq	%rcx, 40(%rax)
	movl	$1, 12(%rax)
	movl	28(%r12), %ecx
	movl	%ecx, 28(%rax)
	movl	24(%r12), %ecx
	movl	%ecx, 24(%rax)
	movq	%r14, 16(%rax)
	movq	%rax, %rdi
	callq	_platform_device_register
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_7:
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rcx
	movq	%rcx, (%rax)
	movl	$-1, 8(%rax)
	movq	_vpif_probe.res_irq(%rip), %rcx
	movq	%rcx, 40(%rax)
	movl	$1, 12(%rax)
	movl	28(%r12), %ecx
	movl	%ecx, 28(%rax)
	movl	24(%r12), %ecx
	movl	%ecx, 24(%rax)
	movq	%r14, 16(%rax)
	movq	%rax, %rdi
	callq	_platform_device_register
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_vpif_probe.res,8,3 ## @vpif_probe.res
.zerofill __DATA,__bss,_vpif_probe.res_irq,8,3 ## @vpif_probe.res_irq
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_vpif_base,4,2                  ## @vpif_base
	.comm	_vpif_lock,4,2                  ## @vpif_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpif probe success\n"

	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
L_.str.1:                               ## @.str.1
	.asciz	"Missing IRQ resource.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.2:                               ## @.str.2
	.asciz	"vpif_capture"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to allocate memory for pdev_capture.\n"

L_.str.4:                               ## @.str.4
	.asciz	"vpif_display"

L_.str.5:                               ## @.str.5
	.asciz	"Unable to allocate memory for pdev_display.\n"

	.no_dead_strip	_vpif_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vpif_probe
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vpif_probe:                            ; @vpif_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	x19, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	adrp	x8, _vpif_probe.res@PAGE
	str	x0, [x8, _vpif_probe.res@PAGEOFF]
	add	x20, x19, #16
	mov	x0, x20
	bl	_devm_ioremap_resource
Lloh3:
	adrp	x21, _vpif_base@GOTPAGE
Lloh4:
	ldr	x21, [x21, _vpif_base@GOTPAGEOFF]
	str	w0, [x21]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [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
	b	_PTR_ERR
LBB0_2:
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	x0, x20
	bl	_pm_runtime_get
Lloh5:
	adrp	x0, _vpif_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _vpif_lock@GOTPAGEOFF]
	bl	_spin_lock_init
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	w0, [x19, #32]
	mov	x1, #0
	bl	_of_graph_get_next_endpoint
	cbz	x0, LBB0_12
; %bb.3:
Lloh9:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	adrp	x21, _vpif_probe.res_irq@PAGE
	str	x0, [x21, _vpif_probe.res_irq@PAGEOFF]
	cbz	x0, LBB0_6
; %bb.4:
Lloh12:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #48
	bl	_devm_kzalloc
	adrp	x22, lCPI0_0@PAGE
	cbz	x0, LBB0_7
; %bb.5:
Lloh14:
	adrp	x8, l_.str.2@PAGE
Lloh15:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x0]
	ldr	x8, [x21, _vpif_probe.res_irq@PAGEOFF]
	str	x8, [x0, #40]
	ldr	d0, [x22, lCPI0_0@PAGEOFF]
	str	d0, [x0, #8]
	ldr	d0, [x19, #24]
	str	d0, [x0, #24]
	str	x20, [x0, #16]
	bl	_platform_device_register
	b	LBB0_8
LBB0_6:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_7:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_8:
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.9:
Lloh23:
	adrp	x8, l_.str.4@PAGE
Lloh24:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x0]
	ldr	x8, [x21, _vpif_probe.res_irq@PAGEOFF]
	str	x8, [x0, #40]
	ldr	d0, [x22, lCPI0_0@PAGEOFF]
	str	d0, [x0, #8]
	ldr	d0, [x19, #24]
	str	d0, [x0, #24]
	str	x20, [x0, #16]
	bl	_platform_device_register
	b	LBB0_11
LBB0_10:
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_vpif_probe.res,8,3 ; @vpif_probe.res
.zerofill __DATA,__bss,_vpif_probe.res_irq,8,3 ; @vpif_probe.res_irq
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_vpif_base,4,2                  ; @vpif_base
	.comm	_vpif_lock,4,2                  ; @vpif_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpif probe success\n"

	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
l_.str.1:                               ; @.str.1
	.asciz	"Missing IRQ resource.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.2:                               ; @.str.2
	.asciz	"vpif_capture"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to allocate memory for pdev_capture.\n"

l_.str.4:                               ; @.str.4
	.asciz	"vpif_display"

l_.str.5:                               ; @.str.5
	.asciz	"Unable to allocate memory for pdev_display.\n"

	.no_dead_strip	_vpif_probe
.subsections_via_symbols
