	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abx500_chargalg_state_to
_abx500_chargalg_state_to:              ## @abx500_chargalg_state_to
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	movslq	(%r14), %rcx
	cmpl	%esi, %ecx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_states@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %r8d
	movl	%esi, %esi
	movl	(%rax,%rsi,4), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%ebx, %r9d
	callq	_dev_dbg
	movl	%ebx, (%r14)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"State changed: %s (From state: [%d] %s =to=> [%d] %s )\n"

L_.str.1:                               ## @.str.1
	.asciz	"NO"

L_.str.2:                               ## @.str.2
	.asciz	"YES"

	.comm	_states,8,3                     ## @states
	.no_dead_strip	_abx500_chargalg_state_to
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function abx500_chargalg_state_to
_abx500_chargalg_state_to:              ; @abx500_chargalg_state_to
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
	ldr	w0, [x0, #4]
	ldrsw	x3, [x20]
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w3, w1
Lloh4:
	adrp	x10, _states@GOTPAGE
Lloh5:
	ldr	x10, [x10, _states@GOTPAGEOFF]
	csel	x2, x9, x8, eq
Lloh6:
	ldr	x8, [x10]
	ldr	w4, [x8, x3, lsl #2]
	ldr	w6, [x8, w1, uxtw #2]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x5, x19
	bl	_dev_dbg
	str	w19, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"State changed: %s (From state: [%d] %s =to=> [%d] %s )\n"

l_.str.1:                               ; @.str.1
	.asciz	"NO"

l_.str.2:                               ; @.str.2
	.asciz	"YES"

	.comm	_states,8,3                     ; @states
	.no_dead_strip	_abx500_chargalg_state_to
.subsections_via_symbols
