	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kpad_axis
_kpad_axis:                             ## @kpad_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	callq	_to_wiimote_channel
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_kpad_query_pad
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.1:
	testl	%r15d, %r15d
	js	LBB0_4
## %bb.2:
	movq	_AXIS_NONE@GOTPCREL(%rip), %rcx
	cmpq	%r14, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_pad_functions@GOTPCREL(%rip), %rbx
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	*8(%rbx)
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %edi
	movq	_wiimotes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r15d, %ecx
	movl	(%rax,%rcx,4), %esi
	callq	*(%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AXIS_NONE,8,3                  ## @AXIS_NONE
	.comm	_pad_functions,16,3             ## @pad_functions
	.comm	_wiimotes,8,3                   ## @wiimotes
	.no_dead_strip	_kpad_axis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kpad_axis
_kpad_axis:                             ; @kpad_axis
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_to_wiimote_channel
	mov	x19, x0
	mov	x0, x21
	bl	_kpad_query_pad
	mov	x8, x0
	mov	w0, #0
	cbz	w8, LBB0_4
; %bb.1:
	tbnz	w19, #31, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _AXIS_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AXIS_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	b.eq	LBB0_4
; %bb.3:
Lloh3:
	adrp	x21, _pad_functions@GOTPAGE
Lloh4:
	ldr	x21, [x21, _pad_functions@GOTPAGEOFF]
	ldr	x8, [x21, #8]
	add	x1, sp, #8
	mov	x0, x20
	blr	x8
Lloh5:
	adrp	x8, _wiimotes@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wiimotes@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh7:
	ldr	x8, [x8]
	ldr	w1, [x8, w19, uxtw #2]
	ldp	w2, w0, [sp, #8]
	blr	x9
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AXIS_NONE,8,3                  ; @AXIS_NONE
	.comm	_pad_functions,16,3             ; @pad_functions
	.comm	_wiimotes,8,3                   ; @wiimotes
	.no_dead_strip	_kpad_axis
.subsections_via_symbols
