	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venc_sub_dev_init              ## -- Begin function venc_sub_dev_init
	.p2align	4, 0x90
_venc_sub_dev_init:                     ## @venc_sub_dev_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	movq	_venc_device_get@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_platform_bus_type@GOTPCREL(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	-32(%rbp), %rdx
	xorl	%esi, %esi
	callq	_bus_for_each_dev
	movq	-32(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	_venc_ops@GOTPCREL(%rip), %rsi
	callq	_v4l2_subdev_init
	movq	-32(%rbp), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_v4l2_device_register_subdev
	testq	%rax, %rax
	js	LBB0_2
## %bb.4:
	movq	-32(%rbp), %rdi
	callq	_venc_initialize
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%r14, %rdi
	callq	_v4l2_err
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	-32(%rbp), %rbx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_platform_bus_type,4,2          ## @platform_bus_type
	.comm	_venc_device_get,4,2            ## @venc_device_get
	.comm	_venc_ops,4,2                   ## @venc_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpbe unable to register venc sub device\n"

L_.str.1:                               ## @.str.1
	.asciz	"vpbe venc initialization failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venc_sub_dev_init              ; -- Begin function venc_sub_dev_init
	.p2align	2
_venc_sub_dev_init:                     ; @venc_sub_dev_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _venc_device_get@GOTPAGE
Lloh1:
	ldr	x8, [x8, _venc_device_get@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x0, _platform_bus_type@GOTPAGE
Lloh4:
	ldr	x0, [x0, _platform_bus_type@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x1, #0
	bl	_bus_for_each_dev
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_7
; %bb.1:
Lloh5:
	adrp	x1, _venc_ops@GOTPAGE
Lloh6:
	ldr	x1, [x1, _venc_ops@GOTPAGEOFF]
	bl	_v4l2_subdev_init
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #4
	bl	_strscpy
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_v4l2_device_register_subdev
	tbnz	x0, #63, LBB0_4
; %bb.2:
	ldr	x0, [sp, #8]
	bl	_venc_initialize
	cbz	x0, LBB0_6
; %bb.3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_v4l2_err
	mov	x0, #0
	b	LBB0_7
LBB0_6:
	ldr	x0, [sp, #8]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_platform_bus_type,4,2          ; @platform_bus_type
	.comm	_venc_device_get,4,2            ; @venc_device_get
	.comm	_venc_ops,4,2                   ; @venc_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpbe unable to register venc sub device\n"

l_.str.1:                               ; @.str.1
	.asciz	"vpbe venc initialization failed\n"

.subsections_via_symbols
