	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa5249_probe
_saa5249_probe:                         ## @saa5249_probe
	.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, %r14
	movl	(%rdi), %edx
	addl	%edx, %edx
	movq	40(%rdi), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_v4l_info
	movq	_VTX_VER_MAJ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VTX_VER_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l_info
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r12
	leaq	36(%rax), %rdi
	movq	_saa5249_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	%r12, %rdi
	addq	$32, %rdi
	callq	_mutex_init
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_video_device_alloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	_saa_template@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	_NUM_DAUS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.3:
	movq	24(%r12), %rax
	xorl	%ebx, %ebx
	movabsq	$4294967297, %r15               ## imm = 0x100000001
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%rax,%rbx,8), %edi
	movl	$32, %esi
	movl	$4, %edx
	callq	_memset
	movq	24(%r12), %rax
	movl	20(%rax,%rbx,8), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	24(%r12), %rax
	movl	16(%rax,%rbx,8), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	24(%r12), %rax
	movq	$0, 8(%rax,%rbx,8)
	movq	%r15, (%rax,%rbx,8)
	movq	8(%r12), %rcx
	movl	$0, (%rcx,%rbx)
	incq	%r13
	movslq	(%r14), %rcx
	addq	$4, %rbx
	cmpq	%rcx, %r13
	jl	LBB0_4
LBB0_5:
	movq	16(%r12), %rdi
	movq	%r12, %rsi
	callq	_video_set_drvdata
	movq	16(%r12), %rdi
	movq	_VFL_TYPE_VTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edx
	callq	_video_register_device
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jns	LBB0_10
## %bb.6:
	movl	%eax, %r14d
	movq	16(%r12), %rdi
	callq	_video_device_release
	movq	%r12, %rdi
	callq	_kfree
	movl	%r14d, %r15d
	jmp	LBB0_10
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_8:
	movq	%r12, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chip found @ 0x%x (%s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"VideoText version %d.%d\n"

	.comm	_VTX_VER_MAJ,4,2                ## @VTX_VER_MAJ
	.comm	_VTX_VER_MIN,4,2                ## @VTX_VER_MIN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_saa5249_ops,4,2                ## @saa5249_ops
	.comm	_saa_template,4,2               ## @saa_template
	.comm	_NUM_DAUS,4,2                   ## @NUM_DAUS
	.comm	_VFL_TYPE_VTX,4,2               ## @VFL_TYPE_VTX
	.no_dead_strip	_saa5249_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa5249_probe
_saa5249_probe:                         ; @saa5249_probe
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	mov	x20, x0
	ldr	w8, [x0]
	lsl	w2, w8, #1
	ldr	x8, [x0, #40]
	ldr	w3, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l_info
Lloh2:
	adrp	x8, _VTX_VER_MAJ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VTX_VER_MAJ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _VTX_VER_MIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VTX_VER_MIN@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_v4l_info
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	add	x0, x0, #36
Lloh13:
	adrp	x2, _saa5249_ops@GOTPAGE
Lloh14:
	ldr	x2, [x2, _saa5249_ops@GOTPAGEOFF]
	mov	x1, x20
	bl	_v4l2_i2c_subdev_init
	add	x0, x19, #32
	bl	_mutex_init
	bl	_video_device_alloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.2:
Lloh15:
	adrp	x1, _saa_template@GOTPAGE
Lloh16:
	ldr	x1, [x1, _saa_template@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
Lloh17:
	adrp	x20, _NUM_DAUS@GOTPAGE
Lloh18:
	ldr	x20, [x20, _NUM_DAUS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
	mov	x22, #0
	ldr	x8, [x19, #24]
	movi.2s	v8, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x21
	ldr	w0, [x8, #24]
	mov	w1, #32
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19, #24]
	add	x8, x8, x21
	ldr	w0, [x8, #20]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19, #24]
	add	x8, x8, x21
	ldr	w0, [x8, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19, #24]
	add	x9, x8, x21
	str	xzr, [x9, #8]
	str	d8, [x9]
	ldr	x9, [x19, #8]
	str	wzr, [x9, x22, lsl #2]
	add	x22, x22, #1
	ldrsw	x9, [x20]
	add	x21, x21, #32
	cmp	x22, x9
	b.lt	LBB0_4
LBB0_5:
	ldr	x0, [x19, #16]
	mov	x1, x19
	bl	_video_set_drvdata
	ldr	x0, [x19, #16]
Lloh19:
	adrp	x8, _VFL_TYPE_VTX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VFL_TYPE_VTX@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w2, #-1
	bl	_video_register_device
	tbnz	w0, #31, LBB0_9
; %bb.6:
	mov	w20, #0
	b	LBB0_10
LBB0_7:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	bl	_kfree
LBB0_8:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_9:
	mov	x20, x0
	ldr	x0, [x19, #16]
	bl	_video_device_release
	mov	x0, x19
	bl	_kfree
LBB0_10:
	mov	x0, x20
	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
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chip found @ 0x%x (%s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"VideoText version %d.%d\n"

	.comm	_VTX_VER_MAJ,4,2                ; @VTX_VER_MAJ
	.comm	_VTX_VER_MIN,4,2                ; @VTX_VER_MIN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_saa5249_ops,4,2                ; @saa5249_ops
	.comm	_saa_template,4,2               ; @saa_template
	.comm	_NUM_DAUS,4,2                   ; @NUM_DAUS
	.comm	_VFL_TYPE_VTX,4,2               ; @VFL_TYPE_VTX
	.no_dead_strip	_saa5249_probe
.subsections_via_symbols
