	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm90_alert
_lm90_alert:                            ## @lm90_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_I2C_PROTOCOL_SMBUS_ALERT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	leaq	-20(%rbp), %rsi
	callq	_lm90_is_tripped
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	movq	_LM90_HAVE_BROKEN_ALERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.3:
	movl	4(%r14), %eax
	testl	%eax, -20(%rbp)
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	movl	$128, %esi
	orl	8(%r14), %esi
	movq	%r14, %rdi
	callq	_lm90_update_confreg
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_PROTOCOL_SMBUS_ALERT,4,2   ## @I2C_PROTOCOL_SMBUS_ALERT
	.comm	_LM90_HAVE_BROKEN_ALERT,4,2     ## @LM90_HAVE_BROKEN_ALERT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disabling ALERT#\n"

L_.str.1:                               ## @.str.1
	.asciz	"Everything OK\n"

	.no_dead_strip	_lm90_alert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm90_alert
_lm90_alert:                            ; @lm90_alert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _I2C_PROTOCOL_SMBUS_ALERT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_PROTOCOL_SMBUS_ALERT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x0
	add	x1, sp, #12
	bl	_lm90_is_tripped
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_i2c_get_clientdata
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _LM90_HAVE_BROKEN_ALERT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LM90_HAVE_BROKEN_ALERT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	mov	x20, x0
	ldr	w8, [sp, #12]
	ldr	w9, [x0, #4]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x20, #8]
	orr	w1, w8, #0x80
	mov	x0, x20
	bl	_lm90_update_confreg
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_PROTOCOL_SMBUS_ALERT,4,2   ; @I2C_PROTOCOL_SMBUS_ALERT
	.comm	_LM90_HAVE_BROKEN_ALERT,4,2     ; @LM90_HAVE_BROKEN_ALERT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disabling ALERT#\n"

l_.str.1:                               ; @.str.1
	.asciz	"Everything OK\n"

	.no_dead_strip	_lm90_alert
.subsections_via_symbols
