	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdx), %rax
	movq	%rax, (%rsi)
	leaq	24(%rdi), %rax
	movq	%rax, 8(%rsi)
	movq	_video_device_release_empty@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rsi)
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	movl	(%r14), %edi
	movl	(%rbx), %ecx
	cmpl	$848, %ecx                      ## imm = 0x350
	jne	LBB0_1
## %bb.2:
	cmpl	$18, 4(%rbx)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmoveq	%rax, %r8
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.2(%rip), %r8
LBB0_3:
	movq	_bttv_tvcards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rbx), %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	movq	%r15, %r9
	callq	_snprintf
	movq	8(%rbx), %rax
	movq	_TUNER_ABSENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_VIDIOC_G_FREQUENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_disable_ioctl
	movq	_VIDIOC_S_FREQUENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_disable_ioctl
	movq	_VIDIOC_G_TUNER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_disable_ioctl
	movq	_VIDIOC_S_TUNER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_disable_ioctl             ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_video_device_release_empty,4,2 ## @video_device_release_empty
	.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
	.comm	_TUNER_ABSENT,8,3               ## @TUNER_ABSENT
	.comm	_VIDIOC_G_FREQUENCY,4,2         ## @VIDIOC_G_FREQUENCY
	.comm	_VIDIOC_S_FREQUENCY,4,2         ## @VIDIOC_S_FREQUENCY
	.comm	_VIDIOC_G_TUNER,4,2             ## @VIDIOC_G_TUNER
	.comm	_VIDIOC_S_TUNER,4,2             ## @VIDIOC_S_TUNER
	.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	x21, x3
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x2]
	add	x9, x0, #24
	stp	x8, x9, [x1]
Lloh0:
	adrp	x8, _video_device_release_empty@GOTPAGE
Lloh1:
	ldr	x8, [x8, _video_device_release_empty@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #4]
	mov	x0, x1
	mov	x1, x20
	bl	_video_set_drvdata
	ldr	w0, [x19]
	ldr	w3, [x20]
Lloh3:
	adrp	x4, l_.str.2@PAGE
Lloh4:
	add	x4, x4, l_.str.2@PAGEOFF
	cmp	w3, #848
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x20, #4]
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w8, #18
	csel	x4, x9, x4, eq
LBB0_2:
Lloh7:
	adrp	x8, _bttv_tvcards@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bttv_tvcards@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x9, [x20, #16]
	ldr	w6, [x8, x9, lsl #2]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	mov	x5, x21
	bl	_snprintf
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x9, _TUNER_ABSENT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TUNER_ABSENT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _VIDIOC_G_FREQUENCY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VIDIOC_G_FREQUENCY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_v4l2_disable_ioctl
Lloh18:
	adrp	x8, _VIDIOC_S_FREQUENCY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VIDIOC_S_FREQUENCY@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_v4l2_disable_ioctl
Lloh21:
	adrp	x8, _VIDIOC_G_TUNER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VIDIOC_G_TUNER@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_v4l2_disable_ioctl
Lloh24:
	adrp	x8, _VIDIOC_S_TUNER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VIDIOC_S_TUNER@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_v4l2_disable_ioctl
LBB0_4:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_video_device_release_empty,4,2 ; @video_device_release_empty
	.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
	.comm	_TUNER_ABSENT,8,3               ; @TUNER_ABSENT
	.comm	_VIDIOC_G_FREQUENCY,4,2         ; @VIDIOC_G_FREQUENCY
	.comm	_VIDIOC_S_FREQUENCY,4,2         ; @VIDIOC_S_FREQUENCY
	.comm	_VIDIOC_G_TUNER,4,2             ; @VIDIOC_G_TUNER
	.comm	_VIDIOC_S_TUNER,4,2             ; @VIDIOC_S_TUNER
	.no_dead_strip	_vdev_init
.subsections_via_symbols
