	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function abx500_chargalg_en_store
_abx500_chargalg_en_store:              ## @abx500_chargalg_en_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_11
## %bb.1:
	movl	-24(%rbp), %eax
	cmpl	$2, %eax
	je	LBB0_8
## %bb.2:
	cmpl	$1, %eax
	je	LBB0_5
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 12(%rbx)
	jmp	LBB0_6
LBB0_8:
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 16(%rbx)
	jmp	LBB0_7
LBB0_5:
	movl	$0, 12(%rbx)
LBB0_6:
	movl	$1, 20(%rbx)
LBB0_7:
	movl	8(%rbx), %edi
	addq	$4, %rbx
	movq	%rbx, %rsi
	callq	_queue_work
	jmp	LBB0_10
LBB0_9:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_10:
	movq	%r14, %rdi
	callq	_strlen
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong input\nEnter 0. Disable AC/USB Charging\n1. Enable AC charging\n2. Enable USB Charging\n"

	.no_dead_strip	_abx500_chargalg_en_store
.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_en_store
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_abx500_chargalg_en_store:              ; @abx500_chargalg_en_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_11
; %bb.1:
	ldr	w8, [sp, #8]
	cmp	w8, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #1
	b.eq	LBB0_6
; %bb.3:
	cbnz	w8, LBB0_9
; %bb.4:
	movi.2s	v0, #1
	stur	d0, [x20, #12]
	mov	w8, #1
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20, #16]
	b	LBB0_8
LBB0_6:
	str	wzr, [x20, #12]
LBB0_7:
	str	w8, [x20, #20]
LBB0_8:
	ldr	w0, [x20, #8]
	add	x1, x20, #4
	bl	_queue_work
	b	LBB0_10
LBB0_9:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_10:
	mov	x0, x19
	bl	_strlen
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong input\nEnter 0. Disable AC/USB Charging\n1. Enable AC charging\n2. Enable USB Charging\n"

	.no_dead_strip	_abx500_chargalg_en_store
.subsections_via_symbols
