	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sony_nc_battery_care_limit_store
_sony_nc_battery_care_limit_store:      ## @sony_nc_battery_care_limit_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	cmpq	$32, %rcx
	jae	LBB0_1
## %bb.2:
	movq	%rcx, %rbx
	leaq	-16(%rbp), %rax
	movq	%rdx, %rdi
	movl	$10, %esi
	movq	%rax, %rdx
	callq	_kstrtoul
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_12:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	-16(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movl	$32, %eax
	cmpq	$51, %rcx
	jb	LBB0_8
## %bb.6:
	movl	$16, %eax
	cmpq	$81, %rcx
	jb	LBB0_8
## %bb.7:
	movl	$48, %eax
	cmpq	$101, %rcx
	jae	LBB0_1
LBB0_8:
	movq	_bcare_ctl@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %edi
	leal	(,%rax,4), %ecx
	xorl	%esi, %esi
	cmpl	$319, %edi                      ## imm = 0x13F
	cmovnel	%ecx, %esi
	orl	%eax, %esi
	shll	$16, %esi
	orl	$65792, %esi                    ## imm = 0x10100
	jmp	LBB0_9
LBB0_4:
	movq	_bcare_ctl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	$256, %esi                      ## imm = 0x100
LBB0_9:
	leaq	-20(%rbp), %rdx
	callq	_sony_call_snc_handle
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_bcare_ctl,8,3                  ## @bcare_ctl
	.comm	_EIO,8,3                        ## @EIO
	.no_dead_strip	_sony_nc_battery_care_limit_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sony_nc_battery_care_limit_store
_sony_nc_battery_care_limit_store:      ; @sony_nc_battery_care_limit_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
	cmp	x3, #32
	b.hs	LBB0_2
; %bb.1:
	mov	x19, x3
	mov	x0, x2
	mov	x2, sp
	mov	w1, #10
	bl	_kstrtoul
	cbz	x0, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldr	x8, [sp]
	cbz	x8, LBB0_8
; %bb.6:
	cmp	x8, #51
	b.hs	LBB0_9
; %bb.7:
	mov	w8, #32
	b	LBB0_13
LBB0_8:
Lloh2:
	adrp	x8, _bcare_ctl@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bcare_ctl@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	w1, #256
	b	LBB0_14
LBB0_9:
	cmp	x8, #81
	b.hs	LBB0_11
; %bb.10:
	mov	w8, #16
	b	LBB0_13
LBB0_11:
	cmp	x8, #101
	b.hs	LBB0_2
; %bb.12:
	mov	w8, #48
LBB0_13:
Lloh5:
	adrp	x9, _bcare_ctl@GOTPAGE
Lloh6:
	ldr	x9, [x9, _bcare_ctl@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w0, [x9]
	lsl	w9, w8, #2
	cmp	w0, #319
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
	mov	w9, #256
	movk	w9, #1, lsl #16
	orr	w1, w9, w8, lsl #16
LBB0_14:
	add	x2, sp, #12
	bl	_sony_call_snc_handle
	cbz	x0, LBB0_4
; %bb.15:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_bcare_ctl,8,3                  ; @bcare_ctl
	.comm	_EIO,8,3                        ; @EIO
	.no_dead_strip	_sony_nc_battery_care_limit_store
.subsections_via_symbols
