	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_vv_init                ## -- Begin function saa7146_vv_init
	.p2align	4, 0x90
_saa7146_vv_init:                       ## @saa7146_vv_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	24(%rdi), %rdi
	leaq	32(%r12), %rsi
	callq	_v4l2_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	_saa7146_video_ioctl_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, 16(%r15)
	movq	%rax, 8(%r15)
	movq	%r12, %rdi
	callq	_DEB_EE
	movq	_BCS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$-2143289280, %edx              ## imm = 0x80400040
	callq	_saa7146_write
	movq	_MC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASK_10@GOTPCREL(%rip), %rax
	movq	_MASK_26@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_saa7146_write
	movq	%r15, 16(%r12)
	movq	24(%r12), %rdi
	movq	_SAA7146_CLIPPING_MEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdx
	addq	$8, %rdx
	callq	_pci_alloc_consistent
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %edx
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_saa7146_video_uops@GOTPCREL(%rip), %rax
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	movq	16(%r12), %rax
	movq	_V4L2_CAP_VBI_CAPTURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_saa7146_vbi_uops@GOTPCREL(%rip), %rax
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
LBB0_7:
	movq	%r14, 8(%r12)
	movq	_vv_callback@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
	movq	%r14, %rdi
	callq	_kfree
	movl	$-1, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory. aborting.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_saa7146_video_ioctl_ops,4,2    ## @saa7146_video_ioctl_ops
	.comm	_BCS_CTRL,4,2                   ## @BCS_CTRL
	.comm	_MC1,4,2                        ## @MC1
	.comm	_MASK_10,4,2                    ## @MASK_10
	.comm	_MASK_26,4,2                    ## @MASK_26
	.comm	_SAA7146_CLIPPING_MEM,4,2       ## @SAA7146_CLIPPING_MEM
	.comm	_saa7146_video_uops,8,3         ## @saa7146_video_uops
	.comm	_V4L2_CAP_VBI_CAPTURE,4,2       ## @V4L2_CAP_VBI_CAPTURE
	.comm	_saa7146_vbi_uops,8,3           ## @saa7146_vbi_uops
	.comm	_vv_callback,4,2                ## @vv_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_vv_init                ; -- Begin function saa7146_vv_init
	.p2align	2
_saa7146_vv_init:                       ; @saa7146_vv_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, x1
	mov	x19, x0
	ldr	x0, [x0, #24]
	add	x1, x19, #32
	bl	_v4l2_device_register
	cbz	w0, LBB0_2
LBB0_1:
	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
LBB0_2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh3:
	adrp	x8, _saa7146_video_ioctl_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _saa7146_video_ioctl_ops@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x21, #16]
	str	x8, [x21, #8]
	mov	x0, x19
	bl	_DEB_EE
Lloh5:
	adrp	x8, _BCS_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BCS_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #64
	movk	w2, #32832, lsl #16
	bl	_saa7146_write
Lloh8:
	adrp	x8, _MC1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MC1@GOTPAGEOFF]
Lloh10:
	adrp	x9, _MASK_10@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MASK_10@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _MASK_26@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MASK_26@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_saa7146_write
	str	x21, [x19, #16]
	ldr	x0, [x19, #24]
Lloh17:
	adrp	x21, _SAA7146_CLIPPING_MEM@GOTPAGE
Lloh18:
	ldr	x21, [x21, _SAA7146_CLIPPING_MEM@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, x20, #8
	bl	_pci_alloc_consistent
	str	x0, [x20]
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w2, [x21]
	mov	w1, #0
	bl	_memset
Lloh19:
	adrp	x8, _saa7146_video_uops@GOTPAGE
Lloh20:
	ldr	x8, [x8, _saa7146_video_uops@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _V4L2_CAP_VBI_CAPTURE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _V4L2_CAP_VBI_CAPTURE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh25:
	adrp	x8, _saa7146_vbi_uops@GOTPAGE
Lloh26:
	ldr	x8, [x8, _saa7146_vbi_uops@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_6:
	mov	w0, #0
Lloh28:
	adrp	x8, _vv_callback@GOTPAGE
Lloh29:
	ldr	x8, [x8, _vv_callback@GOTPAGEOFF]
	stp	x8, x20, [x19]
	b	LBB0_1
LBB0_7:
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_8:
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
	mov	x0, x20
	bl	_kfree
	mov	w0, #-1
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory. aborting.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_saa7146_video_ioctl_ops,4,2    ; @saa7146_video_ioctl_ops
	.comm	_BCS_CTRL,4,2                   ; @BCS_CTRL
	.comm	_MC1,4,2                        ; @MC1
	.comm	_MASK_10,4,2                    ; @MASK_10
	.comm	_MASK_26,4,2                    ; @MASK_26
	.comm	_SAA7146_CLIPPING_MEM,4,2       ; @SAA7146_CLIPPING_MEM
	.comm	_saa7146_video_uops,8,3         ; @saa7146_video_uops
	.comm	_V4L2_CAP_VBI_CAPTURE,4,2       ; @V4L2_CAP_VBI_CAPTURE
	.comm	_saa7146_vbi_uops,8,3           ; @saa7146_vbi_uops
	.comm	_vv_callback,4,2                ; @vv_callback
.subsections_via_symbols
