	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stts751_alert
_stts751_alert:                         ## @stts751_alert
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	movq	_I2C_PROTOCOL_SMBUS_ALERT@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_14
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	movq	%r15, %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_stts751_update_alert
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	cmpl	$0, (%r15)
	jne	LBB0_4
LBB0_7:
	cmpl	$0, 4(%r15)
	jne	LBB0_8
	jmp	LBB0_11
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r15)
	movq	24(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	cmpl	$0, (%r15)
	je	LBB0_7
LBB0_4:
	cmpl	$0, 8(%r15)
	je	LBB0_6
## %bb.5:
	movq	24(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_notice
LBB0_6:
	movl	$0, 8(%r15)
	movq	24(%r15), %rdi
	leaq	L_.str.3(%rip), %rdx
	xorl	%esi, %esi
	callq	_sysfs_notify
	cmpl	$0, 4(%r15)
	je	LBB0_11
LBB0_8:
	cmpl	$0, 12(%r15)
	je	LBB0_10
## %bb.9:
	movq	24(%r15), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_notice
LBB0_10:
	movl	$0, 12(%r15)
	movq	24(%r15), %rdi
	leaq	L_.str.5(%rip), %rdx
	xorl	%esi, %esi
	callq	_sysfs_notify
	cmpl	$0, 4(%r15)
	jne	LBB0_12
LBB0_11:
	cmpl	$0, (%r15)
	je	LBB0_13
LBB0_12:
	movq	24(%r15), %rdi
	movq	_KOBJ_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kobject_uevent
LBB0_13:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_PROTOCOL_SMBUS_ALERT,4,2   ## @I2C_PROTOCOL_SMBUS_ALERT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alert!"

L_.str.1:                               ## @.str.1
	.asciz	"Alert received, but can't communicate to the device. Triggering all alarms!"

L_.str.2:                               ## @.str.2
	.asciz	"got alert for HIGH temperature"

L_.str.3:                               ## @.str.3
	.asciz	"temp1_max_alarm"

L_.str.4:                               ## @.str.4
	.asciz	"got alert for LOW temperature"

L_.str.5:                               ## @.str.5
	.asciz	"temp1_min_alarm"

	.comm	_KOBJ_CHANGE,4,2                ## @KOBJ_CHANGE
	.no_dead_strip	_stts751_alert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stts751_alert
_stts751_alert:                         ; @stts751_alert
	.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, x1
	mov	x20, x0
	bl	_i2c_get_clientdata
Lloh0:
	adrp	x8, _I2C_PROTOCOL_SMBUS_ALERT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_PROTOCOL_SMBUS_ALERT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	add	x20, x19, #16
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_stts751_update_alert
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w8, [x19]
	cbnz	w8, LBB0_6
LBB0_3:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_9
	b	LBB0_12
LBB0_4:
	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_5:
	movi.2s	v0, #1
	str	d0, [x19]
	ldr	x0, [x19, #24]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	ldr	w8, [x19]
	cbz	w8, LBB0_3
LBB0_6:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_8
; %bb.7:
	ldr	x0, [x19, #24]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_notice
LBB0_8:
	str	wzr, [x19, #8]
	ldr	x0, [x19, #24]
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x1, #0
	bl	_sysfs_notify
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_12
LBB0_9:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	x0, [x19, #24]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_notice
LBB0_11:
	str	wzr, [x19, #12]
	ldr	x0, [x19, #24]
Lloh13:
	adrp	x2, l_.str.5@PAGE
Lloh14:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x1, #0
	bl	_sysfs_notify
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_13
LBB0_12:
	ldr	w8, [x19]
	cbz	w8, LBB0_14
LBB0_13:
	ldr	x0, [x19, #24]
Lloh15:
	adrp	x8, _KOBJ_CHANGE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KOBJ_CHANGE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_kobject_uevent
LBB0_14:
	mov	x0, x20
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_PROTOCOL_SMBUS_ALERT,4,2   ; @I2C_PROTOCOL_SMBUS_ALERT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alert!"

l_.str.1:                               ; @.str.1
	.asciz	"Alert received, but can't communicate to the device. Triggering all alarms!"

l_.str.2:                               ; @.str.2
	.asciz	"got alert for HIGH temperature"

l_.str.3:                               ; @.str.3
	.asciz	"temp1_max_alarm"

l_.str.4:                               ; @.str.4
	.asciz	"got alert for LOW temperature"

l_.str.5:                               ; @.str.5
	.asciz	"temp1_min_alarm"

	.comm	_KOBJ_CHANGE,4,2                ; @KOBJ_CHANGE
	.no_dead_strip	_stts751_alert
.subsections_via_symbols
