	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7127_probe
_saa7127_probe:                         ## @saa7127_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	8(%rdi), %rdi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %r8d
	addl	%r8d, %r8d
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r13, %rdx
	callq	_v4l_dbg
	leaq	20(%r13), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r14
	leaq	8(%rax), %r15
	movq	_saa7127_ops@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_v4l2_i2c_subdev_init
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_saa7127_read
	testb	$-28, %al
	jne	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	movl	$41, %esi
	callq	_saa7127_read
	andl	$63, %eax
	cmpl	$29, %eax
	jne	LBB0_7
## %bb.4:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, (%r14)
	jmp	LBB0_16
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	callq	_v4l2_dbg
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_SAA7129_REG_FADE_KEY_COL2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_saa7127_read
	movl	%eax, %r12d
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$170, %edx
	callq	_saa7127_write
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_saa7127_read
	cmpl	$170, %eax
	jne	LBB0_14
## %bb.13:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_saa7127_write
	movq	_SAA7129@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	16(%r13), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_15
LBB0_14:
	movq	_SAA7127@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	16(%r13), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
LBB0_15:
	callq	_strscpy
LBB0_16:
	movl	16(%r13), %edx
	movl	(%r13), %ecx
	addl	%ecx, %ecx
	movq	8(%r13), %rax
	movl	(%rax), %r8d
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_info
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	callq	_v4l2_dbg
	movq	_saa7127_init_config_common@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_saa7127_write_inittab
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_saa7127_set_std
	movq	_SAA7127_OUTPUT_TYPE_BOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_saa7127_set_output_type
	leaq	-64(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_saa7127_set_vps
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_saa7127_set_wss
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_saa7127_set_cc
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_saa7127_set_xds
	movq	_test_image@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_18
## %bb.17:
	movq	_SAA7127_INPUT_TYPE_TEST_IMAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movq	_SAA7127_INPUT_TYPE_NORMAL@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_saa7127_set_input_type
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_saa7127_set_video_enable
	movq	(%r14), %rax
	movq	_SAA7129@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.20:
	movq	_saa7129_init_config_extra@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_saa7127_write_inittab
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_EIO,4,2                        ## @EIO
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"detecting saa7127 client on address 0x%x\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_saa7127_ops,4,2                ## @saa7127_ops
L_.str.1:                               ## @.str.1
	.asciz	"saa7127 not found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SAA7129_REG_FADE_KEY_COL2,4,2  ## @SAA7129_REG_FADE_KEY_COL2
	.comm	_SAA7129,8,3                    ## @SAA7129
L_.str.2:                               ## @.str.2
	.asciz	"saa7129"

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.comm	_SAA7127,8,3                    ## @SAA7127
L_.str.3:                               ## @.str.3
	.asciz	"saa7127"

L_.str.4:                               ## @.str.4
	.asciz	"%s found @ 0x%x (%s)\n"

L_.str.5:                               ## @.str.5
	.asciz	"Configuring encoder\n"

	.comm	_saa7127_init_config_common,4,2 ## @saa7127_init_config_common
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_SAA7127_OUTPUT_TYPE_BOTH,4,2   ## @SAA7127_OUTPUT_TYPE_BOTH
	.comm	_test_image,4,2                 ## @test_image
	.comm	_SAA7127_INPUT_TYPE_TEST_IMAGE,4,2 ## @SAA7127_INPUT_TYPE_TEST_IMAGE
	.comm	_SAA7127_INPUT_TYPE_NORMAL,4,2  ## @SAA7127_INPUT_TYPE_NORMAL
	.comm	_saa7129_init_config_extra,4,2  ## @saa7129_init_config_extra
	.no_dead_strip	_saa7127_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7127_probe
_saa7127_probe:                         ; @saa7127_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x21, x0
	stp	xzr, xzr, [sp]
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x24, _debug@GOTPAGE
Lloh4:
	ldr	x24, [x24, _debug@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x19, x21
	ldr	w8, [x19], #20
	lsl	w4, w8, #1
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_v4l_dbg
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	add	x19, x0, #8
Lloh10:
	adrp	x2, _saa7127_ops@GOTPAGE
Lloh11:
	ldr	x2, [x2, _saa7127_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	bl	_v4l2_i2c_subdev_init
	mov	x0, x19
	mov	w1, #0
	bl	_saa7127_read
	mov	w8, #228
	tst	w0, w8
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x19
	mov	w1, #41
	bl	_saa7127_read
	and	w8, w0, #0x3f
	cmp	w8, #29
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x22]
Lloh12:
	adrp	x23, _SAA7129@GOTPAGE
Lloh13:
	ldr	x23, [x23, _SAA7129@GOTPAGEOFF]
	cbz	x8, LBB0_11
; %bb.5:
	str	x8, [x20]
	b	LBB0_15
LBB0_6:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	ldr	w1, [x24]
Lloh16:
	adrp	x3, l_.str.1@PAGE
Lloh17:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
Lloh22:
	adrp	x25, _SAA7129_REG_FADE_KEY_COL2@GOTPAGE
Lloh23:
	ldr	x25, [x25, _SAA7129_REG_FADE_KEY_COL2@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_saa7127_read
	mov	x22, x0
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #170
	bl	_saa7127_write
	ldr	w1, [x25]
	mov	x0, x19
	bl	_saa7127_read
	cmp	w0, #170
	b.ne	LBB0_13
; %bb.12:
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x22
	bl	_saa7127_write
	ldr	x8, [x23]
	str	x8, [x20]
	ldr	w0, [x21, #16]
Lloh24:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh29:
	adrp	x8, _SAA7127@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SAA7127@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	w0, [x21, #16]
Lloh32:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_14:
	bl	_strscpy
LBB0_15:
	ldr	w2, [x21, #16]
	ldr	w8, [x21]
	lsl	w3, w8, #1
	ldr	x8, [x21, #8]
	ldr	w4, [x8]
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
	ldr	w1, [x24]
Lloh39:
	adrp	x3, l_.str.5@PAGE
Lloh40:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
Lloh41:
	adrp	x8, _saa7127_init_config_common@GOTPAGE
Lloh42:
	ldr	x8, [x8, _saa7127_init_config_common@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_saa7127_write_inittab
Lloh44:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh45:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_saa7127_set_std
Lloh47:
	adrp	x8, _SAA7127_OUTPUT_TYPE_BOTH@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SAA7127_OUTPUT_TYPE_BOTH@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_saa7127_set_output_type
	mov	x1, sp
	mov	x0, x19
	bl	_saa7127_set_vps
	mov	x1, sp
	mov	x0, x19
	bl	_saa7127_set_wss
	mov	x1, sp
	mov	x0, x19
	bl	_saa7127_set_cc
	mov	x1, sp
	mov	x0, x19
	bl	_saa7127_set_xds
Lloh50:
	adrp	x8, _test_image@GOTPAGE
Lloh51:
	ldr	x8, [x8, _test_image@GOTPAGEOFF]
Lloh52:
	adrp	x9, _SAA7127_INPUT_TYPE_TEST_IMAGE@GOTPAGE
Lloh53:
	ldr	x9, [x9, _SAA7127_INPUT_TYPE_TEST_IMAGE@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
Lloh55:
	adrp	x10, _SAA7127_INPUT_TYPE_NORMAL@GOTPAGE
Lloh56:
	ldr	x10, [x10, _SAA7127_INPUT_TYPE_NORMAL@GOTPAGEOFF]
	cmp	w8, #1
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_saa7127_set_input_type
	mov	x0, x19
	mov	w1, #1
	bl	_saa7127_set_video_enable
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
Lloh57:
	adrp	x8, _saa7129_init_config_extra@GOTPAGE
Lloh58:
	ldr	x8, [x8, _saa7129_init_config_extra@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_saa7127_write_inittab
LBB0_17:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh54
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_EIO,4,2                        ; @EIO
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"detecting saa7127 client on address 0x%x\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_saa7127_ops,4,2                ; @saa7127_ops
l_.str.1:                               ; @.str.1
	.asciz	"saa7127 not found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SAA7129_REG_FADE_KEY_COL2,4,2  ; @SAA7129_REG_FADE_KEY_COL2
	.comm	_SAA7129,8,3                    ; @SAA7129
l_.str.2:                               ; @.str.2
	.asciz	"saa7129"

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.comm	_SAA7127,8,3                    ; @SAA7127
l_.str.3:                               ; @.str.3
	.asciz	"saa7127"

l_.str.4:                               ; @.str.4
	.asciz	"%s found @ 0x%x (%s)\n"

l_.str.5:                               ; @.str.5
	.asciz	"Configuring encoder\n"

	.comm	_saa7127_init_config_common,4,2 ; @saa7127_init_config_common
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_SAA7127_OUTPUT_TYPE_BOTH,4,2   ; @SAA7127_OUTPUT_TYPE_BOTH
	.comm	_test_image,4,2                 ; @test_image
	.comm	_SAA7127_INPUT_TYPE_TEST_IMAGE,4,2 ; @SAA7127_INPUT_TYPE_TEST_IMAGE
	.comm	_SAA7127_INPUT_TYPE_NORMAL,4,2  ; @SAA7127_INPUT_TYPE_NORMAL
	.comm	_saa7129_init_config_extra,4,2  ; @saa7129_init_config_extra
	.no_dead_strip	_saa7127_probe
.subsections_via_symbols
