	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_numbered_button_to_key
_wacom_numbered_button_to_key:          ## @wacom_numbered_button_to_key
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	cmpl	$9, %edi
	jg	LBB0_2
## %bb.1:
	movq	_BTN_0@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movl	%edi, %eax
	popq	%rbp
	retq
LBB0_2:
	cmpl	$15, %edi
	ja	LBB0_4
## %bb.3:
	movq	_BTN_A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%edi, %eax
	addl	$-10, %eax
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	cmpl	$17, %edi
	ja	LBB0_6
## %bb.5:
	movq	_BTN_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%edi, %eax
	addl	$-16, %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_0,4,2                      ## @BTN_0
	.comm	_BTN_A,4,2                      ## @BTN_A
	.comm	_BTN_BASE,4,2                   ## @BTN_BASE
	.no_dead_strip	_wacom_numbered_button_to_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_numbered_button_to_key
_wacom_numbered_button_to_key:          ; @wacom_numbered_button_to_key
	.cfi_startproc
; %bb.0:
	cmp	w0, #9
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _BTN_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w0, w8, w0
	ret
LBB0_2:
	cmp	w0, #15
	b.hi	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _BTN_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTN_A@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w0, w8
	sub	w0, w8, #10
	ret
LBB0_4:
	cmp	w0, #17
	b.hi	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _BTN_BASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_BASE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w8, w0, w8
	sub	w0, w8, #16
	ret
LBB0_6:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_0,4,2                      ; @BTN_0
	.comm	_BTN_A,4,2                      ; @BTN_A
	.comm	_BTN_BASE,4,2                   ; @BTN_BASE
	.no_dead_strip	_wacom_numbered_button_to_key
.subsections_via_symbols
