	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fts_probe
_fts_probe:                             ## @fts_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
	cmpl	$115, (%rdi)
	jne	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movq	_FTS_DEVICE_ID_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	jle	LBB0_8
## %bb.2:
	movl	%eax, %ecx
	andl	$240, %ecx
	cmpl	$16, %ecx
	jne	LBB0_8
## %bb.3:
	andl	$15, %eax
	leaq	4(%rbx), %r14
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	%rax, %r15
	leaq	12(%rax), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_mutex_init
	movq	%rbx, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	movq	_FTS_DEVICE_REVISION_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_15
## %bb.6:
	movq	_fts_attr_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_devm_hwmon_device_register_with_groups
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	addq	$4, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
LBB0_10:
	callq	_dev_dbg
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_15:
	movl	%r12d, %eax
	jmp	LBB0_13
LBB0_16:
	movq	%r15, %rdi
	callq	_fts_watchdog_init
	testl	%eax, %eax
	jne	LBB0_13
## %bb.17:
	movl	%r12d, %edx
	shrl	$4, %edx
	andl	$15, %edx
	andl	$15, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_FTS_DEVICE_ID_REG,4,2          ## @FTS_DEVICE_ID_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No Baseboard Management Controller\n"

L_.str.1:                               ## @.str.1
	.asciz	"No fujitsu board\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FTS_DEVICE_REVISION_REG,4,2    ## @FTS_DEVICE_REVISION_REG
L_.str.2:                               ## @.str.2
	.asciz	"ftsteutates"

	.comm	_fts_attr_groups,4,2            ## @fts_attr_groups
L_.str.3:                               ## @.str.3
	.asciz	"Detected FTS Teutates chip, revision: %d.%d\n"

	.no_dead_strip	_fts_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fts_probe
_fts_probe:                             ; @fts_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
	ldr	w8, [x0]
	cmp	w8, #115
	b.ne	LBB0_10
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _FTS_DEVICE_ID_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FTS_DEVICE_ID_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	and	w8, w0, #0xf0
	cmp	w0, #1
	ccmp	w8, #16, #0, ge
	b.eq	LBB0_3
; %bb.2:
	add	x0, x20, #4
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_3:
	and	w8, w0, #0xf
	add	x19, x20, #4
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.4:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.5:
	mov	x21, x0
	add	x0, x0, #12
	bl	_mutex_init
	add	x0, x21, #8
	bl	_mutex_init
	str	x20, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_dev_set_drvdata
Lloh8:
	adrp	x8, _FTS_DEVICE_REVISION_REG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FTS_DEVICE_REVISION_REG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_14
; %bb.6:
Lloh11:
	adrp	x8, _fts_attr_groups@GOTPAGE
Lloh12:
	ldr	x8, [x8, _fts_attr_groups@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_devm_hwmon_device_register_with_groups
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.7:
	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
	b	_PTR_ERR
LBB0_8:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
LBB0_9:
	bl	_dev_dbg
LBB0_10:
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
LBB0_13:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_14:
	mov	x0, x20
	b	LBB0_12
LBB0_15:
	mov	x0, x21
	bl	_fts_watchdog_init
	cbnz	w0, LBB0_12
; %bb.16:
	ubfx	w2, w20, #4, #4
	and	w3, w20, #0xf
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_FTS_DEVICE_ID_REG,4,2          ; @FTS_DEVICE_ID_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No Baseboard Management Controller\n"

l_.str.1:                               ; @.str.1
	.asciz	"No fujitsu board\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FTS_DEVICE_REVISION_REG,4,2    ; @FTS_DEVICE_REVISION_REG
l_.str.2:                               ; @.str.2
	.asciz	"ftsteutates"

	.comm	_fts_attr_groups,4,2            ; @fts_attr_groups
l_.str.3:                               ; @.str.3
	.asciz	"Detected FTS Teutates chip, revision: %d.%d\n"

	.no_dead_strip	_fts_probe
.subsections_via_symbols
