	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function iohidmanager_hid_device_input_callback
LCPI0_0:
	.long	0xbf800000                      ## float -1
LCPI0_1:
	.long	0x46fffe00                      ## float 32767
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_iohidmanager_hid_device_input_callback: ## @iohidmanager_hid_device_input_callback
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_hid_driver_get_data
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_IOHIDValueGetElement
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_IOHIDElementGetType
	movl	%eax, %ebx
	movslq	%eax, %r12
	movl	%r13d, %edi
	callq	_IOHIDElementGetUsagePage
	movl	%eax, %r15d
	movl	%r13d, %edi
	callq	_IOHIDElementGetUsage
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_IOHIDElementGetCookie
	movl	%r12d, %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	je	LBB0_2
## %bb.1:
	movq	_kIOHIDElementTypeInput_Axis@GOTPCREL(%rip), %rcx
	cmpq	%r12, (%rcx)
	je	LBB0_2
LBB0_38:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cltq
	movslq	%r15d, %rcx
	leaq	-133(%rcx), %rdx
	cmpq	$2, %rdx
	jb	LBB0_29
## %bb.3:
	cmpq	$131, %rcx
	je	LBB0_23
## %bb.4:
	cmpq	$132, %rcx
	jne	LBB0_38
## %bb.5:
	cmpl	$128, %ebx
	jne	LBB0_38
## %bb.6:
	cmpl	$130, %r14d
	jne	LBB0_19
## %bb.7:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	$24, %rcx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdx
	leaq	16(%rdx), %rcx
	cmpq	%rax, (%rdx)
	jne	LBB0_8
## %bb.9:
	movl	%r13d, %edi
	callq	_IOHIDElementGetLogicalMin
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_IOHIDElementGetLogicalMax
	movl	%eax, %ebx
	subl	%r14d, %ebx
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_IOHIDValueGetIntegerValue
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$3, %ebx
	sete	%cl
	shll	%cl, %eax
	xorl	%ecx, %ecx
	cmpl	$1, %r14d
	sete	%cl
	subl	%ecx, %eax
	cmpl	$7, %eax
	ja	LBB0_18
## %bb.10:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_36:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movabsq	$-4294967296, %rcx              ## imm = 0xFFFFFFFF00000000
	jmp	LBB0_37
LBB0_29:
	andq	$-2, %r12
	cmpq	$128, %r12
	jne	LBB0_38
LBB0_30:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_38
## %bb.31:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%rcx)
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	incq	%rbx
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_32
	jmp	LBB0_38
LBB0_23:
	cmpl	$128, %ebx
	jne	LBB0_38
## %bb.24:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rbx
	testq	%rbx, %rbx
	je	LBB0_30
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%rbx)
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_26
	jmp	LBB0_30
LBB0_34:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_IOHIDValueGetIntegerValue
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %edi
	movq	%rbx, %rsi
	addq	$24, %rsp
	testl	%eax, %eax
	je	LBB0_35
## %bb.39:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BIT64_SET                      ## TAILCALL
LBB0_19:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rbx
	testq	%rbx, %rbx
	je	LBB0_30
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%rbx)
	je	LBB0_28
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_21
	jmp	LBB0_30
LBB0_28:
	movl	%r13d, %edi
	callq	_IOHIDElementGetPhysicalMin
	movl	%eax, %r14d
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_IOHIDValueGetIntegerValue
	movl	%eax, %r15d
	subl	%r14d, %r15d
	movl	%r13d, %edi
	callq	_IOHIDElementGetPhysicalMax
	cvtsi2ss	%r15d, %xmm0
	subl	%r14d, %eax
	cvtsi2ss	%eax, %xmm1
	divss	%xmm1, %xmm0
	addss	%xmm0, %xmm0
	addss	LCPI0_0(%rip), %xmm0
	mulss	LCPI0_1(%rip), %xmm0
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	8(%rbx), %rcx
	movss	%xmm0, (%rax,%rcx,4)
	jmp	LBB0_38
LBB0_35:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BIT64_CLEAR                    ## TAILCALL
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	$0, (%rax)
	jmp	LBB0_38
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movabsq	$-4294967295, %rcx              ## imm = 0xFFFFFFFF00000001
	jmp	LBB0_37
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	$1, (%rax)
	jmp	LBB0_38
LBB0_13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	jmp	LBB0_37
LBB0_14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	jmp	LBB0_37
LBB0_15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movabsq	$8589934591, %rcx               ## imm = 0x1FFFFFFFF
	jmp	LBB0_37
LBB0_16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	$4294967295, %ecx               ## imm = 0xFFFFFFFF
LBB0_37:
	movq	%rcx, (%rax)
	jmp	LBB0_38
LBB0_17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	$-1, (%rax)
	jmp	LBB0_38
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_36
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_kIOHIDElementTypeInput_Axis,8,3 ## @kIOHIDElementTypeInput_Axis
	.no_dead_strip	_iohidmanager_hid_device_input_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function iohidmanager_hid_device_input_callback
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
lCPI0_1:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
lCPI0_2:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
lCPI0_3:
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_iohidmanager_hid_device_input_callback: ; @iohidmanager_hid_device_input_callback
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x19, x0
	bl	_hid_driver_get_data
	mov	x20, x0
	mov	x0, x21
	bl	_IOHIDValueGetElement
	mov	x22, x0
	bl	_IOHIDElementGetType
	mov	x25, x0
	sxtw	x26, w25
	mov	x0, x22
	bl	_IOHIDElementGetUsagePage
	mov	x24, x0
	mov	x0, x22
	bl	_IOHIDElementGetUsage
	mov	x23, x0
	mov	x0, x22
	bl	_IOHIDElementGetCookie
                                        ; kill: def $w0 killed $w0 def $x0
	and	w8, w25, #0xfffffffe
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _kIOHIDElementTypeInput_Axis@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kIOHIDElementTypeInput_Axis@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x26
	b.eq	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	sxtw	x8, w0
	sxtw	x9, w24
	sub	x10, x9, #133
	cmp	x10, #2
	b.lo	LBB0_13
; %bb.4:
	cmp	x9, #131
	b.eq	LBB0_18
; %bb.5:
	cmp	x9, #132
	b.ne	LBB0_2
; %bb.6:
	cmp	w26, #128
	b.ne	LBB0_2
; %bb.7:
	cmp	w23, #130
	b.ne	LBB0_24
; %bb.8:
	add	x9, x19, #24
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x9]
	ldr	x10, [x9], #16
	cmp	x10, x8
	b.ne	LBB0_9
; %bb.10:
	mov	x0, x22
	bl	_IOHIDElementGetLogicalMin
	mov	x23, x0
	mov	x0, x22
	bl	_IOHIDElementGetLogicalMax
	sub	w22, w0, w23
	mov	x0, x21
	bl	_IOHIDValueGetIntegerValue
	cmp	w22, #3
	cset	w8, eq
	lsl	w8, w0, w8
	cmp	w23, #1
	cset	w9, eq
	sub	w8, w8, w9
	cmp	w8, #7
	b.hi	LBB0_29
; %bb.11:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_12
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_12:
	ldr	x8, [x20]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	movi	d0, #0xffffffff00000000
	b	LBB0_36
LBB0_13:
	and	x9, x26, #0xfffffffffffffffe
	cmp	x9, #128
	b.ne	LBB0_2
LBB0_14:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_2
; %bb.15:
	mov	x22, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cmp	x10, x8
	b.eq	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x22, x22, #1
	ldr	x9, [x9, #16]
	cbnz	x9, LBB0_16
	b	LBB0_2
LBB0_18:
	cmp	w26, #128
	b.ne	LBB0_2
; %bb.19:
	ldr	x24, [x19, #16]
	cbz	x24, LBB0_14
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	cmp	x9, x8
	b.eq	LBB0_27
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x24, [x24, #16]
	cbnz	x24, LBB0_20
	b	LBB0_14
LBB0_22:
	mov	x0, x21
	bl	_IOHIDValueGetIntegerValue
	mov	x8, x0
	ldr	x9, [x20, #16]
	ldr	x10, [x19]
	ldr	w0, [x9, x10, lsl #2]
	mov	x1, x22
	cbz	w8, LBB0_28
; %bb.23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_BIT64_SET
LBB0_24:
	ldr	x24, [x19, #16]
	cbz	x24, LBB0_14
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	cmp	x9, x8
	b.eq	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x24, [x24, #16]
	cbnz	x24, LBB0_25
	b	LBB0_14
LBB0_27:
	mov	x0, x22
	bl	_IOHIDElementGetPhysicalMin
	mov	x23, x0
	mov	x0, x21
	bl	_IOHIDValueGetIntegerValue
	sub	w21, w0, w23
	mov	x0, x22
	bl	_IOHIDElementGetPhysicalMax
	sub	w8, w0, w23
	scvtf	s0, w21
	scvtf	s1, w8
	fdiv	s0, s0, s1
	fmov	s1, #-1.00000000
	fmov	s2, #2.00000000
	fmadd	s0, s0, s2, s1
	mov	w8, #65024
	movk	w8, #18175, lsl #16
	fmov	s1, w8
	fmul	s0, s0, s1
	ldr	x8, [x20, #8]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x24, #8]
	str	s0, [x8, x9, lsl #2]
	b	LBB0_2
LBB0_28:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_BIT64_CLEAR
LBB0_29:
	ldr	x8, [x20]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	str	xzr, [x8]
	b	LBB0_2
LBB0_30:
	ldr	x8, [x20]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
Lloh5:
	adrp	x9, lCPI0_3@PAGE
Lloh6:
	ldr	d0, [x9, lCPI0_3@PAGEOFF]
	b	LBB0_36
LBB0_31:
	ldr	x8, [x20]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
Lloh7:
	adrp	x9, lCPI0_2@PAGE
Lloh8:
	ldr	d0, [x9, lCPI0_2@PAGEOFF]
	b	LBB0_36
LBB0_32:
	ldr	x8, [x20]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	movi.2s	v0, #1
	b	LBB0_36
LBB0_33:
	ldr	x8, [x20]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
Lloh9:
	adrp	x9, lCPI0_1@PAGE
Lloh10:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	b	LBB0_36
LBB0_34:
	ldr	x8, [x20]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
Lloh11:
	adrp	x9, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	b	LBB0_36
LBB0_35:
	ldr	x8, [x20]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	movi	d0, #0x000000ffffffff
LBB0_36:
	str	d0, [x8]
	b	LBB0_2
LBB0_37:
	ldr	x8, [x20]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdr	Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_30-LBB0_12)>>2
	.byte	(LBB0_31-LBB0_12)>>2
	.byte	(LBB0_32-LBB0_12)>>2
	.byte	(LBB0_33-LBB0_12)>>2
	.byte	(LBB0_34-LBB0_12)>>2
	.byte	(LBB0_35-LBB0_12)>>2
	.byte	(LBB0_37-LBB0_12)>>2
                                        ; -- End function
	.comm	_kIOHIDElementTypeInput_Axis,8,3 ; @kIOHIDElementTypeInput_Axis
	.no_dead_strip	_iohidmanager_hid_device_input_callback
.subsections_via_symbols
