	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa6588_probe
_saa6588_probe:                         ## @saa6588_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
	leaq	4(%r14), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_bufblocks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %esi
	movl	%esi, (%rbx)
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_devm_kzalloc
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	leaq	60(%rbx), %rdi
	movq	_saa6588_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rsi
	callq	_v4l2_i2c_subdev_init
	leaq	56(%rbx), %rdi
	callq	_spin_lock_init
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movq	$0, 48(%rbx)
	movl	$255, 4(%rbx)
	leaq	24(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	callq	_saa6588_configure
	addq	$8, %rbx
	movq	_saa6588_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_DELAYED_WORK
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_schedule_delayed_work
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	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	"saa6588 found @ 0x%x (%s)\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bufblocks,4,2                  ## @bufblocks
	.comm	_saa6588_ops,4,2                ## @saa6588_ops
	.comm	_saa6588_work,4,2               ## @saa6588_work
	.no_dead_strip	_saa6588_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa6588_probe
_saa6588_probe:                         ; @saa6588_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
	add	x21, x20, #4
Lloh2:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh4:
	adrp	x8, _bufblocks@GOTPAGE
Lloh5:
	ldr	x8, [x8, _bufblocks@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	add	w1, w8, w8, lsl #1
	str	w1, [x0]
	ldr	w2, [x22]
	mov	x0, x21
	bl	_devm_kzalloc
	str	x0, [x19, #64]
	cbz	x0, LBB0_3
; %bb.2:
	add	x0, x19, #60
Lloh7:
	adrp	x2, _saa6588_ops@GOTPAGE
Lloh8:
	ldr	x2, [x2, _saa6588_ops@GOTPAGEOFF]
	mov	x1, x20
	bl	_v4l2_i2c_subdev_init
	add	x0, x19, #56
	bl	_spin_lock_init
	stp	xzr, xzr, [x19, #40]
	str	xzr, [x19, #32]
	mov	w8, #255
	str	w8, [x19, #4]
	add	x0, x19, #24
	bl	_init_waitqueue_head
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_saa6588_configure
	add	x19, x19, #8
Lloh9:
	adrp	x8, _saa6588_work@GOTPAGE
Lloh10:
	ldr	x8, [x8, _saa6588_work@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_DELAYED_WORK
	mov	x0, x19
	mov	w1, #0
	bl	_schedule_delayed_work
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"saa6588 found @ 0x%x (%s)\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bufblocks,4,2                  ; @bufblocks
	.comm	_saa6588_ops,4,2                ; @saa6588_ops
	.comm	_saa6588_work,4,2               ; @saa6588_work
	.no_dead_strip	_saa6588_probe
.subsections_via_symbols
