	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function navigation_mapping
_navigation_mapping:                    ## @navigation_mapping
	.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	%r9, %r15
	movq	%r8, %r12
	movq	%rcx, %r13
	movl	(%rcx), %r14d
	movq	_HID_USAGE_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_HID_UP_BUTTON@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.1:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_HID_USAGE@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_sixaxis_keymap@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movl	$-1, %ebx
	cmpl	%eax, %r14d
	jae	LBB0_12
## %bb.2:
	movq	_navigation_keymap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %r9d
	testl	%r9d, %r9d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_12
## %bb.3:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movq	_HID_GD_POINTER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	jne	LBB0_7
## %bb.5:
	movl	$-1, %ebx
	cmpl	$8, 4(%r13)
	jne	LBB0_12
## %bb.6:
	movq	_HID_GD_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, (%r13)
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	andl	$15, %r9d
	movq	%rsi, %rdi
	jmp	LBB0_11
LBB0_7:
	movq	_HID_UP_GENDESK@GOTPCREL(%rip), %rcx
	movl	$-1, %ebx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.8:
	movq	_HID_USAGE@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_navigation_absmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_ARRAY_SIZE
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpl	%eax, %r14d
	jae	LBB0_12
## %bb.9:
	movq	_navigation_absmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %r9d
	movq	_EV_ABS@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %r8d
LBB0_11:
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_hid_map_usage_clear
	movl	$1, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_USAGE_PAGE,4,2             ## @HID_USAGE_PAGE
	.comm	_HID_UP_BUTTON,4,2              ## @HID_UP_BUTTON
	.comm	_HID_USAGE,4,2                  ## @HID_USAGE
	.comm	_sixaxis_keymap,8,3             ## @sixaxis_keymap
	.comm	_navigation_keymap,8,3          ## @navigation_keymap
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_HID_GD_POINTER,4,2             ## @HID_GD_POINTER
	.comm	_HID_GD_Z,4,2                   ## @HID_GD_Z
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_HID_UP_GENDESK,4,2             ## @HID_UP_GENDESK
	.comm	_navigation_absmap,8,3          ## @navigation_absmap
	.no_dead_strip	_navigation_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function navigation_mapping
_navigation_mapping:                    ; @navigation_mapping
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x1
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _HID_USAGE_PAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_USAGE_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh3:
	adrp	x10, _HID_UP_BUTTON@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HID_UP_BUTTON@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x9, _HID_USAGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HID_USAGE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	x23, x9, x8
Lloh9:
	adrp	x8, _sixaxis_keymap@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sixaxis_keymap@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.hs	LBB0_12
; %bb.2:
Lloh12:
	adrp	x8, _navigation_keymap@GOTPAGE
Lloh13:
	ldr	x8, [x8, _navigation_keymap@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w5, [x8, x23, lsl #2]
	cbz	w5, LBB0_12
; %bb.3:
Lloh15:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
Lloh17:
	adrp	x10, _HID_GD_POINTER@GOTPAGE
Lloh18:
	ldr	x10, [x10, _HID_GD_POINTER@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [x21, #4]
	cmp	w8, #8
	b.ne	LBB0_12
; %bb.6:
Lloh20:
	adrp	x8, _HID_GD_Z@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HID_GD_Z@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh23:
	adrp	x9, _EV_ABS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EV_ABS@GOTPAGEOFF]
Lloh25:
	ldr	w4, [x9]
	and	w5, w8, #0xf
	b	LBB0_11
LBB0_7:
Lloh26:
	adrp	x10, _HID_UP_GENDESK@GOTPAGE
Lloh27:
	ldr	x10, [x10, _HID_UP_GENDESK@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_12
; %bb.8:
Lloh29:
	adrp	x9, _HID_USAGE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _HID_USAGE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	and	w23, w9, w8
Lloh32:
	adrp	x24, _navigation_absmap@GOTPAGE
Lloh33:
	ldr	x24, [x24, _navigation_absmap@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.hs	LBB0_12
; %bb.9:
	ldr	x8, [x24]
	ldr	w5, [x8, x23, lsl #2]
Lloh34:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
LBB0_10:
	ldr	w4, [x8]
LBB0_11:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_hid_map_usage_clear
	mov	w0, #1
	b	LBB0_13
LBB0_12:
	mov	w0, #-1
LBB0_13:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_USAGE_PAGE,4,2             ; @HID_USAGE_PAGE
	.comm	_HID_UP_BUTTON,4,2              ; @HID_UP_BUTTON
	.comm	_HID_USAGE,4,2                  ; @HID_USAGE
	.comm	_sixaxis_keymap,8,3             ; @sixaxis_keymap
	.comm	_navigation_keymap,8,3          ; @navigation_keymap
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_HID_GD_POINTER,4,2             ; @HID_GD_POINTER
	.comm	_HID_GD_Z,4,2                   ; @HID_GD_Z
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_HID_UP_GENDESK,4,2             ; @HID_UP_GENDESK
	.comm	_navigation_absmap,8,3          ; @navigation_absmap
	.no_dead_strip	_navigation_mapping
.subsections_via_symbols
