	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_parse_battery
_asus_parse_battery:                    ## @asus_parse_battery
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	32(%rsi), %ecx
	imull	$100, 4(%rsi), %eax
	movq	_BATTERY_LEVEL_MAX@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	movl	%eax, (%rdi)
	cmpl	$128, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_POWER_SUPPLY_STATUS_FULL@GOTPCREL(%rip), %rax
	cmpl	$130, %ecx
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_POWER_SUPPLY_STATUS_DISCHARGING@GOTPCREL(%rip), %rax
	cmpl	$130, %ecx
	jne	LBB0_5
LBB0_4:
	movq	_POWER_SUPPLY_STATUS_CHARGING@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BATTERY_LEVEL_MAX,8,3          ## @BATTERY_LEVEL_MAX
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_CHARGING
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ## @POWER_SUPPLY_STATUS_FULL
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ## @POWER_SUPPLY_STATUS_DISCHARGING
	.no_dead_strip	_asus_parse_battery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_parse_battery
_asus_parse_battery:                    ; @asus_parse_battery
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1, #4]
	ldr	w9, [x1, #32]
	mov	w10, #100
	mul	w8, w8, w10
Lloh0:
	adrp	x10, _BATTERY_LEVEL_MAX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BATTERY_LEVEL_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	sdiv	w8, w8, w10
Lloh3:
	adrp	x10, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGEOFF]
	str	w8, [x0]
Lloh5:
	adrp	x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGEOFF]
Lloh7:
	adrp	x11, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGE
Lloh8:
	ldr	x11, [x11, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGEOFF]
	cmp	w9, #128
	csel	x8, x8, x11, eq
	cmp	w9, #130
	csel	x8, x10, x8, eq
	ldr	w8, [x8]
	str	w8, [x0, #4]
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BATTERY_LEVEL_MAX,8,3          ; @BATTERY_LEVEL_MAX
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_CHARGING
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ; @POWER_SUPPLY_STATUS_FULL
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ; @POWER_SUPPLY_STATUS_DISCHARGING
	.no_dead_strip	_asus_parse_battery
.subsections_via_symbols
