	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_battery_get_property
_wacom_battery_get_property:            ## @wacom_battery_get_property
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_power_supply_get_drvdata
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_5
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	movl	8(%rax), %ecx
	movq	_WACOM_POWER_SUPPLY_STATUS_AUTO@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_13
## %bb.3:
	cmpl	$0, 16(%rax)
	je	LBB0_14
## %bb.4:
	movq	_POWER_SUPPLY_STATUS_CHARGING@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_6:
	movq	_POWER_SUPPLY_SCOPE_DEVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	24(%rax), %rax
LBB0_8:
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_9:
	movl	4(%rax), %eax
LBB0_10:
	movl	%eax, (%r14)
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	movl	%ecx, (%r14)
	jmp	LBB0_11
LBB0_14:
	movl	12(%rax), %ecx
	cmpl	$100, 4(%rax)
	jne	LBB0_17
## %bb.15:
	testl	%ecx, %ecx
	je	LBB0_19
## %bb.16:
	movq	_POWER_SUPPLY_STATUS_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_17:
	testl	%ecx, %ecx
	je	LBB0_19
## %bb.18:
	movq	_POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_19:
	movq	_POWER_SUPPLY_STATUS_DISCHARGING@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_POWER_SUPPLY_SCOPE_DEVICE,4,2  ## @POWER_SUPPLY_SCOPE_DEVICE
	.comm	_WACOM_POWER_SUPPLY_STATUS_AUTO,4,2 ## @WACOM_POWER_SUPPLY_STATUS_AUTO
	.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_NOT_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_NOT_CHARGING
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ## @POWER_SUPPLY_STATUS_DISCHARGING
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wacom_battery_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_battery_get_property
_wacom_battery_get_property:            ; @wacom_battery_get_property
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	bl	_power_supply_get_drvdata
	sub	w9, w20, #128
	cmp	w9, #4
	b.hi	LBB0_5
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldr	w9, [x8, #8]
Lloh2:
	adrp	x10, _WACOM_POWER_SUPPLY_STATUS_AUTO@GOTPAGE
Lloh3:
	ldr	x10, [x10, _WACOM_POWER_SUPPLY_STATUS_AUTO@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_11
; %bb.3:
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_13
; %bb.4:
	mov	w0, #0
Lloh5:
	adrp	x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_6:
	mov	w0, #0
Lloh10:
	adrp	x8, _POWER_SUPPLY_SCOPE_DEVICE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _POWER_SUPPLY_SCOPE_DEVICE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #0
	ldr	x8, [x8, #24]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_12
LBB0_10:
	mov	w0, #0
	ldr	w8, [x8, #4]
	str	w8, [x19]
	b	LBB0_12
LBB0_11:
	mov	w0, #0
	str	w9, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w9, [x8, #4]
	ldr	w8, [x8, #12]
	cmp	w9, #100
	b.ne	LBB0_16
; %bb.14:
	cbz	w8, LBB0_18
; %bb.15:
	mov	w0, #0
Lloh12:
	adrp	x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGEOFF]
	b	LBB0_9
LBB0_16:
	cbz	w8, LBB0_18
; %bb.17:
	mov	w0, #0
Lloh14:
	adrp	x8, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGEOFF]
	b	LBB0_9
LBB0_18:
	mov	w0, #0
Lloh16:
	adrp	x8, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_POWER_SUPPLY_SCOPE_DEVICE,4,2  ; @POWER_SUPPLY_SCOPE_DEVICE
	.comm	_WACOM_POWER_SUPPLY_STATUS_AUTO,4,2 ; @WACOM_POWER_SUPPLY_STATUS_AUTO
	.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_NOT_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_NOT_CHARGING
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ; @POWER_SUPPLY_STATUS_DISCHARGING
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wacom_battery_get_property
.subsections_via_symbols
