	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function upd64031a_probe
_upd64031a_probe:                       ## @upd64031a_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, %r15
	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:
	movl	(%r15), %edx
	addl	%edx, %edx
	movq	8(%r15), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l_info
	leaq	4(%r15), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %r14
	addq	$32, %r14
	movq	_upd64031a_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	8(%r12), %rdi
	movq	_upd64031a_init@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_memcpy
	movq	_UPD64031A_GR_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$6, %eax
	movl	%eax, (%r12)
	movq	_UPD64031A_3DYCS_COMPOSITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$4, %eax
	movl	%eax, 4(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r12)
	movq	_TOT_REGS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_6
## %bb.7:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_upd64031a_write
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
	jmp	LBB0_9
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_6:
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %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	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chip found @ 0x%x (%s)\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_upd64031a_ops,4,2              ## @upd64031a_ops
	.comm	_upd64031a_init,4,2             ## @upd64031a_init
	.comm	_UPD64031A_GR_ON,4,2            ## @UPD64031A_GR_ON
	.comm	_UPD64031A_3DYCS_COMPOSITE,4,2  ## @UPD64031A_3DYCS_COMPOSITE
	.comm	_TOT_REGS,4,2                   ## @TOT_REGS
	.no_dead_strip	_upd64031a_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function upd64031a_probe
_upd64031a_probe:                       ; @upd64031a_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	x21, 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_6
; %bb.1:
	ldr	w8, [x21]
	lsl	w2, w8, #1
	ldr	x8, [x21, #8]
	ldr	w3, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_v4l_info
	add	x0, x21, #4
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
	add	x20, x0, #32
Lloh8:
	adrp	x2, _upd64031a_ops@GOTPAGE
Lloh9:
	ldr	x2, [x2, _upd64031a_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	bl	_v4l2_i2c_subdev_init
	ldr	x0, [x19, #8]
Lloh10:
	adrp	x8, _upd64031a_init@GOTPAGE
Lloh11:
	ldr	x8, [x8, _upd64031a_init@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_memcpy
Lloh13:
	adrp	x8, _UPD64031A_GR_ON@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UPD64031A_GR_ON@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	lsl	w8, w8, #6
	str	w8, [x19]
Lloh16:
	adrp	x8, _UPD64031A_3DYCS_COMPOSITE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _UPD64031A_3DYCS_COMPOSITE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	lsl	w8, w8, #4
	str	w8, [x19, #4]
	stp	xzr, xzr, [x19, #16]
Lloh19:
	adrp	x22, _TOT_REGS@GOTPAGE
Lloh20:
	ldr	x22, [x22, _TOT_REGS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x20
	mov	x1, x21
	bl	_upd64031a_write
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.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%x (%s)\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_upd64031a_ops,4,2              ; @upd64031a_ops
	.comm	_upd64031a_init,4,2             ; @upd64031a_init
	.comm	_UPD64031A_GR_ON,4,2            ; @UPD64031A_GR_ON
	.comm	_UPD64031A_3DYCS_COMPOSITE,4,2  ; @UPD64031A_3DYCS_COMPOSITE
	.comm	_TOT_REGS,4,2                   ; @TOT_REGS
	.no_dead_strip	_upd64031a_probe
.subsections_via_symbols
