	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdev_init
_vdev_init:                             ## @vdev_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_video_device_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movups	(%r12), %xmm0
	movups	%xmm0, (%rbx)
	leaq	16(%r15), %rax
	movq	%rax, 16(%rbx)
	movq	_video_device_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_bttv_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_video_set_drvdata
	movl	(%rbx), %edi
	movl	(%r15), %ecx
	cmpl	$848, %ecx                      ## imm = 0x350
	jne	LBB0_2
## %bb.3:
	cmpl	$18, 4(%r15)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmoveq	%rax, %r8
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str.2(%rip), %r8
LBB0_4:
	movq	_bttv_tvcards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r15), %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	movq	%r14, %r9
	callq	_snprintf
LBB0_5:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_video_device_release,4,2       ## @video_device_release
	.comm	_bttv_debug,4,2                 ## @bttv_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BT%d%s %s (%s)"

L_.str.1:                               ## @.str.1
	.asciz	"A"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_bttv_tvcards,8,3               ## @bttv_tvcards
	.no_dead_strip	_vdev_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdev_init
_vdev_init:                             ; @vdev_init
	.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, x2
	mov	x22, x1
	mov	x21, x0
	bl	_video_device_alloc
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	q0, [x22]
	str	q0, [x20]
	add	x8, x21, #16
	str	x8, [x20, #16]
Lloh0:
	adrp	x8, _video_device_release@GOTPAGE
Lloh1:
	ldr	x8, [x8, _video_device_release@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _bttv_debug@GOTPAGE
Lloh4:
	ldr	x9, [x9, _bttv_debug@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #4]
	mov	x0, x20
	mov	x1, x21
	bl	_video_set_drvdata
	ldr	w0, [x20]
	ldr	w3, [x21]
Lloh6:
	adrp	x4, l_.str.2@PAGE
Lloh7:
	add	x4, x4, l_.str.2@PAGEOFF
	cmp	w3, #848
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x21, #4]
Lloh8:
	adrp	x9, l_.str.1@PAGE
Lloh9:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w8, #18
	csel	x4, x9, x4, eq
LBB0_3:
Lloh10:
	adrp	x8, _bttv_tvcards@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bttv_tvcards@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x9, [x21, #8]
	ldr	w6, [x8, x9, lsl #2]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	mov	x5, x19
	bl	_snprintf
LBB0_4:
	mov	x0, x20
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_video_device_release,4,2       ; @video_device_release
	.comm	_bttv_debug,4,2                 ; @bttv_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BT%d%s %s (%s)"

l_.str.1:                               ; @.str.1
	.asciz	"A"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_bttv_tvcards,8,3               ; @bttv_tvcards
	.no_dead_strip	_vdev_init
.subsections_via_symbols
