	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw2804_probe
_tw2804_probe:                          ## @tw2804_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
	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_1
## %bb.3:
	leaq	16(%r14), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	leaq	16(%rax), %r15
	movq	_tw2804_ops@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_v4l2_i2c_subdev_init
	movl	$-1, (%r13)
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	addq	$4, %r13
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, (%rsp)
	movq	_tw2804_ctrl_ops@GOTPCREL(%rip), %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, (%rsp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_SATURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, (%rsp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_HUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, (%rsp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_COLOR_KILLER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_AUTOGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, (%rsp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_V4L2_CTRL_FLAG_VOLATILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_7:
	movq	_V4L2_CID_CHROMA_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, (%rsp)
	movq	_tw2804_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_V4L2_CTRL_FLAG_VOLATILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_9:
	movq	_V4L2_CID_BLUE_BALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$122, (%rsp)
	movq	_tw2804_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_V4L2_CTRL_FLAG_VOLATILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_11:
	movq	_V4L2_CID_RED_BALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$122, (%rsp)
	movq	_tw2804_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_V4L2_CTRL_FLAG_VOLATILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_13:
	movq	%r13, (%r15)
	movl	(%r13), %ebx
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_16
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_15:
	movl	(%r14), %edx
	addl	%edx, %edx
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l_info
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tw2804_ops,4,2                 ## @tw2804_ops
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_tw2804_ctrl_ops,4,2            ## @tw2804_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ## @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ## @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_SATURATION,4,2        ## @V4L2_CID_SATURATION
	.comm	_V4L2_CID_HUE,4,2               ## @V4L2_CID_HUE
	.comm	_V4L2_CID_COLOR_KILLER,4,2      ## @V4L2_CID_COLOR_KILLER
	.comm	_V4L2_CID_AUTOGAIN,4,2          ## @V4L2_CID_AUTOGAIN
	.comm	_V4L2_CID_GAIN,4,2              ## @V4L2_CID_GAIN
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ## @V4L2_CTRL_FLAG_VOLATILE
	.comm	_V4L2_CID_CHROMA_GAIN,4,2       ## @V4L2_CID_CHROMA_GAIN
	.comm	_V4L2_CID_BLUE_BALANCE,4,2      ## @V4L2_CID_BLUE_BALANCE
	.comm	_V4L2_CID_RED_BALANCE,4,2       ## @V4L2_CID_RED_BALANCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chip found @ 0x%02x (%s)\n"

	.no_dead_strip	_tw2804_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw2804_probe
_tw2804_probe:                          ; @tw2804_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	x19, x0
	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_12
; %bb.1:
	add	x0, x19, #16
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.2:
	mov	x21, x0
	add	x20, x0, #16
Lloh6:
	adrp	x2, _tw2804_ops@GOTPAGE
Lloh7:
	ldr	x2, [x2, _tw2804_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_v4l2_i2c_subdev_init
	mov	w8, #-1
	str	w8, [x21]
Lloh8:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	add	x21, x21, #4
	mov	x0, x21
	mov	w1, #10
	bl	_v4l2_ctrl_handler_init
Lloh11:
	adrp	x8, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x22, _tw2804_ctrl_ops@GOTPAGE
Lloh15:
	ldr	x22, [x22, _tw2804_ctrl_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
	bl	_v4l2_ctrl_new_std
Lloh16:
	adrp	x8, _V4L2_CID_CONTRAST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V4L2_CID_CONTRAST@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
	bl	_v4l2_ctrl_new_std
Lloh19:
	adrp	x8, _V4L2_CID_SATURATION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_CID_SATURATION@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
	bl	_v4l2_ctrl_new_std
Lloh22:
	adrp	x8, _V4L2_CID_HUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _V4L2_CID_HUE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
	bl	_v4l2_ctrl_new_std
Lloh25:
	adrp	x8, _V4L2_CID_COLOR_KILLER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _V4L2_CID_COLOR_KILLER@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh28:
	adrp	x8, _V4L2_CID_AUTOGAIN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _V4L2_CID_AUTOGAIN@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh31:
	adrp	x8, _V4L2_CID_GAIN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _V4L2_CID_GAIN@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
	bl	_v4l2_ctrl_new_std
Lloh34:
	adrp	x22, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGE
Lloh35:
	ldr	x22, [x22, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x22]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_4:
Lloh36:
	adrp	x8, _V4L2_CID_CHROMA_GAIN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _V4L2_CID_CHROMA_GAIN@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
Lloh39:
	adrp	x1, _tw2804_ctrl_ops@GOTPAGE
Lloh40:
	ldr	x1, [x1, _tw2804_ctrl_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
	bl	_v4l2_ctrl_new_std
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w8, [x22]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_6:
Lloh41:
	adrp	x8, _V4L2_CID_BLUE_BALANCE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _V4L2_CID_BLUE_BALANCE@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
Lloh44:
	adrp	x1, _tw2804_ctrl_ops@GOTPAGE
Lloh45:
	ldr	x1, [x1, _tw2804_ctrl_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #122
	bl	_v4l2_ctrl_new_std
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x22]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_8:
Lloh46:
	adrp	x8, _V4L2_CID_RED_BALANCE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _V4L2_CID_RED_BALANCE@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
Lloh49:
	adrp	x1, _tw2804_ctrl_ops@GOTPAGE
Lloh50:
	ldr	x1, [x1, _tw2804_ctrl_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #122
	bl	_v4l2_ctrl_new_std
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w8, [x22]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_10:
	str	x21, [x20]
	ldr	w20, [x21]
	cbz	w20, LBB0_15
; %bb.11:
	mov	x0, x21
	bl	_v4l2_ctrl_handler_free
	b	LBB0_16
LBB0_12:
Lloh51:
	adrp	x8, _ENODEV@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh53:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
LBB0_15:
	ldr	w8, [x19]
	lsl	w2, w8, #1
	ldr	x8, [x19, #8]
	ldr	w3, [x8]
Lloh55:
	adrp	x1, l_.str@PAGE
Lloh56:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_v4l_info
LBB0_16:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tw2804_ops,4,2                 ; @tw2804_ops
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_tw2804_ctrl_ops,4,2            ; @tw2804_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ; @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ; @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_SATURATION,4,2        ; @V4L2_CID_SATURATION
	.comm	_V4L2_CID_HUE,4,2               ; @V4L2_CID_HUE
	.comm	_V4L2_CID_COLOR_KILLER,4,2      ; @V4L2_CID_COLOR_KILLER
	.comm	_V4L2_CID_AUTOGAIN,4,2          ; @V4L2_CID_AUTOGAIN
	.comm	_V4L2_CID_GAIN,4,2              ; @V4L2_CID_GAIN
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ; @V4L2_CTRL_FLAG_VOLATILE
	.comm	_V4L2_CID_CHROMA_GAIN,4,2       ; @V4L2_CID_CHROMA_GAIN
	.comm	_V4L2_CID_BLUE_BALANCE,4,2      ; @V4L2_CID_BLUE_BALANCE
	.comm	_V4L2_CID_RED_BALANCE,4,2       ; @V4L2_CID_RED_BALANCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chip found @ 0x%02x (%s)\n"

	.no_dead_strip	_tw2804_probe
.subsections_via_symbols
