	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpad_psxadapter_get_axis
_hidpad_psxadapter_get_axis:            ## @hidpad_psxadapter_get_axis
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	cmpl	$3, %esi
	ja	LBB0_10
## %bb.2:
	movq	(%rdi), %rcx
	movl	8(%rcx), %edi
	cmpl	$127, %edi
	je	LBB0_10
## %bb.3:
	xorl	%eax, %eax
	movl	$0, %edx
	cmpl	$3, %esi
	ja	LBB0_9
## %bb.4:
	movl	%esi, %edx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_5:
	movl	16(%rcx), %edx
	jmp	LBB0_9
LBB0_6:
	movl	20(%rcx), %edx
	jmp	LBB0_9
LBB0_7:
	movl	12(%rcx), %edx
	jmp	LBB0_9
LBB0_8:
	movl	%edi, %edx
LBB0_9:
	shll	$8, %edx
	leal	-32768(%rdx), %ecx
	leal	-32768(%rdx), %esi
	negl	%esi
	cmpl	$32768, %edx                    ## imm = 0x8000
	cmovgel	%ecx, %esi
	cmpl	$4097, %esi                     ## imm = 0x1001
	cmovgel	%ecx, %eax
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_hidpad_psxadapter_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_psxadapter_get_axis
_hidpad_psxadapter_get_axis:            ; @hidpad_psxadapter_get_axis
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	w0, #0
	cbz	x8, LBB0_11
; %bb.1:
	cmp	w1, #3
	b.hi	LBB0_11
; %bb.2:
	ldr	x9, [x8]
	ldr	w8, [x9, #8]
	cmp	w8, #127
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ret
LBB0_4:
	cmp	w1, #3
	b.hi	LBB0_7
; %bb.5:
	mov	w10, w1
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_6
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_6:
	ldr	w8, [x9, #16]
	b	LBB0_10
LBB0_7:
	mov	w8, #0
	b	LBB0_10
LBB0_8:
	ldr	w8, [x9, #20]
	b	LBB0_10
LBB0_9:
	ldr	w8, [x9, #12]
LBB0_10:
	lsl	w8, w8, #8
	mov	w9, #32768
	sub	w9, w9, w8
	subs	w8, w8, #8, lsl #12             ; =32768
	csel	w9, w9, w8, lt
	cmp	w9, #1, lsl #12                 ; =4096
	csel	w0, w8, wzr, gt
LBB0_11:
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
                                        ; -- End function
	.no_dead_strip	_hidpad_psxadapter_get_axis
.subsections_via_symbols
