	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function video_dev_create
_video_dev_create:                      ## @video_dev_create
	.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, %r15
	movl	8(%rdi), %edi
	callq	_to_soc_camera_host
	movq	%rax, %r12
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_video_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	8(%r15), %r13
	movl	48(%rax), %edi
	movl	(%r12), %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	%r13, 40(%rbx)
	movq	_V4L2_STD_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_soc_camera_fops@GOTPCREL(%rip), %rcx
	movq	%rcx, 24(%rbx)
	movq	_soc_camera_ioctl_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%rbx)
	movq	_video_device_release@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movq	%rax, (%rbx)
	movq	%rbx, (%r15)
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_V4L2_STD_UNKNOWN,8,3           ## @V4L2_STD_UNKNOWN
	.comm	_soc_camera_fops,4,2            ## @soc_camera_fops
	.comm	_soc_camera_ioctl_ops,4,2       ## @soc_camera_ioctl_ops
	.comm	_video_device_release,4,2       ## @video_device_release
	.no_dead_strip	_video_dev_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function video_dev_create
_video_dev_create:                      ; @video_dev_create
	.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
	mov	x22, x0
	ldr	w0, [x22, #8]!
	bl	_to_soc_camera_host
	mov	x21, x0
	bl	_video_device_alloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0, #48]
	ldr	w1, [x21]
	mov	w2, #4
	bl	_strlcpy
	mov	w0, #0
Lloh0:
	adrp	x8, _V4L2_STD_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x22, [x20, #32]
Lloh3:
	adrp	x9, _soc_camera_fops@GOTPAGE
Lloh4:
	ldr	x9, [x9, _soc_camera_fops@GOTPAGEOFF]
Lloh5:
	adrp	x10, _soc_camera_ioctl_ops@GOTPAGE
Lloh6:
	ldr	x10, [x10, _soc_camera_ioctl_ops@GOTPAGEOFF]
	stp	x10, x9, [x20, #16]
Lloh7:
	adrp	x9, _video_device_release@GOTPAGE
Lloh8:
	ldr	x9, [x9, _video_device_release@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	str	w9, [x20, #8]
	str	x8, [x20]
	str	x20, [x19]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_V4L2_STD_UNKNOWN,8,3           ; @V4L2_STD_UNKNOWN
	.comm	_soc_camera_fops,4,2            ; @soc_camera_fops
	.comm	_soc_camera_ioctl_ops,4,2       ; @soc_camera_ioctl_ops
	.comm	_video_device_release,4,2       ; @video_device_release
	.no_dead_strip	_video_dev_create
.subsections_via_symbols
