	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plantronics_input_mapping
_plantronics_input_mapping:             ## @plantronics_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	%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, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_hid_get_drvdata
	movq	(%r13), %rcx
	movq	_HID_GD_JOYSTICK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
LBB0_1:
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_hid_dbg
LBB0_2:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	movq	_HID_USAGE_PAGE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r8
	testq	%rax, %r8
	je	LBB0_8
## %bb.4:
	movq	%r13, %r11
	movq	%rbx, %r10
	movq	_HID_USAGE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	andq	%rax, %rsi
	movq	_PLT_BASIC_TELEPHONY@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rsi
	jb	LBB0_10
## %bb.5:
	movq	_PLT_BASIC_EXCEPTION@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rsi
	je	LBB0_10
## %bb.6:
	movq	_PLT_ALLOW_CONSUMER@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	%r10, %rbx
	jne	LBB0_1
	jmp	LBB0_9
LBB0_8:
	movq	_PLT_ALLOW_CONSUMER@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_1
LBB0_9:
	movl	$-1, %r13d
	jmp	LBB0_2
LBB0_10:
	xorq	%rax, %rcx
	movl	$-1, %r13d
	testq	%rcx, %r8
	jne	LBB0_2
## %bb.11:
	movl	$-129, %eax
	addl	(%r10), %eax
	cmpl	$4, %eax
	jae	LBB0_2
## %bb.12:
	movq	%r10, %rbx
	cltq
	leaq	l_switch.table.plantronics_input_mapping(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movzwl	(%rax), %r13d
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%r10, %rsi
	movq	%r12, %rdx
	movq	%r9, %rcx
	movl	%r13d, %r9d
	movq	%r11, %r14
	callq	_hid_map_usage_clear
	movl	(%rbx), %edx
	movq	(%r14), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_hid_dbg
	movl	$1, %r13d
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_GD_JOYSTICK,8,3            ## @HID_GD_JOYSTICK
	.comm	_HID_USAGE_PAGE,8,3             ## @HID_USAGE_PAGE
	.comm	_PLT_ALLOW_CONSUMER,8,3         ## @PLT_ALLOW_CONSUMER
	.comm	_HID_USAGE,8,3                  ## @HID_USAGE
	.comm	_PLT_BASIC_TELEPHONY,8,3        ## @PLT_BASIC_TELEPHONY
	.comm	_PLT_BASIC_EXCEPTION,8,3        ## @PLT_BASIC_EXCEPTION
	.comm	_KEY_VOLUMEUP,2,1               ## @KEY_VOLUMEUP
	.comm	_KEY_VOLUMEDOWN,2,1             ## @KEY_VOLUMEDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: %08x (appl: %08x) - defaulted\n"

	.comm	_EV_KEY,4,2                     ## @EV_KEY
L_.str.1:                               ## @.str.1
	.asciz	"usage: %08x (appl: %08x) - mapped to key %d\n"

	.no_dead_strip	_plantronics_input_mapping
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.plantronics_input_mapping
l_switch.table.plantronics_input_mapping:
	.quad	_KEY_VOLUMEUP
	.quad	_KEY_VOLUMEDOWN
	.quad	_KEY_VOLUMEUP
	.quad	_KEY_VOLUMEDOWN

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plantronics_input_mapping
_plantronics_input_mapping:             ; @plantronics_input_mapping
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x5
	mov	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	bl	_hid_get_drvdata
	ldr	x3, [x21]
Lloh0:
	adrp	x8, _HID_GD_JOYSTICK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_GD_JOYSTICK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x3, x8
	b.eq	LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _HID_USAGE_PAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HID_USAGE_PAGE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_6
; %bb.2:
Lloh6:
	adrp	x9, _HID_USAGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HID_USAGE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	and	x9, x9, x0
Lloh9:
	adrp	x10, _PLT_BASIC_TELEPHONY@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PLT_BASIC_TELEPHONY@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x11, _PLT_BASIC_EXCEPTION@GOTPAGE
Lloh13:
	ldr	x11, [x11, _PLT_BASIC_EXCEPTION@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, hs
	b.ne	LBB0_6
; %bb.3:
	eor	x9, x3, x0
	tst	x8, x9
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [x20]
	sub	w8, w8, #129
	cmp	w8, #4
	b.hs	LBB0_8
; %bb.5:
Lloh15:
	adrp	x9, l_switch.table.plantronics_input_mapping@PAGE
Lloh16:
	add	x9, x9, l_switch.table.plantronics_input_mapping@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldrh	w25, [x8]
Lloh17:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
	mov	x0, x24
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	x5, x25
	bl	_hid_map_usage_clear
	ldr	w2, [x20]
	ldr	x3, [x21]
	str	x25, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hid_dbg
	mov	w0, #1
	b	LBB0_9
LBB0_6:
Lloh22:
	adrp	x8, _PLT_ALLOW_CONSUMER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PLT_ALLOW_CONSUMER@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
LBB0_7:
	ldr	w2, [x20]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hid_dbg
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_GD_JOYSTICK,8,3            ; @HID_GD_JOYSTICK
	.comm	_HID_USAGE_PAGE,8,3             ; @HID_USAGE_PAGE
	.comm	_PLT_ALLOW_CONSUMER,8,3         ; @PLT_ALLOW_CONSUMER
	.comm	_HID_USAGE,8,3                  ; @HID_USAGE
	.comm	_PLT_BASIC_TELEPHONY,8,3        ; @PLT_BASIC_TELEPHONY
	.comm	_PLT_BASIC_EXCEPTION,8,3        ; @PLT_BASIC_EXCEPTION
	.comm	_KEY_VOLUMEUP,2,1               ; @KEY_VOLUMEUP
	.comm	_KEY_VOLUMEDOWN,2,1             ; @KEY_VOLUMEDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: %08x (appl: %08x) - defaulted\n"

	.comm	_EV_KEY,4,2                     ; @EV_KEY
l_.str.1:                               ; @.str.1
	.asciz	"usage: %08x (appl: %08x) - mapped to key %d\n"

	.no_dead_strip	_plantronics_input_mapping
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.plantronics_input_mapping
l_switch.table.plantronics_input_mapping:
	.quad	_KEY_VOLUMEUP
	.quad	_KEY_VOLUMEDOWN
	.quad	_KEY_VOLUMEUP
	.quad	_KEY_VOLUMEDOWN

.subsections_via_symbols
