	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpad_retrode_get_axis
_hidpad_retrode_get_axis:               ## @hidpad_retrode_get_axis
	.cfi_startproc
## %bb.0:
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	cmpl	$1, %esi
	ja	LBB0_3
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movl	%esi, %ecx
	movl	8(%rax,%rcx,4), %eax
	xorl	%ecx, %ecx
	cmpl	$100, %eax
	movl	$32512, %edx                    ## imm = 0x7F00
	cmovnel	%ecx, %edx
	cmpl	$156, %eax
	movl	$-32768, %eax                   ## imm = 0x8000
	cmovnel	%edx, %eax
	popq	%rbp
LBB0_3:
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hidpad_retrode_get_axis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpad_retrode_get_axis
_hidpad_retrode_get_axis:               ; @hidpad_retrode_get_axis
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	w0, #0
	cbz	x8, LBB0_3
; %bb.1:
	cmp	w1, #1
	b.hi	LBB0_3
; %bb.2:
	ldr	x8, [x8]
	add	w9, w1, #2
	ldr	w8, [x8, w9, uxtw #2]
	mov	w9, #32512
	cmp	w8, #100
	csel	w9, w9, wzr, eq
	mov	w10, #-32768
	cmp	w8, #156
	csel	w0, w10, w9, eq
LBB0_3:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hidpad_retrode_get_axis
.subsections_via_symbols
