	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vprbrd_i2c_probe
_vprbrd_i2c_probe:                      ## @vprbrd_i2c_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
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_vprbrd_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_vprbrd_quirks@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	%r12, 16(%rbx)
	movq	_i2c_bus_param@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, 48(%rbx)
	movl	8(%rbx), %edi
	movq	(%r12), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	(%r15), %rax
	movq	_VPRBRD_I2C_FREQ_10KHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_6
## %bb.2:
	movq	_VPRBRD_I2C_FREQ_6MHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.3:
	movq	%rbx, %r13
	addq	$48, %r13
	movq	(%r12), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	(%r12), %rdi
	movq	_VPRBRD_USB_REQUEST_I2C_FREQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_VPRBRD_USB_TYPE_OUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_VPRBRD_USB_TIMEOUT_MS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	subq	$8, %rsp
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$1
	pushq	%r13
	callq	_usb_control_msg
	addq	$32, %rsp
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.4:
	movq	%r14, (%rbx)
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_i2c_bus_freq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_i2c_bus_freq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_I2C_CLASS_HWMON,4,2            ## @I2C_CLASS_HWMON
	.comm	_vprbrd_algorithm,4,2           ## @vprbrd_algorithm
	.comm	_vprbrd_quirks,4,2              ## @vprbrd_quirks
	.comm	_i2c_bus_param,8,3              ## @i2c_bus_param
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"viperboard at bus %03d device %03d"

	.comm	_VPRBRD_I2C_FREQ_10KHZ,8,3      ## @VPRBRD_I2C_FREQ_10KHZ
	.comm	_VPRBRD_I2C_FREQ_6MHZ,8,3       ## @VPRBRD_I2C_FREQ_6MHZ
	.comm	_VPRBRD_USB_REQUEST_I2C_FREQ,4,2 ## @VPRBRD_USB_REQUEST_I2C_FREQ
	.comm	_VPRBRD_USB_TYPE_OUT,4,2        ## @VPRBRD_USB_TYPE_OUT
	.comm	_VPRBRD_USB_TIMEOUT_MS,4,2      ## @VPRBRD_USB_TIMEOUT_MS
L_.str.1:                               ## @.str.1
	.asciz	"failure setting i2c_bus_freq to %d\n"

	.comm	_i2c_bus_freq,4,2               ## @i2c_bus_freq
	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"invalid i2c_bus_freq setting:%d\n"

	.no_dead_strip	_vprbrd_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vprbrd_i2c_probe
_vprbrd_i2c_probe:                      ; @vprbrd_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	w0, [x0]
	bl	_dev_get_drvdata
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh5:
	adrp	x23, _i2c_bus_param@GOTPAGE
Lloh6:
	ldr	x23, [x23, _i2c_bus_param@GOTPAGEOFF]
	ldr	x9, [x23]
	mov	x22, x0
	str	x9, [x22, #48]!
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _I2C_CLASS_HWMON@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I2C_CLASS_HWMON@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #-8]
Lloh11:
	adrp	x8, _vprbrd_algorithm@GOTPAGE
Lloh12:
	ldr	x8, [x8, _vprbrd_algorithm@GOTPAGEOFF]
	stur	x8, [x22, #-16]
Lloh13:
	adrp	x8, _vprbrd_quirks@GOTPAGE
Lloh14:
	ldr	x8, [x8, _vprbrd_quirks@GOTPAGEOFF]
	stp	x21, x8, [x22, #-32]
	ldur	w0, [x22, #-40]
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	ldr	w3, [x9]
	ldr	w4, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	x8, [x23]
Lloh17:
	adrp	x9, _VPRBRD_I2C_FREQ_10KHZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VPRBRD_I2C_FREQ_10KHZ@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_6
; %bb.2:
Lloh20:
	adrp	x9, _VPRBRD_I2C_FREQ_6MHZ@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VPRBRD_I2C_FREQ_6MHZ@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.3:
	ldr	x0, [x21]
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	ldr	x0, [x21]
Lloh23:
	adrp	x8, _VPRBRD_USB_REQUEST_I2C_FREQ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VPRBRD_USB_REQUEST_I2C_FREQ@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _VPRBRD_USB_TYPE_OUT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VPRBRD_USB_TYPE_OUT@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
Lloh29:
	adrp	x8, _VPRBRD_USB_TIMEOUT_MS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VPRBRD_USB_TIMEOUT_MS@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	w4, #0
	mov	w5, #0
	mov	x6, x22
	mov	w7, #1
	bl	_usb_control_msg
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.4:
	str	x19, [x20]
	mov	x0, x20
	bl	_i2c_add_adapter
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w0, #0
	b	LBB0_10
LBB0_5:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh34:
	adrp	x8, _i2c_bus_freq@GOTPAGE
Lloh35:
	ldr	x8, [x8, _i2c_bus_freq@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh39:
	adrp	x8, _i2c_bus_freq@GOTPAGE
Lloh40:
	ldr	x8, [x8, _i2c_bus_freq@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_dev_err
Lloh44:
	adrp	x8, _EIO@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_I2C_CLASS_HWMON,4,2            ; @I2C_CLASS_HWMON
	.comm	_vprbrd_algorithm,4,2           ; @vprbrd_algorithm
	.comm	_vprbrd_quirks,4,2              ; @vprbrd_quirks
	.comm	_i2c_bus_param,8,3              ; @i2c_bus_param
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"viperboard at bus %03d device %03d"

	.comm	_VPRBRD_I2C_FREQ_10KHZ,8,3      ; @VPRBRD_I2C_FREQ_10KHZ
	.comm	_VPRBRD_I2C_FREQ_6MHZ,8,3       ; @VPRBRD_I2C_FREQ_6MHZ
	.comm	_VPRBRD_USB_REQUEST_I2C_FREQ,4,2 ; @VPRBRD_USB_REQUEST_I2C_FREQ
	.comm	_VPRBRD_USB_TYPE_OUT,4,2        ; @VPRBRD_USB_TYPE_OUT
	.comm	_VPRBRD_USB_TIMEOUT_MS,4,2      ; @VPRBRD_USB_TIMEOUT_MS
l_.str.1:                               ; @.str.1
	.asciz	"failure setting i2c_bus_freq to %d\n"

	.comm	_i2c_bus_freq,4,2               ; @i2c_bus_freq
	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"invalid i2c_bus_freq setting:%d\n"

	.no_dead_strip	_vprbrd_i2c_probe
.subsections_via_symbols
