	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plantronics_device_type
_plantronics_device_type:               ## @plantronics_device_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	movq	_PLT_BT300_MIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jb	LBB0_2
## %bb.1:
	movq	_PLT_BT300_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jbe	LBB0_7
LBB0_2:
	movl	8(%rdi), %r9d
	testq	%r9, %r9
	je	LBB0_7
## %bb.3:
	movq	16(%rdi), %r8
	movq	_HID_USAGE_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_PLT_HID_2_0_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PLT_HID_1_0_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8,%rax,4), %ebx
	movl	%r10d, %edx
	andl	%ebx, %edx
	cmpl	%esi, %edx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ecx, %edx
	cmoveq	%rbx, %r14
	incq	%rax
	cmpq	%rax, %r9
	jne	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %r14
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_hid_dbg
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLT_BT300_MIN,8,3              ## @PLT_BT300_MIN
	.comm	_PLT_BT300_MAX,8,3              ## @PLT_BT300_MAX
	.comm	_HID_USAGE_PAGE,4,2             ## @HID_USAGE_PAGE
	.comm	_PLT_HID_2_0_PAGE,4,2           ## @PLT_HID_2_0_PAGE
	.comm	_PLT_HID_1_0_PAGE,4,2           ## @PLT_HID_1_0_PAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"plt_type decoded as: %08lx\n"

	.no_dead_strip	_plantronics_device_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plantronics_device_type
_plantronics_device_type:               ; @plantronics_device_type
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _PLT_BT300_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLT_BT300_MIN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _PLT_BT300_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PLT_BT300_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x19, x8
	ccmp	x19, x9, #2, hs
	b.ls	LBB0_6
; %bb.1:
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	x9, [x0, #16]
Lloh6:
	adrp	x10, _HID_USAGE_PAGE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HID_USAGE_PAGE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _PLT_HID_2_0_PAGE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _PLT_HID_2_0_PAGE@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
Lloh12:
	adrp	x12, _PLT_HID_1_0_PAGE@GOTPAGE
Lloh13:
	ldr	x12, [x12, _PLT_HID_1_0_PAGE@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x9]
	and	w14, w10, w13
	cmp	w14, w11
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w14, w12
	csel	x19, x13, x19, eq
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	x19, x13
LBB0_6:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_hid_dbg
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PLT_BT300_MIN,8,3              ; @PLT_BT300_MIN
	.comm	_PLT_BT300_MAX,8,3              ; @PLT_BT300_MAX
	.comm	_HID_USAGE_PAGE,4,2             ; @HID_USAGE_PAGE
	.comm	_PLT_HID_2_0_PAGE,4,2           ; @PLT_HID_2_0_PAGE
	.comm	_PLT_HID_1_0_PAGE,4,2           ; @PLT_HID_1_0_PAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"plt_type decoded as: %08lx\n"

	.no_dead_strip	_plantronics_device_type
.subsections_via_symbols
