	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw9903_probe
_tw9903_probe:                          ## @tw9903_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	%rdi, %r12
	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.2:
	movl	(%r12), %edx
	addl	%edx, %edx
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_v4l_info
	leaq	4(%r12), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	leaq	8(%rax), %rdi
	movq	_tw9903_ops@GOTPCREL(%rip), %rdx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	%r14, %r13
	addq	$4, %r13
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_tw9903_ctrl_ops@GOTPCREL(%rip), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$-128, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$96, (%rsp)
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%r15, %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	$0, (%rsp)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$-128, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%r13, 8(%r14)
	movl	4(%r14), %r15d
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_v4l2_ctrl_handler_free
	movl	%r15d, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_initial_registers@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_write_regs
	testq	%rax, %rax
	jns	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %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	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chip found @ 0x%02x (%s)\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tw9903_ops,4,2                 ## @tw9903_ops
	.comm	_tw9903_ctrl_ops,4,2            ## @tw9903_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ## @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ## @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_HUE,4,2               ## @V4L2_CID_HUE
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_initial_registers,4,2          ## @initial_registers
L_.str.1:                               ## @.str.1
	.asciz	"error initializing TW9903\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tw9903_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw9903_probe
_tw9903_probe:                          ; @tw9903_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	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_4
; %bb.1:
	ldr	w8, [x19]
	lsl	w2, w8, #1
	ldr	x8, [x19, #8]
	ldr	w3, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_v4l_info
	add	x0, x19, #4
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	add	x21, x0, #8
Lloh8:
	adrp	x2, _tw9903_ops@GOTPAGE
Lloh9:
	ldr	x2, [x2, _tw9903_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	bl	_v4l2_i2c_subdev_init
	add	x22, x20, #4
	mov	x0, x22
	mov	w1, #4
	bl	_v4l2_ctrl_handler_init
Lloh10:
	adrp	x8, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x23, _tw9903_ctrl_ops@GOTPAGE
Lloh14:
	ldr	x23, [x23, _tw9903_ctrl_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x23
	mov	w3, #-128
	mov	w4, #127
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh15:
	adrp	x8, _V4L2_CID_CONTRAST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_CID_CONTRAST@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #96
	bl	_v4l2_ctrl_new_std
Lloh18:
	adrp	x8, _V4L2_CID_HUE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V4L2_CID_HUE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	w3, #-128
	mov	w4, #127
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x22, [x20, #8]
	ldr	w23, [x20, #4]
	cbz	w23, LBB0_6
; %bb.3:
	mov	x0, x22
	bl	_v4l2_ctrl_handler_free
	b	LBB0_10
LBB0_4:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh25:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh28:
	adrp	x8, _initial_registers@GOTPAGE
Lloh29:
	ldr	x8, [x8, _initial_registers@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_write_regs
	tbnz	x0, #63, LBB0_8
; %bb.7:
	mov	w23, #0
	b	LBB0_10
LBB0_8:
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_v4l2_err
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_10:
	mov	x0, x23
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chip found @ 0x%02x (%s)\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tw9903_ops,4,2                 ; @tw9903_ops
	.comm	_tw9903_ctrl_ops,4,2            ; @tw9903_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ; @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ; @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_HUE,4,2               ; @V4L2_CID_HUE
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_initial_registers,4,2          ; @initial_registers
l_.str.1:                               ; @.str.1
	.asciz	"error initializing TW9903\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tw9903_probe
.subsections_via_symbols
