	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function samsung_kbd_mouse_input_mapping
_samsung_kbd_mouse_input_mapping:       ## @samsung_kbd_mouse_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	(%rdi), %edi
	callq	_to_usb_interface
	movq	(%rax), %rax
	xorl	%r14d, %r14d
	cmpw	$1, (%rax)
	jne	LBB0_16
## %bb.1:
	movq	_HID_UP_CONSUMER@GOTPCREL(%rip), %rax
	movl	(%rbx), %esi
	movq	_HID_USAGE_PAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%esi, %ecx
	cmpl	%ecx, (%rax)
	jne	LBB0_16
## %bb.2:
	movq	_HID_USAGE@GOTPCREL(%rip), %r15
	andl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dbg_hid
	movl	(%r15), %ecx
	andl	(%rbx), %ecx
	leal	-555(%rcx), %eax
	cmpl	$6, %eax
	ja	LBB0_3
## %bb.17:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	_KEY_SEARCH@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_3:
	addl	$-387, %ecx                     ## imm = 0xFE7D
	cmpl	$20, %ecx
	ja	LBB0_16
## %bb.4:
	movq	_KEY_MEDIA@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_KEY_EMAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	movq	_KEY_WWW@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	movq	_KEY_BACK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	_KEY_FORWARD@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_KEY_FAVORITES@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_KEY_REFRESH@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_KEY_STOP@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_6:
	movq	_KEY_CALC@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_7:
	movq	_KEY_COMPUTER@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %edi
	callq	_samsung_kbd_mouse_map_key_clear
	movl	$1, %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
LJTI0_1:
	.long	L0_1_set_8
	.long	L0_1_set_9
	.long	L0_1_set_10
	.long	L0_1_set_11
	.long	L0_1_set_12
	.long	L0_1_set_13
	.long	L0_1_set_14
	.end_data_region
                                        ## -- End function
	.comm	_HID_UP_CONSUMER,4,2            ## @HID_UP_CONSUMER
	.comm	_HID_USAGE_PAGE,4,2             ## @HID_USAGE_PAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"samsung wireless keyboard/mouse input mapping event [0x%x]\n"

	.comm	_HID_USAGE,4,2                  ## @HID_USAGE
	.comm	_KEY_MEDIA,4,2                  ## @KEY_MEDIA
	.comm	_KEY_EMAIL,4,2                  ## @KEY_EMAIL
	.comm	_KEY_CALC,4,2                   ## @KEY_CALC
	.comm	_KEY_COMPUTER,4,2               ## @KEY_COMPUTER
	.comm	_KEY_SEARCH,4,2                 ## @KEY_SEARCH
	.comm	_KEY_WWW,4,2                    ## @KEY_WWW
	.comm	_KEY_BACK,4,2                   ## @KEY_BACK
	.comm	_KEY_FORWARD,4,2                ## @KEY_FORWARD
	.comm	_KEY_FAVORITES,4,2              ## @KEY_FAVORITES
	.comm	_KEY_REFRESH,4,2                ## @KEY_REFRESH
	.comm	_KEY_STOP,4,2                   ## @KEY_STOP
	.no_dead_strip	_samsung_kbd_mouse_input_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function samsung_kbd_mouse_input_mapping
_samsung_kbd_mouse_input_mapping:       ; @samsung_kbd_mouse_input_mapping
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
	ldr	w0, [x0]
	bl	_to_usb_interface
	ldr	x8, [x0]
	ldrh	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _HID_UP_CONSUMER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_UP_CONSUMER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	w8, [x19]
Lloh3:
	adrp	x10, _HID_USAGE_PAGE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HID_USAGE_PAGE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w10, w10, w8
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x20, _HID_USAGE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _HID_USAGE@GOTPAGEOFF]
	ldr	w9, [x20]
	and	w1, w9, w8
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_hid
	ldr	w8, [x19]
	ldr	w9, [x20]
	and	w8, w9, w8
	sub	w9, w8, #555
	cmp	w9, #6
	b.hi	LBB0_6
; %bb.3:
Lloh10:
	adrp	x8, lJTI0_1@PAGE
Lloh11:
	add	x8, x8, lJTI0_1@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh12:
	adrp	x8, _KEY_SEARCH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KEY_SEARCH@GOTPAGEOFF]
	b	LBB0_17
LBB0_5:
	mov	w0, #0
	b	LBB0_18
LBB0_6:
	mov	w0, #0
	sub	w9, w8, #387
	cmp	w9, #20
	b.hi	LBB0_18
; %bb.7:
Lloh14:
	adrp	x8, _KEY_MEDIA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KEY_MEDIA@GOTPAGEOFF]
Lloh16:
	adrp	x10, lJTI0_0@PAGE
Lloh17:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_8
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_8:
Lloh18:
	adrp	x8, _KEY_EMAIL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _KEY_EMAIL@GOTPAGEOFF]
	b	LBB0_17
LBB0_9:
Lloh20:
	adrp	x8, _KEY_WWW@GOTPAGE
Lloh21:
	ldr	x8, [x8, _KEY_WWW@GOTPAGEOFF]
	b	LBB0_17
LBB0_10:
Lloh22:
	adrp	x8, _KEY_BACK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _KEY_BACK@GOTPAGEOFF]
	b	LBB0_17
LBB0_11:
Lloh24:
	adrp	x8, _KEY_FORWARD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _KEY_FORWARD@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
Lloh26:
	adrp	x8, _KEY_FAVORITES@GOTPAGE
Lloh27:
	ldr	x8, [x8, _KEY_FAVORITES@GOTPAGEOFF]
	b	LBB0_17
LBB0_13:
Lloh28:
	adrp	x8, _KEY_REFRESH@GOTPAGE
Lloh29:
	ldr	x8, [x8, _KEY_REFRESH@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
Lloh30:
	adrp	x8, _KEY_STOP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _KEY_STOP@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh32:
	adrp	x8, _KEY_CALC@GOTPAGE
Lloh33:
	ldr	x8, [x8, _KEY_CALC@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh34:
	adrp	x8, _KEY_COMPUTER@GOTPAGE
Lloh35:
	ldr	x8, [x8, _KEY_COMPUTER@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	bl	_samsung_kbd_mouse_map_key_clear
	mov	w0, #1
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.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_17-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
lJTI0_1:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
                                        ; -- End function
	.comm	_HID_UP_CONSUMER,4,2            ; @HID_UP_CONSUMER
	.comm	_HID_USAGE_PAGE,4,2             ; @HID_USAGE_PAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"samsung wireless keyboard/mouse input mapping event [0x%x]\n"

	.comm	_HID_USAGE,4,2                  ; @HID_USAGE
	.comm	_KEY_MEDIA,4,2                  ; @KEY_MEDIA
	.comm	_KEY_EMAIL,4,2                  ; @KEY_EMAIL
	.comm	_KEY_CALC,4,2                   ; @KEY_CALC
	.comm	_KEY_COMPUTER,4,2               ; @KEY_COMPUTER
	.comm	_KEY_SEARCH,4,2                 ; @KEY_SEARCH
	.comm	_KEY_WWW,4,2                    ; @KEY_WWW
	.comm	_KEY_BACK,4,2                   ; @KEY_BACK
	.comm	_KEY_FORWARD,4,2                ; @KEY_FORWARD
	.comm	_KEY_FAVORITES,4,2              ; @KEY_FAVORITES
	.comm	_KEY_REFRESH,4,2                ; @KEY_REFRESH
	.comm	_KEY_STOP,4,2                   ; @KEY_STOP
	.no_dead_strip	_samsung_kbd_mouse_input_mapping
.subsections_via_symbols
