	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stts751_update_alert
_stts751_update_alert:                  ## @stts751_update_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	%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, %rbx
	movq	_stts751_intervals@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_msecs_to_jiffies
	movl	%eax, %r15d
	movq	24(%rbx), %rdi
	movq	_STTS751_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movslq	%r15d, %r13
	imulq	$1717986919, %r13, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	addl	%eax, %r13d
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_STTS751_STATUS_TRIPH@GOTPCREL(%rip), %rcx
	movq	_STTS751_STATUS_TRIPL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	orl	(%rcx), %r12d
	movq	_jiffies@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movslq	%r13d, %rsi
	addq	32(%rbx), %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	andl	%r14d, %r12d
	jne	LBB0_4
## %bb.3:
	cmpl	$0, 8(%rbx)
	jne	LBB0_5
LBB0_4:
	movl	$0, 16(%rbx)
	movq	$1, 8(%rbx)
	movq	(%r15), %rax
	movq	%rax, 32(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_5:
	xorl	%edx, %edx
	movq	_STTS751_STATUS_TRIPH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	setne	%dl
	orl	12(%rbx), %edx
	movl	%edx, 12(%rbx)
	xorl	%ecx, %ecx
	movq	_STTS751_STATUS_TRIPL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	setne	%cl
	orl	16(%rbx), %ecx
	movl	%ecx, 16(%rbx)
	movq	_STTS751_STATUS_TRIPT@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	movl	(%rax), %eax
	andl	%r14d, %eax
	setne	%r8b
	movl	%r8d, 20(%rbx)
	movq	24(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stts751_intervals,8,3          ## @stts751_intervals
	.comm	_STTS751_REG_STATUS,4,2         ## @STTS751_REG_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status reg %x\n"

	.comm	_STTS751_STATUS_TRIPH,4,2       ## @STTS751_STATUS_TRIPH
	.comm	_STTS751_STATUS_TRIPL,4,2       ## @STTS751_STATUS_TRIPL
	.comm	_jiffies,8,3                    ## @jiffies
L_.str.1:                               ## @.str.1
	.asciz	"invalidating alert cache\n"

	.comm	_STTS751_STATUS_TRIPT,4,2       ## @STTS751_STATUS_TRIPT
L_.str.2:                               ## @.str.2
	.asciz	"max_alert: %d, min_alert: %d, therm_trip: %d\n"

	.no_dead_strip	_stts751_update_alert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function stts751_update_alert
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_stts751_update_alert:                  ; @stts751_update_alert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _stts751_intervals@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stts751_intervals@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w0, [x8, x9, lsl #2]
	bl	_msecs_to_jiffies
	mov	x21, x0
	ldr	x0, [x19, #24]
Lloh3:
	adrp	x8, _STTS751_REG_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STTS751_REG_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w21, w8
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #2
	add	w24, w8, w21
	ldr	x0, [x19, #24]
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh8:
	adrp	x22, _STTS751_STATUS_TRIPH@GOTPAGE
Lloh9:
	ldr	x22, [x22, _STTS751_STATUS_TRIPH@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh10:
	adrp	x21, _STTS751_STATUS_TRIPL@GOTPAGE
Lloh11:
	ldr	x21, [x21, _STTS751_STATUS_TRIPL@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
	and	w25, w8, w20
Lloh12:
	adrp	x23, _jiffies@GOTPAGE
Lloh13:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x8, [x19, #32]
	add	x1, x8, w24, sxtw
	bl	_time_after
	cmp	x0, #0
	ccmp	w25, #0, #0, eq
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_4
LBB0_3:
	str	wzr, [x19, #16]
Lloh14:
	adrp	x8, lCPI0_0@PAGE
Lloh15:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #8]
	ldr	x8, [x23]
	str	x8, [x19, #32]
	ldr	x0, [x19, #24]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_4:
	ldr	w8, [x22]
	tst	w8, w20
	cset	w8, ne
	ldp	w9, w10, [x19, #12]
	orr	w8, w9, w8
	ldr	w9, [x21]
	tst	w9, w20
	cset	w9, ne
	orr	w9, w10, w9
Lloh18:
	adrp	x10, _STTS751_STATUS_TRIPT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _STTS751_STATUS_TRIPT@GOTPAGEOFF]
	stp	w8, w9, [x19, #12]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w20
	cset	w10, ne
	str	w10, [x19, #20]
	ldr	x0, [x19, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_stts751_intervals,8,3          ; @stts751_intervals
	.comm	_STTS751_REG_STATUS,4,2         ; @STTS751_REG_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status reg %x\n"

	.comm	_STTS751_STATUS_TRIPH,4,2       ; @STTS751_STATUS_TRIPH
	.comm	_STTS751_STATUS_TRIPL,4,2       ; @STTS751_STATUS_TRIPL
	.comm	_jiffies,8,3                    ; @jiffies
l_.str.1:                               ; @.str.1
	.asciz	"invalidating alert cache\n"

	.comm	_STTS751_STATUS_TRIPT,4,2       ; @STTS751_STATUS_TRIPT
l_.str.2:                               ; @.str.2
	.asciz	"max_alert: %d, min_alert: %d, therm_trip: %d\n"

	.no_dead_strip	_stts751_update_alert
.subsections_via_symbols
