	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function osif_probe
_osif_probe:                            ## @osif_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	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_interface_to_usbdev
	movl	%eax, %edi
	callq	_usb_get_dev
	movq	%rax, (%rbx)
	movq	%r14, 40(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_usb_set_intfdata
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %r12
	addq	$8, %r12
	movl	%eax, 36(%rbx)
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_osif_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, 16(%rbx)
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	_OSIFI2C_SET_BIT_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movl	$52, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_osif_usb_read
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	(%rbx), %rdi
	callq	_usb_put_dev
	movl	%r13d, %r15d
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	callq	_i2c_add_adapter
	movq	(%rbx), %rax
	movl	16(%rax), %edi
	callq	_le16_to_cpu
	movzbl	%al, %ecx
	movl	%eax, %edx
	sarl	$8, %edx
	movq	(%rbx), %rax
	movq	8(%rax), %rsi
	movl	(%rsi), %r8d
	movl	(%rax), %r9d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_osif_algorithm,4,2             ## @osif_algorithm
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OSIF at bus %03d device %03d"

	.comm	_OSIFI2C_SET_BIT_RATE,4,2       ## @OSIFI2C_SET_BIT_RATE
L_.str.1:                               ## @.str.1
	.asciz	"failure sending bit rate"

L_.str.2:                               ## @.str.2
	.asciz	"version %x.%02x found at bus %03d address %03d"

	.no_dead_strip	_osif_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function osif_probe
_osif_probe:                            ; @osif_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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_interface_to_usbdev
	bl	_usb_get_dev
	str	x0, [x20]
	str	x19, [x20, #40]
	mov	x0, x19
	mov	x1, x20
	bl	_usb_set_intfdata
Lloh3:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
	mov	x21, x20
	ldr	w0, [x21, #8]!
Lloh5:
	adrp	x9, _I2C_CLASS_HWMON@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I2C_CLASS_HWMON@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
Lloh9:
	adrp	x8, _osif_algorithm@GOTPAGE
Lloh10:
	ldr	x8, [x8, _osif_algorithm@GOTPAGEOFF]
	stp	x20, x8, [x20, #16]
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldr	w3, [x9]
	ldr	w4, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
Lloh13:
	adrp	x8, _OSIFI2C_SET_BIT_RATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OSIFI2C_SET_BIT_RATE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #52
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_osif_usb_read
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20]
	bl	_usb_put_dev
	b	LBB0_5
LBB0_3:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_i2c_add_adapter
	ldr	x8, [x20]
	ldr	w0, [x8, #16]
	bl	_le16_to_cpu
	asr	w2, w0, #8
	and	w3, w0, #0xff
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldr	w4, [x9]
	ldr	w5, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.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	_osif_algorithm,4,2             ; @osif_algorithm
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OSIF at bus %03d device %03d"

	.comm	_OSIFI2C_SET_BIT_RATE,4,2       ; @OSIFI2C_SET_BIT_RATE
l_.str.1:                               ; @.str.1
	.asciz	"failure sending bit rate"

l_.str.2:                               ; @.str.2
	.asciz	"version %x.%02x found at bus %03d address %03d"

	.no_dead_strip	_osif_probe
.subsections_via_symbols
