	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vic_probe
_vic_probe:                             ## @vic_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, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$120, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 88(%r14)
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r15
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 104(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	104(%r14), %edi
	jmp	LBB0_11
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 112(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	112(%r14), %edi
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	cmpl	$0, (%r12)
	je	LBB0_18
LBB0_13:
	movq	%r12, 16(%r14)
	movl	104(%r14), %eax
	movl	%eax, 8(%r14)
	movq	_vic_falcon_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_falcon_init
	testl	%eax, %eax
	js	LBB0_20
## %bb.14:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	leaq	24(%r14), %r13
	leaq	64(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movq	_vic_client_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%r14)
	movq	%r12, 48(%r14)
	movq	_HOST1X_CLASS_VIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	%r15, 32(%r14)
	movl	$1, 24(%r14)
	movq	%r12, 96(%r14)
	movq	%r14, %rdi
	addq	$84, %rdi
	callq	_INIT_LIST_HEAD
	movq	88(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r14)
	movq	_vic_ops@GOTPCREL(%rip), %rax
	movq	%rax, 72(%r14)
	movq	%r13, %rdi
	callq	_host1x_client_register
	testl	%eax, %eax
	js	LBB0_21
## %bb.15:
	movq	%r12, %rdi
	callq	_pm_runtime_enable
	movq	%r12, %rdi
	callq	_pm_runtime_enabled
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.16:
	movq	%r12, %rdi
	callq	_vic_runtime_resume
	testl	%eax, %eax
	jns	LBB0_7
## %bb.17:
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_host1x_client_unregister
	movl	%r15d, %ebx
	jmp	LBB0_22
LBB0_18:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_reset_control_get
	movl	%eax, 108(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.19:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	108(%r14), %edi
	jmp	LBB0_11
LBB0_20:
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_21:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_22:
	movq	%r14, %rdi
	callq	_falcon_exit
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get registers\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"failed to get clock\n"

L_.str.2:                               ## @.str.2
	.asciz	"vic"

L_.str.3:                               ## @.str.3
	.asciz	"failed to get reset\n"

	.comm	_vic_falcon_ops,4,2             ## @vic_falcon_ops
	.comm	_vic_client_ops,4,2             ## @vic_client_ops
	.comm	_HOST1X_CLASS_VIC,4,2           ## @HOST1X_CLASS_VIC
	.comm	_vic_ops,4,2                    ## @vic_ops
L_.str.4:                               ## @.str.4
	.asciz	"failed to register host1x client: %d\n"

	.no_dead_strip	_vic_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vic_probe
_vic_probe:                             ; @vic_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	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #120
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_of_device_get_match_data
	str	x0, [x19, #88]
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
Lloh2:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_8
; %bb.3:
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #104]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.4:
	ldr	w0, [x19, #104]
	b	LBB0_11
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh9:
	adrp	x8, _ENXIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_9:
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x19, #112]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #112]
LBB0_11:
	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_12:
	ldr	w8, [x20]
	cbz	w8, LBB0_18
LBB0_13:
	str	x20, [x19, #16]
	ldr	w8, [x19, #104]
	str	w8, [x19, #8]
Lloh13:
	adrp	x8, _vic_falcon_ops@GOTPAGE
Lloh14:
	ldr	x8, [x8, _vic_falcon_ops@GOTPAGEOFF]
	str	x8, [x19]
	mov	x0, x19
	bl	_falcon_init
	tbnz	w0, #31, LBB0_20
; %bb.14:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	add	x0, x19, #64
	bl	_INIT_LIST_HEAD
	mov	w8, #1
	mov	x23, x19
	str	w8, [x23, #24]!
Lloh15:
	adrp	x8, _vic_client_ops@GOTPAGE
Lloh16:
	ldr	x8, [x8, _vic_client_ops@GOTPAGEOFF]
Lloh17:
	adrp	x9, _HOST1X_CLASS_VIC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HOST1X_CLASS_VIC@GOTPAGEOFF]
	stp	x20, x8, [x23, #24]
Lloh19:
	ldr	w8, [x9]
	str	w8, [x23, #16]
	str	x21, [x23, #8]
	str	x20, [x23, #72]
	add	x0, x23, #60
	bl	_INIT_LIST_HEAD
	ldr	x8, [x23, #64]
	ldr	w8, [x8]
	str	w8, [x23, #56]
Lloh20:
	adrp	x8, _vic_ops@GOTPAGE
Lloh21:
	ldr	x8, [x8, _vic_ops@GOTPAGEOFF]
	str	x8, [x23, #48]
	mov	x0, x23
	bl	_host1x_client_register
	tbnz	w0, #31, LBB0_21
; %bb.15:
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	x0, x20
	bl	_pm_runtime_enabled
	cbnz	w0, LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_vic_runtime_resume
	tbnz	w0, #31, LBB0_22
LBB0_17:
	mov	w22, #0
	b	LBB0_7
LBB0_18:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_reset_control_get
	str	w0, [x19, #108]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.19:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #108]
	b	LBB0_11
LBB0_20:
	mov	x22, x0
	b	LBB0_7
LBB0_21:
	mov	x22, x0
	str	x22, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_23
LBB0_22:
	mov	x22, x0
	mov	x0, x23
	bl	_host1x_client_unregister
LBB0_23:
	mov	x0, x19
	bl	_falcon_exit
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get registers\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"failed to get clock\n"

l_.str.2:                               ; @.str.2
	.asciz	"vic"

l_.str.3:                               ; @.str.3
	.asciz	"failed to get reset\n"

	.comm	_vic_falcon_ops,4,2             ; @vic_falcon_ops
	.comm	_vic_client_ops,4,2             ; @vic_client_ops
	.comm	_HOST1X_CLASS_VIC,4,2           ; @HOST1X_CLASS_VIC
	.comm	_vic_ops,4,2                    ; @vic_ops
l_.str.4:                               ; @.str.4
	.asciz	"failed to register host1x client: %d\n"

	.no_dead_strip	_vic_probe
.subsections_via_symbols
