	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt_feature_mapping
_mt_feature_mapping:                    ## @mt_feature_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_hid_get_drvdata
	movq	%rax, %r14
	movl	(%rbx), %eax
	cmpl	$-16777019, %eax                ## imm = 0xFF0000C5
	je	LBB0_11
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_8
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.3:
	movl	8(%r15), %esi
	movq	%r12, %rdi
	callq	_mt_get_feature
	movq	16(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	24(%r15), %eax
	movq	_MT_MAX_MAXCONTACT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_6
## %bb.5:
	movl	%eax, 8(%r14)
LBB0_6:
	movl	4(%r14), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movl	%eax, 8(%r14)
	jmp	LBB0_12
LBB0_11:
	cmpq	$0, 8(%rbx)
	jne	LBB0_12
## %bb.14:
	movl	8(%r15), %esi
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt_get_feature                 ## TAILCALL
LBB0_8:
	movq	8(%rbx), %rax
	cmpq	(%r15), %rax
	jae	LBB0_13
## %bb.9:
	movl	8(%r15), %esi
	movq	%r12, %rdi
	callq	_mt_get_feature
	movq	16(%r15), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_MT_BUTTONTYPE_CLICKPAD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.10:
	movl	$1, (%r14)
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_MAX_MAXCONTACT,4,2          ## @MT_MAX_MAXCONTACT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HID_DG_BUTTONTYPE out of range\n"

	.comm	_MT_BUTTONTYPE_CLICKPAD,4,2     ## @MT_BUTTONTYPE_CLICKPAD
	.no_dead_strip	_mt_feature_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt_feature_mapping
_mt_feature_mapping:                    ; @mt_feature_mapping
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	bl	_hid_get_drvdata
	ldr	w8, [x22]
	add	w9, w8, #4095, lsl #12          ; =16773120
	cmn	w9, #3899
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x0
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.3:
	ldr	w1, [x20, #8]
	mov	x0, x21
	bl	_mt_get_feature
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	str	w8, [x19, #8]
	cbnz	w8, LBB0_6
; %bb.4:
	ldr	w8, [x20, #24]
Lloh0:
	adrp	x9, _MT_MAX_MAXCONTACT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MT_MAX_MAXCONTACT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_6
; %bb.5:
	str	w8, [x19, #8]
LBB0_6:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_13
; %bb.7:
	str	w8, [x19, #8]
	b	LBB0_13
LBB0_8:
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_13
; %bb.9:
	ldr	w1, [x20, #8]
	mov	x0, x21
	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
	b	_mt_get_feature
LBB0_10:
	ldr	x8, [x22, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.hs	LBB0_14
; %bb.11:
	ldr	w1, [x20, #8]
	mov	x0, x21
	bl	_mt_get_feature
	ldr	x8, [x20, #16]
	ldr	x9, [x22, #8]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _MT_BUTTONTYPE_CLICKPAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MT_BUTTONTYPE_CLICKPAD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x19]
LBB0_13:
	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
LBB0_14:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	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
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_MAX_MAXCONTACT,4,2          ; @MT_MAX_MAXCONTACT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HID_DG_BUTTONTYPE out of range\n"

	.comm	_MT_BUTTONTYPE_CLICKPAD,4,2     ; @MT_BUTTONTYPE_CLICKPAD
	.no_dead_strip	_mt_feature_mapping
.subsections_via_symbols
