	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa5246a_probe
_saa5246a_probe:                        ## @saa5246a_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edx
	addl	%edx, %edx
	movq	8(%rdi), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_v4l_info
	movq	_MAJOR_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MINOR_VERSION@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	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r12
	leaq	28(%rax), %rdi
	movq	_saa5246a_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	%r12, %rdi
	addq	$24, %rdi
	callq	_mutex_init
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_video_device_alloc
	movq	%rax, 8(%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:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movl	$32, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r12), %rax
	movl	$0, (%rax,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	8(%r12), %rdi
	movq	%r12, %rsi
	callq	_video_set_drvdata
	movq	8(%r12), %rdi
	movq	_VFL_TYPE_VTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edx
	callq	_video_register_device
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jns	LBB0_10
## %bb.6:
	movl	%eax, %r15d
	movq	8(%r12), %rdi
	callq	_video_device_release
	movq	%r12, %rdi
	callq	_kfree
	movl	%r15d, %r14d
	jmp	LBB0_10
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_8:
	movq	%r12, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	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	_MAJOR_VERSION,4,2              ## @MAJOR_VERSION
	.comm	_MINOR_VERSION,4,2              ## @MINOR_VERSION
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_saa5246a_ops,4,2               ## @saa5246a_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	_saa5246a_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa5246a_probe
_saa5246a_probe:                        ; @saa5246a_probe
	.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	x20, x0
	ldr	w8, [x0]
	lsl	w2, w8, #1
	ldr	x8, [x0, #8]
	ldr	w3, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l_info
Lloh2:
	adrp	x8, _MAJOR_VERSION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAJOR_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _MINOR_VERSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MINOR_VERSION@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, #32
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	add	x0, x0, #28
Lloh13:
	adrp	x2, _saa5246a_ops@GOTPAGE
Lloh14:
	ldr	x2, [x2, _saa5246a_ops@GOTPAGEOFF]
	mov	x1, x20
	bl	_v4l2_i2c_subdev_init
	add	x0, x19, #24
	bl	_mutex_init
	bl	_video_device_alloc
	str	x0, [x19, #8]
	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
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	lsl	x22, x21, #2
	ldr	w0, [x8, x22]
	mov	w1, #32
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19]
	str	wzr, [x8, x22]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	x0, [x19, #8]
	mov	x1, x19
	bl	_video_set_drvdata
	ldr	x0, [x19, #8]
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
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, #8]
	bl	_video_device_release
	mov	x0, x19
	bl	_kfree
LBB0_10:
	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 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	_MAJOR_VERSION,4,2              ; @MAJOR_VERSION
	.comm	_MINOR_VERSION,4,2              ; @MINOR_VERSION
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_saa5246a_ops,4,2               ; @saa5246a_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	_saa5246a_probe
.subsections_via_symbols
