	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp10_battery_event
_hidpp10_battery_event:                 ## @hidpp10_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
	movq	(%rsi), %rax
	movq	_REPORT_ID_HIDPP_SHORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	16(%rsi), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.3:
	movl	(%r15), %r12d
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	callq	_hidpp10_battery_status_map_level
	movl	%eax, %r14d
	movq	8(%rbx), %rax
	movl	8(%rax), %edi
	callq	_hidpp10_battery_status_map_status
	cmpl	(%r15), %r12d
	je	LBB0_6
	jmp	LBB0_8
LBB0_4:
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	movl	(%rcx), %r12d
	movl	4(%r15), %r14d
	movl	12(%rax), %edi
	callq	_hidpp10_battery_mileage_map_status
	cmpl	(%r15), %r12d
	jne	LBB0_8
LBB0_6:
	cmpl	4(%r15), %r14d
	jne	LBB0_8
## %bb.7:
	movq	_POWER_SUPPLY_STATUS_DISCHARGING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%cl
	movq	_POWER_SUPPLY_STATUS_FULL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	sete	%dl
	orb	%cl, %dl
	movzbl	%dl, %ecx
	cmpl	8(%r15), %eax
	movl	%ecx, 12(%r15)
	jne	LBB0_9
	jmp	LBB0_11
LBB0_8:
	movq	_POWER_SUPPLY_STATUS_DISCHARGING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%cl
	movq	_POWER_SUPPLY_STATUS_FULL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	sete	%dl
	orb	%cl, %dl
	movzbl	%dl, %ecx
	movl	%ecx, 12(%r15)
LBB0_9:
	movl	%r14d, 4(%r15)
	movl	%eax, 8(%r15)
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_power_supply_changed
LBB0_11:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REPORT_ID_HIDPP_SHORT,8,3      ## @REPORT_ID_HIDPP_SHORT
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ## @POWER_SUPPLY_STATUS_DISCHARGING
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ## @POWER_SUPPLY_STATUS_FULL
	.no_dead_strip	_hidpp10_battery_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpp10_battery_event
_hidpp10_battery_event:                 ; @hidpp10_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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _REPORT_ID_HIDPP_SHORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REPORT_ID_HIDPP_SHORT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x1, #16]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.3:
	ldr	w22, [x19]
	ldr	x8, [x21, #8]
	ldr	w0, [x8, #4]
	bl	_hidpp10_battery_status_map_level
	mov	x20, x0
	ldr	x8, [x21, #8]
	ldr	w0, [x8, #8]
	bl	_hidpp10_battery_status_map_status
	b	LBB0_5
LBB0_4:
	ldr	x8, [x21, #24]
	ldr	w22, [x8]
	ldr	w20, [x19, #4]
	ldr	x8, [x21, #8]
	ldr	w0, [x8, #12]
	bl	_hidpp10_battery_mileage_map_status
LBB0_5:
	ldr	w8, [x19]
	cmp	w22, w8
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _POWER_SUPPLY_STATUS_FULL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _POWER_SUPPLY_STATUS_FULL@GOTPAGEOFF]
	cmp	w0, w9
Lloh8:
	ldr	w9, [x10]
	ccmp	w0, w9, #4, ne
	cset	w9, eq
	str	w9, [x19, #12]
	cmp	w0, w8
	b.ne	LBB0_9
	b	LBB0_11
LBB0_8:
Lloh9:
	adrp	x8, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
Lloh12:
	adrp	x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ccmp	w0, w8, #4, ne
	cset	w8, eq
	str	w8, [x19, #12]
LBB0_9:
	stp	w20, w0, [x19, #4]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_power_supply_changed
LBB0_11:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_REPORT_ID_HIDPP_SHORT,8,3      ; @REPORT_ID_HIDPP_SHORT
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ; @POWER_SUPPLY_STATUS_DISCHARGING
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ; @POWER_SUPPLY_STATUS_FULL
	.no_dead_strip	_hidpp10_battery_event
.subsections_via_symbols
