	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iohidmanager_hid_joypad_axis
_iohidmanager_hid_joypad_axis:          ## @iohidmanager_hid_joypad_axis
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_AXIS_NONE@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	je	LBB0_5
## %bb.1:
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_AXIS_NEG_GET
	cmpq	$10, %rax
	ja	LBB0_3
## %bb.2:
	movq	(%r15), %rax
	movl	%r14d, %r12d
	movq	(%rax,%r12,8), %r13
	movq	%rbx, %rdi
	callq	_AXIS_NEG_GET
	movq	(%r13,%rax,8), %r13
	shlq	$2, %r12
	addq	8(%r15), %r12
	movq	%rbx, %rdi
	callq	_AXIS_NEG_GET
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_pad_connection_get_axis
	addq	%r13, %rax
	movq	%rax, %rcx
	sarq	$63, %rcx
	andq	%rcx, %rax
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, %rdi
	callq	_AXIS_POS_GET
	cmpq	$10, %rax
	ja	LBB0_5
## %bb.4:
	movq	(%r15), %rax
	movl	%r14d, %r12d
	movq	(%rax,%r12,8), %r13
	movq	%rbx, %rdi
	callq	_AXIS_POS_GET
	movq	(%r13,%rax,8), %r13
	shlq	$2, %r12
	addq	8(%r15), %r12
	movq	%rbx, %rdi
	callq	_AXIS_POS_GET
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_pad_connection_get_axis
	addq	%r13, %rax
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovleq	%rcx, %rax
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AXIS_NONE,8,3                  ## @AXIS_NONE
	.no_dead_strip	_iohidmanager_hid_joypad_axis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iohidmanager_hid_joypad_axis
_iohidmanager_hid_joypad_axis:          ; @iohidmanager_hid_joypad_axis
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _AXIS_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AXIS_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x2
	bl	_AXIS_NEG_GET
	cmp	x0, #10
	b.hi	LBB0_3
; %bb.2:
	ldr	x8, [x21]
	ldr	x22, [x8, w19, uxtw #3]
	mov	x0, x20
	bl	_AXIS_NEG_GET
	ldr	x22, [x22, x0, lsl #3]
	ldr	x8, [x21, #8]
	add	x21, x8, w19, uxtw #2
	mov	x0, x20
	bl	_AXIS_NEG_GET
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_pad_connection_get_axis
	add	x8, x0, x22
	cmp	x8, #0
	csel	x0, x8, xzr, lt
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_AXIS_POS_GET
	cmp	x0, #10
	b.hi	LBB0_5
; %bb.4:
	ldr	x8, [x21]
	ldr	x22, [x8, w19, uxtw #3]
	mov	x0, x20
	bl	_AXIS_POS_GET
	ldr	x22, [x22, x0, lsl #3]
	ldr	x8, [x21, #8]
	add	x21, x8, w19, uxtw #2
	mov	x0, x20
	bl	_AXIS_POS_GET
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_pad_connection_get_axis
	add	x8, x0, x22
	cmp	x8, #0
	csel	x0, x8, xzr, gt
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AXIS_NONE,8,3                  ; @AXIS_NONE
	.no_dead_strip	_iohidmanager_hid_joypad_axis
.subsections_via_symbols
