	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stts751_probe
_stts751_probe:                         ## @stts751_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	4(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r15, 24(%rax)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_property_present
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_property_read_bool
	movq	_STTS751_REG_SMBUS_TO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%edx, %edx
	testl	%eax, %eax
	sete	%dl
	shll	$7, %edx
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_11
LBB0_5:
	movq	_STTS751_REG_REV_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	cmpl	$1, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
LBB0_9:
	movq	%rbx, %rdi
	callq	_stts751_read_chip_config
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_STTS751_CONF_STOP@GOTPCREL(%rip), %rax
	movq	_STTS751_CONF_EVENT_DIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	notl	%edx
	andl	8(%rbx), %edx
	movl	%edx, 8(%rbx)
	movq	_STTS751_REG_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:
	movl	(%r15), %esi
	movq	_stts751_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_devm_hwmon_device_register_with_groups
	movl	%eax, 12(%rbx)
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smbus-timeout-disable"

	.comm	_STTS751_REG_SMBUS_TO,4,2       ## @STTS751_REG_SMBUS_TO
	.comm	_STTS751_REG_REV_ID,4,2         ## @STTS751_REG_REV_ID
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Chip revision 0x%x is untested\n"

	.comm	_STTS751_CONF_STOP,4,2          ## @STTS751_CONF_STOP
	.comm	_STTS751_CONF_EVENT_DIS,4,2     ## @STTS751_CONF_EVENT_DIS
	.comm	_STTS751_REG_CONF,4,2           ## @STTS751_REG_CONF
	.comm	_stts751_groups,4,2             ## @stts751_groups
	.no_dead_strip	_stts751_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stts751_probe
_stts751_probe:                         ; @stts751_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
	add	x19, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	str	x21, [x0, #24]
	movi.2s	v0, #1
	str	d0, [x0]
	mov	x0, x21
	mov	x1, x20
	bl	_i2c_set_clientdata
	add	x0, x20, #16
	bl	_mutex_init
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_property_present
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_bool
	cmp	w0, #0
	cset	w8, eq
Lloh7:
	adrp	x9, _STTS751_REG_SMBUS_TO@GOTPAGE
Lloh8:
	ldr	x9, [x9, _STTS751_REG_SMBUS_TO@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
	lsl	w2, w8, #7
	mov	x0, x21
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_12
LBB0_3:
Lloh10:
	adrp	x8, _STTS751_REG_REV_ID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STTS751_REG_REV_ID@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_10
; %bb.4:
	mov	x2, x0
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.5:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_6:
	mov	x0, x20
	bl	_stts751_read_chip_config
	cbnz	w0, LBB0_12
; %bb.7:
Lloh15:
	adrp	x8, _STTS751_CONF_STOP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STTS751_CONF_STOP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _STTS751_CONF_EVENT_DIS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _STTS751_CONF_EVENT_DIS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20, #8]
	bic	w2, w9, w8
	str	w2, [x20, #8]
Lloh21:
	adrp	x8, _STTS751_REG_CONF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STTS751_REG_CONF@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_12
; %bb.8:
	ldr	w1, [x21]
Lloh24:
	adrp	x8, _stts751_groups@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stts751_groups@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_devm_hwmon_device_register_with_groups
	str	w0, [x20, #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
	b	_PTR_ERR_OR_ZERO
LBB0_9:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh29:
	adrp	x8, _ENODEV@GOTPAGE
Lloh30:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smbus-timeout-disable"

	.comm	_STTS751_REG_SMBUS_TO,4,2       ; @STTS751_REG_SMBUS_TO
	.comm	_STTS751_REG_REV_ID,4,2         ; @STTS751_REG_REV_ID
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Chip revision 0x%x is untested\n"

	.comm	_STTS751_CONF_STOP,4,2          ; @STTS751_CONF_STOP
	.comm	_STTS751_CONF_EVENT_DIS,4,2     ; @STTS751_CONF_EVENT_DIS
	.comm	_STTS751_REG_CONF,4,2           ; @STTS751_REG_CONF
	.comm	_stts751_groups,4,2             ; @stts751_groups
	.no_dead_strip	_stts751_probe
.subsections_via_symbols
