	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zc_input_mapping
_zc_input_mapping:                      ## @zc_input_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	%rcx, %r12
	movq	%rsi, %rbx
	callq	_hid_get_drvdata
	movq	%rax, %r14
	movl	(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	(%r12), %esi
	movq	_HID_USAGE_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	movq	_HID_UP_CONSUMER@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.1:
	movq	_HID_USAGE@GOTPCREL(%rip), %rbx
	andl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dbg_hid
	movl	(%rbx), %ecx
	andl	(%r12), %ecx
	addl	$-4, %ecx
	cmpl	$108, %ecx
	ja	LBB0_15
## %bb.2:
	movq	_KEY_MODE@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_KEY_RADIO@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	movq	_KEY_PVR@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_KEY_MENU@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	movq	_KEY_TV@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_3:
	movq	_KEY_SCREEN@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_KEY_TEXT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	movq	_KEY_AUDIO@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_KEY_DVD@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	movq	_KEY_AUX@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movq	_KEY_VIDEO@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	movq	_KEY_INFO@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %edi
	callq	_zc_map_key_clear
	movq	(%r14), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movups	%xmm0, 16(%rax)
	movl	$1, %r15d
LBB0_15:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_6
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_12
	.long	L0_0_set_7
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_3
	.long	L0_0_set_15
	.long	L0_0_set_13
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_HID_USAGE_PAGE,4,2             ## @HID_USAGE_PAGE
	.comm	_HID_UP_CONSUMER,4,2            ## @HID_UP_CONSUMER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"zynacron input mapping event [0x%x]\n"

	.comm	_HID_USAGE,4,2                  ## @HID_USAGE
	.comm	_KEY_MODE,4,2                   ## @KEY_MODE
	.comm	_KEY_SCREEN,4,2                 ## @KEY_SCREEN
	.comm	_KEY_INFO,4,2                   ## @KEY_INFO
	.comm	_KEY_RADIO,4,2                  ## @KEY_RADIO
	.comm	_KEY_PVR,4,2                    ## @KEY_PVR
	.comm	_KEY_TV,4,2                     ## @KEY_TV
	.comm	_KEY_AUDIO,4,2                  ## @KEY_AUDIO
	.comm	_KEY_AUX,4,2                    ## @KEY_AUX
	.comm	_KEY_VIDEO,4,2                  ## @KEY_VIDEO
	.comm	_KEY_DVD,4,2                    ## @KEY_DVD
	.comm	_KEY_MENU,4,2                   ## @KEY_MENU
	.comm	_KEY_TEXT,4,2                   ## @KEY_TEXT
	.no_dead_strip	_zc_input_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zc_input_mapping
_zc_input_mapping:                      ; @zc_input_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	x20, x3
	mov	x21, x1
	bl	_hid_get_drvdata
	ldr	w8, [x21]
	str	w8, [x0, #8]
	ldr	w8, [x20]
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_CONSUMER@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HID_UP_CONSUMER@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x21, _HID_USAGE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _HID_USAGE@GOTPAGEOFF]
	ldr	w9, [x21]
	and	w1, w9, w8
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_hid
	mov	w0, #0
	ldr	w8, [x20]
	ldr	w9, [x21]
	and	w8, w9, w8
	sub	w9, w8, #4
	cmp	w9, #108
	b.hi	LBB0_16
; %bb.2:
Lloh10:
	adrp	x8, _KEY_MODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KEY_MODE@GOTPAGEOFF]
Lloh12:
	adrp	x10, lJTI0_0@PAGE
Lloh13:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
Lloh14:
	adrp	x8, _KEY_RADIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KEY_RADIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_4:
	mov	w0, #0
	b	LBB0_16
LBB0_5:
Lloh16:
	adrp	x8, _KEY_PVR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KEY_PVR@GOTPAGEOFF]
	b	LBB0_15
LBB0_6:
Lloh18:
	adrp	x8, _KEY_MENU@GOTPAGE
Lloh19:
	ldr	x8, [x8, _KEY_MENU@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
Lloh20:
	adrp	x8, _KEY_TV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _KEY_TV@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
Lloh22:
	adrp	x8, _KEY_SCREEN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _KEY_SCREEN@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
Lloh24:
	adrp	x8, _KEY_TEXT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _KEY_TEXT@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh26:
	adrp	x8, _KEY_AUDIO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _KEY_AUDIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh28:
	adrp	x8, _KEY_DVD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _KEY_DVD@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh30:
	adrp	x8, _KEY_AUX@GOTPAGE
Lloh31:
	ldr	x8, [x8, _KEY_AUX@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh32:
	adrp	x8, _KEY_VIDEO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _KEY_VIDEO@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh34:
	adrp	x8, _KEY_INFO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _KEY_INFO@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	bl	_zc_map_key_clear
	ldr	x8, [x19]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8]
	mov	w0, #1
LBB0_16:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
                                        ; -- End function
	.comm	_HID_USAGE_PAGE,4,2             ; @HID_USAGE_PAGE
	.comm	_HID_UP_CONSUMER,4,2            ; @HID_UP_CONSUMER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"zynacron input mapping event [0x%x]\n"

	.comm	_HID_USAGE,4,2                  ; @HID_USAGE
	.comm	_KEY_MODE,4,2                   ; @KEY_MODE
	.comm	_KEY_SCREEN,4,2                 ; @KEY_SCREEN
	.comm	_KEY_INFO,4,2                   ; @KEY_INFO
	.comm	_KEY_RADIO,4,2                  ; @KEY_RADIO
	.comm	_KEY_PVR,4,2                    ; @KEY_PVR
	.comm	_KEY_TV,4,2                     ; @KEY_TV
	.comm	_KEY_AUDIO,4,2                  ; @KEY_AUDIO
	.comm	_KEY_AUX,4,2                    ; @KEY_AUX
	.comm	_KEY_VIDEO,4,2                  ; @KEY_VIDEO
	.comm	_KEY_DVD,4,2                    ; @KEY_DVD
	.comm	_KEY_MENU,4,2                   ; @KEY_MENU
	.comm	_KEY_TEXT,4,2                   ; @KEY_TEXT
	.no_dead_strip	_zc_input_mapping
.subsections_via_symbols
