	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9t031_probe
_mt9t031_probe:                         ## @mt9t031_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, %r15
	movq	8(%rdi), %r14
	movl	(%rdi), %edi
	callq	_to_i2c_adapter
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_to_soc_camera_link
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_mt9t031_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
LBB0_4:
	movq	_I2C_FUNC_SMBUS_WORD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rax, %r12
	movq	%rax, %rdi
	addq	$40, %rdi
	movq	_mt9t031_subdev_ops@GOTPCREL(%rip), %rdx
	movq	%r15, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	$0, 32(%r12)
	movq	_MT9T031_COLUMN_SKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_MT9T031_ROW_SKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_MT9T031_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_MT9T031_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r12)
	movl	$1, 8(%r12)
	movq	%r15, %rdi
	callq	_mt9t031_idle
	movq	%r15, %rdi
	callq	_mt9t031_video_probe
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mt9t031_disable
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.11:
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movq	$0, (%r14)
LBB0_13:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_14
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MT9T031 driver needs platform data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mt9t031_ops,4,2                ## @mt9t031_ops
	.comm	_I2C_FUNC_SMBUS_WORD_DATA,4,2   ## @I2C_FUNC_SMBUS_WORD_DATA
L_.str.1:                               ## @.str.1
	.asciz	"I2C-Adapter doesn't support I2C_FUNC_SMBUS_WORD\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mt9t031_subdev_ops,4,2         ## @mt9t031_subdev_ops
	.comm	_MT9T031_COLUMN_SKIP,4,2        ## @MT9T031_COLUMN_SKIP
	.comm	_MT9T031_ROW_SKIP,4,2           ## @MT9T031_ROW_SKIP
	.comm	_MT9T031_MAX_WIDTH,4,2          ## @MT9T031_MAX_WIDTH
	.comm	_MT9T031_MAX_HEIGHT,4,2         ## @MT9T031_MAX_HEIGHT
	.no_dead_strip	_mt9t031_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9t031_probe
_mt9t031_probe:                         ; @mt9t031_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	x19, [x0, #8]
	ldr	w0, [x0]
	bl	_to_i2c_adapter
	mov	x21, x0
	cbz	x19, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_to_soc_camera_link
	cbz	x0, LBB0_10
; %bb.2:
Lloh0:
	adrp	x8, _mt9t031_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mt9t031_ops@GOTPAGEOFF]
	str	x8, [x19]
LBB0_3:
Lloh2:
	adrp	x8, _I2C_FUNC_SMBUS_WORD_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_WORD_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_check_functionality
	cbz	w0, LBB0_9
; %bb.4:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.5:
	mov	x21, x0
	add	x0, x0, #40
Lloh8:
	adrp	x2, _mt9t031_subdev_ops@GOTPAGE
Lloh9:
	ldr	x2, [x2, _mt9t031_subdev_ops@GOTPAGEOFF]
	mov	x1, x20
	bl	_v4l2_i2c_subdev_init
	str	xzr, [x21, #32]
Lloh10:
	adrp	x8, _MT9T031_COLUMN_SKIP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MT9T031_COLUMN_SKIP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x21, #24]
Lloh13:
	adrp	x8, _MT9T031_ROW_SKIP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MT9T031_ROW_SKIP@GOTPAGEOFF]
Lloh15:
	adrp	x9, _MT9T031_MAX_WIDTH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MT9T031_MAX_WIDTH@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #16]
Lloh19:
	adrp	x8, _MT9T031_MAX_HEIGHT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MT9T031_MAX_HEIGHT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	movi.2s	v0, #1
	str	d0, [x21]
	mov	w9, #1
	stp	w9, w8, [x21, #8]
	mov	x0, x20
	bl	_mt9t031_idle
	mov	x0, x20
	bl	_mt9t031_video_probe
	mov	x22, x0
	mov	x0, x20
	bl	_mt9t031_disable
	cbz	w22, LBB0_13
; %bb.6:
	cbz	x19, LBB0_8
; %bb.7:
	str	xzr, [x19]
LBB0_8:
	mov	x0, x21
	bl	_kfree
	b	LBB0_13
LBB0_9:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
Lloh24:
	adrp	x8, _EIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	mov	x0, x22
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MT9T031 driver needs platform data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mt9t031_ops,4,2                ; @mt9t031_ops
	.comm	_I2C_FUNC_SMBUS_WORD_DATA,4,2   ; @I2C_FUNC_SMBUS_WORD_DATA
l_.str.1:                               ; @.str.1
	.asciz	"I2C-Adapter doesn't support I2C_FUNC_SMBUS_WORD\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mt9t031_subdev_ops,4,2         ; @mt9t031_subdev_ops
	.comm	_MT9T031_COLUMN_SKIP,4,2        ; @MT9T031_COLUMN_SKIP
	.comm	_MT9T031_ROW_SKIP,4,2           ; @MT9T031_ROW_SKIP
	.comm	_MT9T031_MAX_WIDTH,4,2          ; @MT9T031_MAX_WIDTH
	.comm	_MT9T031_MAX_HEIGHT,4,2         ; @MT9T031_MAX_HEIGHT
	.no_dead_strip	_mt9t031_probe
.subsections_via_symbols
