	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function param_set_battery_capacity
_param_set_battery_capacity:            ## @param_set_battery_capacity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	leaq	L_.str(%rip), %rsi
	leaq	-4(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	movl	-4(%rbp), %eax
	movq	_battery_capacity@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_test_power_supplies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TEST_BATTERY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_signal_power_supply_changed
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_battery_capacity,4,2           ## @battery_capacity
	.comm	_test_power_supplies,8,3        ## @test_power_supplies
	.comm	_TEST_BATTERY,8,3               ## @TEST_BATTERY
	.no_dead_strip	_param_set_battery_capacity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function param_set_battery_capacity
_param_set_battery_capacity:            ; @param_set_battery_capacity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #4
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	ldur	w8, [x29, #-4]
Lloh2:
	adrp	x9, _battery_capacity@GOTPAGE
Lloh3:
	ldr	x9, [x9, _battery_capacity@GOTPAGEOFF]
Lloh4:
	str	w8, [x9]
Lloh5:
	adrp	x8, _test_power_supplies@GOTPAGE
Lloh6:
	ldr	x8, [x8, _test_power_supplies@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _TEST_BATTERY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TEST_BATTERY@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_signal_power_supply_changed
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_battery_capacity,4,2           ; @battery_capacity
	.comm	_test_power_supplies,8,3        ; @test_power_supplies
	.comm	_TEST_BATTERY,8,3               ; @TEST_BATTERY
	.no_dead_strip	_param_set_battery_capacity
.subsections_via_symbols
