	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abx500_chargalg_check_temp
_abx500_chargalg_check_temp:            ## @abx500_chargalg_check_temp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r8
	movq	16(%rdi), %rdx
	movq	32(%rdi), %rax
	movq	(%rax), %r10
	movq	8(%rax), %rcx
	leaq	(%r8,%r10), %rsi
	cmpq	%rsi, %rdx
	jle	LBB0_3
## %bb.1:
	movq	%rcx, %rsi
	subq	%r8, %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_3
## %bb.2:
	movq	$0, 40(%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	popq	%rbp
	retq
LBB0_3:
	cmpq	%rcx, %rdx
	jge	LBB0_5
## %bb.4:
	movq	8(%rdi), %rcx
	jmp	LBB0_6
LBB0_5:
	movq	16(%rax), %rsi
	movq	8(%rdi), %rcx
	subq	%rcx, %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_8
LBB0_6:
	movq	24(%rax), %r9
	leaq	(%rcx,%r9), %rsi
	cmpq	%rsi, %rdx
	jle	LBB0_9
## %bb.7:
	cmpq	%r10, %rdx
	jg	LBB0_9
LBB0_8:
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	movq	%rcx, 40(%rdi)
	movq	32(%rax), %rax
	movq	%rax, (%rdi)
	movq	$0, 8(%rdi)
	popq	%rbp
	retq
LBB0_9:
	cmpq	%r9, %rdx
	jle	LBB0_11
## %bb.10:
	cmpq	16(%rax), %rdx
	jge	LBB0_11
## %bb.13:
	movl	24(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_11:
	movq	$1, 40(%rdi)
	movq	$0, (%rdi)
	movq	32(%rax), %rax
	movq	%rax, 8(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Within hysteresis limit temp: %d hyst_lowhigh %d, hyst normal %d\n"

	.no_dead_strip	_abx500_chargalg_check_temp
.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 abx500_chargalg_check_temp
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
lCPI0_1:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_abx500_chargalg_check_temp:            ; @abx500_chargalg_check_temp
	.cfi_startproc
; %bb.0:
	ldr	x2, [x0, #16]
	ldr	x8, [x0, #32]
	ldr	x4, [x0]
	ldp	x9, x10, [x8]
	sub	x11, x10, x4
	add	x12, x4, x9
	cmp	x2, x12
	ccmp	x2, x11, #0, gt
	b.lt	LBB0_3
; %bb.1:
	cmp	x2, x10
	b.ge	LBB0_4
; %bb.2:
	ldr	x3, [x0, #8]
	b	LBB0_5
LBB0_3:
	str	xzr, [x0, #40]
	stp	xzr, xzr, [x0]
	ret
LBB0_4:
	ldr	x10, [x8, #16]
	ldr	x3, [x0, #8]
	sub	x10, x10, x3
	cmp	x2, x10
	b.lt	LBB0_9
LBB0_5:
	ldr	x10, [x8, #24]
	add	x11, x3, x10
	cmp	x2, x11
	ccmp	x2, x9, #0, gt
	b.le	LBB0_9
; %bb.6:
	cmp	x2, x10
	b.le	LBB0_10
; %bb.7:
	ldr	x9, [x8, #16]
	cmp	x2, x9
	b.ge	LBB0_10
; %bb.8:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	ldr	w0, [x0, #24]
	b	_dev_dbg
LBB0_9:
Lloh2:
	adrp	x9, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x0, #40]
	ldr	x8, [x8, #32]
	stp	x8, xzr, [x0]
	ret
LBB0_10:
Lloh4:
	adrp	x9, lCPI0_1@PAGE
Lloh5:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	str	d0, [x0, #40]
	ldr	x8, [x8, #32]
	stp	xzr, x8, [x0]
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdr	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Within hysteresis limit temp: %d hyst_lowhigh %d, hyst normal %d\n"

	.no_dead_strip	_abx500_chargalg_check_temp
.subsections_via_symbols
