	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_remote_attach_battery
_wacom_remote_attach_battery:           ## @wacom_remote_attach_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	%esi, %eax
	movq	(%rdi), %rcx
	movq	(%rcx), %rsi
	movslq	%eax, %rcx
	movq	%rcx, %rax
	shlq	$4, %rax
	cmpl	$0, 8(%rsi,%rax)
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%rsi,%rax)
	jne	LBB0_3
## %bb.2:
	movq	8(%rdi), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movq	_WACOM_STATUS_UNKNOWN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	addq	%rax, %rsi
	popq	%rbp
	jmp	___wacom_initialize_battery     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WACOM_STATUS_UNKNOWN,8,3       ## @WACOM_STATUS_UNKNOWN
	.no_dead_strip	_wacom_remote_attach_battery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_remote_attach_battery
_wacom_remote_attach_battery:           ; @wacom_remote_attach_battery
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0]
	ldr	x9, [x8]
	add	x8, x9, w1, sxtw #4
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_3
; %bb.1:
	sxtw	x8, w1
	add	x1, x9, x8, lsl #4
	ldr	x9, [x1]
	cbnz	x9, LBB0_3
; %bb.2:
	ldr	x9, [x0, #8]
	ldr	x8, [x9, x8, lsl #3]
Lloh0:
	adrp	x9, _WACOM_STATUS_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WACOM_STATUS_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	b	___wacom_initialize_battery
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WACOM_STATUS_UNKNOWN,8,3       ; @WACOM_STATUS_UNKNOWN
	.no_dead_strip	_wacom_remote_attach_battery
.subsections_via_symbols
