	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hva_probe
_hva_probe:                             ## @hva_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, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_coerce_mask_and_coherent
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	movq	%r15, 32(%r14)
	movq	%r15, 24(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_hva_hw_probe
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	%r14, %rdi
	callq	_register_encoders
	movq	%r14, %rdi
	callq	_register_formats
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	_HVA_PREFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HVA_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_HVA_NAME@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_create_workqueue
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_hva_register_device
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_destroy_workqueue
	jmp	LBB0_11
LBB0_7:
	movq	_HVA_PREFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	%r14, %rdi
	callq	_v4l2_device_unregister
LBB0_12:
	movq	%r14, %rdi
	callq	_hva_hw_remove
	jmp	LBB0_13
LBB0_9:
	movq	_HVA_PREFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	8(%r14), %rax
	movl	(%rax), %r8d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %s failed to register V4L2 device\n"

	.comm	_HVA_PREFIX,4,2                 ## @HVA_PREFIX
	.comm	_HVA_NAME,4,2                   ## @HVA_NAME
L_.str.1:                               ## @.str.1
	.asciz	"%s %s failed to allocate work queue\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s %s registered as /dev/video%d\n"

	.no_dead_strip	_hva_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hva_probe
_hva_probe:                             ; @hva_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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_dma_coerce_mask_and_coherent
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	stp	x20, x20, [x19, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	add	x0, x19, #16
	bl	_mutex_init
	mov	x0, x20
	mov	x1, x19
	bl	_hva_hw_probe
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_register_encoders
	mov	x0, x19
	bl	_register_formats
	mov	x0, x20
	mov	x1, x19
	bl	_v4l2_device_register
	cbz	w0, LBB0_7
; %bb.4:
	mov	x21, x0
Lloh3:
	adrp	x8, _HVA_PREFIX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HVA_PREFIX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _HVA_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HVA_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_12
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	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_7:
Lloh14:
	adrp	x22, _HVA_NAME@GOTPAGE
Lloh15:
	ldr	x22, [x22, _HVA_NAME@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_create_workqueue
	str	w0, [x19, #4]
	cbz	w0, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_hva_register_device
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.9:
	ldr	w0, [x19, #4]
	bl	_destroy_workqueue
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x8, _HVA_PREFIX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HVA_PREFIX@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	ldr	w3, [x22]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x19
	bl	_v4l2_device_unregister
LBB0_12:
	mov	x0, x19
	bl	_hva_hw_remove
	b	LBB0_6
LBB0_13:
Lloh24:
	adrp	x8, _HVA_PREFIX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HVA_PREFIX@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	ldr	w3, [x22]
	ldr	x8, [x19, #8]
	ldr	w4, [x8]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %s failed to register V4L2 device\n"

	.comm	_HVA_PREFIX,4,2                 ; @HVA_PREFIX
	.comm	_HVA_NAME,4,2                   ; @HVA_NAME
l_.str.1:                               ; @.str.1
	.asciz	"%s %s failed to allocate work queue\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s %s registered as /dev/video%d\n"

	.no_dead_strip	_hva_probe
.subsections_via_symbols
