	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_medion_register_analog_video
_cxusb_medion_register_analog_video:    ## @cxusb_medion_register_analog_video
	.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, %r14
	movq	8(%rdi), %rbx
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_VB2_MMAP@GOTPCREL(%rip), %rax
	movq	_VB2_USERPTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_VB2_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_VB2_DMABUF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_cxdev_video_qops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movq	_vb2_vmalloc_memops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	%rdi, 32(%rbx)
	movl	$4, 4(%rbx)
	movq	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	$6, 8(%rbx)
	leaq	72(%rbx), %r12
	movq	%r12, 16(%rbx)
	movq	%rbx, %rdi
	callq	_vb2_queue_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_2:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_video_device_alloc
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_videocaps@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%rax)
	movq	_cxusb_video_fops@GOTPCREL(%rip), %rcx
	movq	%rcx, 48(%rax)
	leaq	76(%rbx), %rcx
	movq	%rcx, 40(%rax)
	movq	%rbx, 32(%rax)
	movl	28(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_VFL_DIR_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	64(%rbx), %rdi
	movl	%eax, 24(%rdi)
	movq	_cxusb_video_ioctl@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rdi)
	movq	_V4L2_STD_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	movq	_cxusb_medion_videodev_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movq	%r12, (%rdi)
	movq	%r14, %rsi
	callq	_video_set_drvdata
	movq	64(%rbx), %rdi
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edx
	callq	_video_register_device
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r12d
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	64(%rbx), %rdi
	callq	_video_device_release
	movl	%r12d, %r15d
	jmp	LBB0_6
LBB0_3:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_6:
	movq	%rbx, %rdi
	callq	_vb2_queue_release
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_VB2_MMAP,4,2                   ## @VB2_MMAP
	.comm	_VB2_USERPTR,4,2                ## @VB2_USERPTR
	.comm	_VB2_READ,4,2                   ## @VB2_READ
	.comm	_VB2_DMABUF,4,2                 ## @VB2_DMABUF
	.comm	_cxdev_video_qops,4,2           ## @cxdev_video_qops
	.comm	_vb2_vmalloc_memops,4,2         ## @vb2_vmalloc_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ## @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"video queue init failed, ret = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"video device alloc failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_videocaps,4,2                  ## @videocaps
	.comm	_cxusb_video_fops,4,2           ## @cxusb_video_fops
L_.str.2:                               ## @.str.2
	.asciz	"cxusb"

	.comm	_VFL_DIR_RX,4,2                 ## @VFL_DIR_RX
	.comm	_cxusb_video_ioctl,4,2          ## @cxusb_video_ioctl
	.comm	_V4L2_STD_ALL,4,2               ## @V4L2_STD_ALL
	.comm	_cxusb_medion_videodev_release,4,2 ## @cxusb_medion_videodev_release
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
L_.str.3:                               ## @.str.3
	.asciz	"video device register failed, ret = %d\n"

	.no_dead_strip	_cxusb_medion_register_analog_video
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cxusb_medion_register_analog_video
lCPI0_0:
	.long	4                               ; 0x4
	.long	6                               ; 0x6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cxusb_medion_register_analog_video:    ; @cxusb_medion_register_analog_video
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #56]
Lloh3:
	adrp	x8, _VB2_MMAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VB2_MMAP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _VB2_USERPTR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VB2_USERPTR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _VB2_READ@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VB2_READ@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _VB2_DMABUF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VB2_DMABUF@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh15:
	adrp	x8, _cxdev_video_qops@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cxdev_video_qops@GOTPAGEOFF]
Lloh17:
	adrp	x9, _vb2_vmalloc_memops@GOTPAGE
Lloh18:
	ldr	x9, [x9, _vb2_vmalloc_memops@GOTPAGEOFF]
	stp	x9, x8, [x19, #40]
	str	x0, [x19, #32]
Lloh19:
	adrp	x8, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh22:
	adrp	x8, lCPI0_0@PAGE
Lloh23:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
	add	x22, x19, #72
	str	x22, [x19, #16]
	mov	x0, x19
	bl	_vb2_queue_init
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x0, [x20]
	str	x21, [sp]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_2:
	bl	_video_device_alloc
	str	x0, [x19, #64]
	cbz	x0, LBB0_5
; %bb.3:
Lloh26:
	adrp	x8, _videocaps@GOTPAGE
Lloh27:
	ldr	x8, [x8, _videocaps@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _cxusb_video_fops@GOTPAGE
Lloh30:
	ldr	x9, [x9, _cxusb_video_fops@GOTPAGEOFF]
	str	w8, [x0, #56]
	add	x8, x19, #76
	stp	x8, x9, [x0, #40]
	str	x19, [x0, #32]
	ldr	w0, [x0, #28]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #4
	bl	_strscpy
Lloh33:
	adrp	x8, _VFL_DIR_RX@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VFL_DIR_RX@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	x0, [x19, #64]
	str	w8, [x0, #24]
Lloh36:
	adrp	x8, _cxusb_video_ioctl@GOTPAGE
Lloh37:
	ldr	x8, [x8, _cxusb_video_ioctl@GOTPAGEOFF]
	str	x8, [x0, #16]
Lloh38:
	adrp	x8, _V4L2_STD_ALL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _V4L2_STD_ALL@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _cxusb_medion_videodev_release@GOTPAGE
Lloh42:
	ldr	x9, [x9, _cxusb_medion_videodev_release@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	str	x22, [x0]
	mov	x1, x20
	bl	_video_set_drvdata
	ldr	x0, [x19, #64]
Lloh44:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh45:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	w2, #-1
	bl	_video_register_device
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x0, [x20]
	str	x21, [sp]
Lloh47:
	adrp	x1, l_.str.3@PAGE
Lloh48:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #64]
	bl	_video_device_release
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_6
LBB0_5:
	ldr	x0, [x20]
Lloh49:
	adrp	x1, l_.str.1@PAGE
Lloh50:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh51:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x19
	bl	_vb2_queue_release
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_VB2_MMAP,4,2                   ; @VB2_MMAP
	.comm	_VB2_USERPTR,4,2                ; @VB2_USERPTR
	.comm	_VB2_READ,4,2                   ; @VB2_READ
	.comm	_VB2_DMABUF,4,2                 ; @VB2_DMABUF
	.comm	_cxdev_video_qops,4,2           ; @cxdev_video_qops
	.comm	_vb2_vmalloc_memops,4,2         ; @vb2_vmalloc_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ; @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"video queue init failed, ret = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"video device alloc failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_videocaps,4,2                  ; @videocaps
	.comm	_cxusb_video_fops,4,2           ; @cxusb_video_fops
l_.str.2:                               ; @.str.2
	.asciz	"cxusb"

	.comm	_VFL_DIR_RX,4,2                 ; @VFL_DIR_RX
	.comm	_cxusb_video_ioctl,4,2          ; @cxusb_video_ioctl
	.comm	_V4L2_STD_ALL,4,2               ; @V4L2_STD_ALL
	.comm	_cxusb_medion_videodev_release,4,2 ; @cxusb_medion_videodev_release
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
l_.str.3:                               ; @.str.3
	.asciz	"video device register failed, ret = %d\n"

	.no_dead_strip	_cxusb_medion_register_analog_video
.subsections_via_symbols
