	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abx500_chargalg_curr_step_store
_abx500_chargalg_curr_step_store:       ## @abx500_chargalg_curr_step_store
	.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	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rdx
	movq	%rsi, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	-24(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	_CHARGALG_CURR_STEP_LOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_4
## %bb.2:
	movq	_CHARGALG_CURR_STEP_HIGH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_4
## %bb.3:
	movl	$1, 24(%rbx)
	movl	8(%rbx), %edi
	addq	$4, %rbx
	movq	%rbx, %rsi
	callq	_queue_work
	jmp	LBB0_5
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_5:
	movq	%r14, %rdi
	callq	_strlen
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHARGALG_CURR_STEP_LOW,8,3     ## @CHARGALG_CURR_STEP_LOW
	.comm	_CHARGALG_CURR_STEP_HIGH,8,3    ## @CHARGALG_CURR_STEP_HIGH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong current step\nEnter 0. Disable AC/USB Charging\n1--100. Set AC/USB charging current step\n100. Enable AC/USB Charging\n"

	.no_dead_strip	_abx500_chargalg_curr_step_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function abx500_chargalg_curr_step_store
_abx500_chargalg_curr_step_store:       ; @abx500_chargalg_curr_step_store
	.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
	mov	x19, x1
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x1
	mov	w1, #10
	bl	_kstrtol
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	x8, [sp, #8]
	str	x8, [x20, #16]
Lloh0:
	adrp	x9, _CHARGALG_CURR_STEP_LOW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHARGALG_CURR_STEP_LOW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _CHARGALG_CURR_STEP_HIGH@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CHARGALG_CURR_STEP_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.le	LBB0_3
; %bb.2:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	b	LBB0_4
LBB0_3:
	mov	w8, #1
	str	w8, [x20, #24]
	ldr	w0, [x20, #8]
	add	x1, x20, #4
	bl	_queue_work
LBB0_4:
	mov	x0, x19
	bl	_strlen
LBB0_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CHARGALG_CURR_STEP_LOW,8,3     ; @CHARGALG_CURR_STEP_LOW
	.comm	_CHARGALG_CURR_STEP_HIGH,8,3    ; @CHARGALG_CURR_STEP_HIGH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong current step\nEnter 0. Disable AC/USB Charging\n1--100. Set AC/USB charging current step\n100. Enable AC/USB Charging\n"

	.no_dead_strip	_abx500_chargalg_curr_step_store
.subsections_via_symbols
