	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venus_probe
_venus_probe:                           ## @venus_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%r15, 40(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 32(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.31:
	movl	32(%r14), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_venus_clks_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_30
## %bb.9:
	movq	24(%r14), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dma_set_mask_and_coherent
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_30
## %bb.10:
	cmpq	$0, 8(%r15)
	jne	LBB0_12
## %bb.11:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_devm_kzalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_1
LBB0_12:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_set_max_seg_size
	leaq	20(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	16(%r14), %rdi
	callq	_mutex_init
	leaq	12(%r14), %rdi
	movq	_venus_sys_error_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movl	(%r14), %esi
	movq	_hfi_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hfi_isr_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	orl	(%rax), %r8d
	movq	%r14, (%rsp)
	leaq	L_.str(%rip), %r9
	movq	%r15, %rdi
	callq	_devm_request_threaded_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_30
## %bb.13:
	movq	_venus_core_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_hfi_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_30
## %bb.14:
	movq	%r15, %rdi
	callq	_pm_runtime_enable
	movq	%r15, %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movl	(%r15), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_of_platform_populate
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_29
## %bb.17:
	movq	%r14, %rdi
	callq	_venus_firmware_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_29
## %bb.18:
	movq	%r14, %rdi
	callq	_venus_boot
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_29
## %bb.19:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_hfi_core_resume
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
## %bb.20:
	movq	%r14, %rdi
	callq	_hfi_core_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
## %bb.21:
	movq	_VIDC_SESSION_TYPE_DEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_venus_enumerate_codecs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
## %bb.22:
	movq	_VIDC_SESSION_TYPE_ENC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_venus_enumerate_codecs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
## %bb.23:
	movq	%r14, %r12
	addq	$8, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_v4l2_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.24:
	movq	%r15, %rdi
	callq	_pm_runtime_put_sync
	testl	%eax, %eax
	je	LBB0_25
## %bb.26:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_v4l2_device_unregister
LBB0_27:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_hfi_core_deinit
LBB0_28:
	movq	%r14, %rdi
	callq	_venus_shutdown
	jmp	LBB0_29
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_30:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rax, %rbx
	jmp	LBB0_30
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	movl	%eax, %ebx
LBB0_29:
	movq	%r15, %rdi
	callq	_pm_runtime_set_suspended
	movq	%r15, %rdi
	callq	_pm_runtime_disable
	movq	%r14, %rdi
	callq	_hfi_destroy
	jmp	LBB0_30
LBB0_25:
	xorl	%ebx, %ebx
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_venus_sys_error_handler,4,2    ## @venus_sys_error_handler
	.comm	_hfi_isr,4,2                    ## @hfi_isr
	.comm	_hfi_isr_thread,4,2             ## @hfi_isr_thread
	.comm	_IRQF_TRIGGER_HIGH,4,2          ## @IRQF_TRIGGER_HIGH
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"venus"

	.comm	_venus_core_ops,4,2             ## @venus_core_ops
	.comm	_VIDC_SESSION_TYPE_DEC,4,2      ## @VIDC_SESSION_TYPE_DEC
	.comm	_VIDC_SESSION_TYPE_ENC,4,2      ## @VIDC_SESSION_TYPE_ENC
	.no_dead_strip	_venus_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venus_probe
_venus_probe:                           ; @venus_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_24
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #40]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh2:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh4:
	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, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20, #32]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x20]
	tbnz	x0, #63, LBB0_27
; %bb.4:
	mov	x0, x19
	bl	_of_device_get_match_data
	str	x0, [x20, #24]
	cbz	x0, LBB0_28
; %bb.5:
	mov	x0, x20
	bl	_venus_clks_get
	mov	x21, x0
	cbnz	w0, LBB0_26
; %bb.6:
	ldr	x8, [x20, #24]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dma_set_mask_and_coherent
	mov	x21, x0
	cbnz	w0, LBB0_26
; %bb.7:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_9
; %bb.8:
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #1
	bl	_devm_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_24
LBB0_9:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_dma_set_max_seg_size
	add	x0, x20, #20
	bl	_INIT_LIST_HEAD
	add	x0, x20, #16
	bl	_mutex_init
	add	x0, x20, #12
Lloh5:
	adrp	x8, _venus_sys_error_handler@GOTPAGE
Lloh6:
	ldr	x8, [x8, _venus_sys_error_handler@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh8:
	adrp	x8, _hfi_isr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hfi_isr@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _hfi_isr_thread@GOTPAGE
Lloh12:
	ldr	x8, [x8, _hfi_isr_thread@GOTPAGEOFF]
Lloh13:
	adrp	x9, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
Lloh16:
	ldr	w8, [x9]
Lloh17:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh20:
	adrp	x5, l_.str@PAGE
Lloh21:
	add	x5, x5, l_.str@PAGEOFF
	mov	x0, x19
	mov	x6, x20
	bl	_devm_request_threaded_irq
	mov	x21, x0
	cbnz	w0, LBB0_26
; %bb.10:
Lloh22:
	adrp	x1, _venus_core_ops@GOTPAGE
Lloh23:
	ldr	x1, [x1, _venus_core_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_hfi_create
	mov	x21, x0
	cbnz	w0, LBB0_26
; %bb.11:
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_29
; %bb.12:
	ldr	w0, [x19]
	mov	x1, #0
	mov	x2, #0
	mov	x3, x19
	bl	_of_platform_populate
	mov	x21, x0
	cbnz	w0, LBB0_30
; %bb.13:
	mov	x0, x20
	bl	_venus_firmware_init
	mov	x21, x0
	cbnz	w0, LBB0_30
; %bb.14:
	mov	x0, x20
	bl	_venus_boot
	mov	x21, x0
	cbnz	w0, LBB0_30
; %bb.15:
	mov	x0, x20
	mov	w1, #1
	bl	_hfi_core_resume
	mov	x21, x0
	cbnz	w0, LBB0_23
; %bb.16:
	mov	x0, x20
	bl	_hfi_core_init
	mov	x21, x0
	cbnz	w0, LBB0_23
; %bb.17:
Lloh24:
	adrp	x8, _VIDC_SESSION_TYPE_DEC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VIDC_SESSION_TYPE_DEC@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_venus_enumerate_codecs
	mov	x21, x0
	cbnz	w0, LBB0_23
; %bb.18:
Lloh27:
	adrp	x8, _VIDC_SESSION_TYPE_ENC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VIDC_SESSION_TYPE_ENC@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_venus_enumerate_codecs
	mov	x21, x0
	cbnz	w0, LBB0_23
; %bb.19:
	add	x22, x20, #8
	mov	x0, x19
	mov	x1, x22
	bl	_v4l2_device_register
	mov	x21, x0
	cbnz	w0, LBB0_22
; %bb.20:
	mov	x0, x19
	bl	_pm_runtime_put_sync
	mov	x21, x0
	cbz	w0, LBB0_26
; %bb.21:
	mov	x0, x22
	bl	_v4l2_device_unregister
LBB0_22:
	mov	x0, x20
	mov	w1, #0
	bl	_hfi_core_deinit
LBB0_23:
	mov	x0, x20
	bl	_venus_shutdown
	b	LBB0_30
LBB0_24:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_25:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_26:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_27:
	mov	x21, x0
	b	LBB0_26
LBB0_28:
Lloh32:
	adrp	x8, _ENODEV@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_25
LBB0_29:
	mov	x21, x0
LBB0_30:
	mov	x0, x19
	bl	_pm_runtime_set_suspended
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x20
	bl	_hfi_destroy
	b	LBB0_26
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_venus_sys_error_handler,4,2    ; @venus_sys_error_handler
	.comm	_hfi_isr,4,2                    ; @hfi_isr
	.comm	_hfi_isr_thread,4,2             ; @hfi_isr_thread
	.comm	_IRQF_TRIGGER_HIGH,4,2          ; @IRQF_TRIGGER_HIGH
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"venus"

	.comm	_venus_core_ops,4,2             ; @venus_core_ops
	.comm	_VIDC_SESSION_TYPE_DEC,4,2      ; @VIDC_SESSION_TYPE_DEC
	.comm	_VIDC_SESSION_TYPE_ENC,4,2      ; @VIDC_SESSION_TYPE_ENC
	.no_dead_strip	_venus_probe
.subsections_via_symbols
