	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_wac_battery_event
_wacom_wac_battery_event:               ## @wacom_wac_battery_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movq	%rsi, %r15
	callq	_hid_get_drvdata
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_wacom_equivalent_usage
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_9
## %bb.3:
	testl	%r14d, %r14d
	je	LBB0_4
LBB0_5:
	movl	(%r15), %ecx
	subl	4(%r15), %ecx
	imull	$100, %r14d, %eax
	cltd
	idivl	%ecx
	movl	%eax, (%r12)
	jmp	LBB0_7
LBB0_6:
	movl	%r14d, 8(%r12)
	movl	%r14d, 12(%r12)
LBB0_7:
	movl	$1, 4(%r12)
	movq	_WACOM_POWER_SUPPLY_STATUS_AUTO@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_POWER_SUPPLY_STATUS_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_SUPPLY_STATUS_UNKNOWN,8,3 ## @POWER_SUPPLY_STATUS_UNKNOWN
	.comm	_WACOM_POWER_SUPPLY_STATUS_AUTO,8,3 ## @WACOM_POWER_SUPPLY_STATUS_AUTO
	.no_dead_strip	_wacom_wac_battery_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_wac_battery_event
_wacom_wac_battery_event:               ; @wacom_wac_battery_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	bl	_hid_get_drvdata
	mov	x19, x0
	ldr	w0, [x22]
	bl	_wacom_equivalent_usage
	cmp	w0, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #130
	b.ne	LBB0_8
; %bb.3:
	cbz	w20, LBB0_9
LBB0_4:
	mov	w8, #100
	mul	w8, w20, w8
	ldp	w9, w10, [x21]
	sub	w9, w9, w10
	sdiv	w8, w8, w9
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
	stp	w20, w20, [x19, #8]
LBB0_6:
	mov	w8, #1
	str	w8, [x19, #4]
Lloh0:
	adrp	x8, _WACOM_POWER_SUPPLY_STATUS_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WACOM_POWER_SUPPLY_STATUS_AUTO@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh2:
	adrp	x8, _POWER_SUPPLY_STATUS_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_UNKNOWN@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_SUPPLY_STATUS_UNKNOWN,8,3 ; @POWER_SUPPLY_STATUS_UNKNOWN
	.comm	_WACOM_POWER_SUPPLY_STATUS_AUTO,8,3 ; @WACOM_POWER_SUPPLY_STATUS_AUTO
	.no_dead_strip	_wacom_wac_battery_event
.subsections_via_symbols
