	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_lookup_quirk               ## -- Begin function hid_lookup_quirk
	.p2align	4, 0x90
_hid_lookup_quirk:                      ## @hid_lookup_quirk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_BUS_USB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.1:
	movq	8(%rbx), %rax
	movq	_USB_VENDOR_ID_NCR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movl	16(%rbx), %ecx
	movq	_USB_DEVICE_ID_NCR_FIRST@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jl	LBB0_5
## %bb.3:
	movq	_USB_DEVICE_ID_NCR_LAST@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_5
## %bb.4:
	movq	_HID_QUIRK_NO_INIT_REPORTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_15
LBB0_5:
	movq	_USB_VENDOR_ID_JABRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.6:
	movl	16(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.8:
	cmpl	$272, 20(%rbx)                  ## imm = 0x110
	jg	LBB0_11
LBB0_9:
	movq	_HID_QUIRK_IGNORE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_15
LBB0_10:
	cmpl	$531, 20(%rbx)                  ## imm = 0x213
	jle	LBB0_9
LBB0_11:
	movq	_dquirks_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_hid_exists_dquirk
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	(%rax), %rbx
	jmp	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	callq	_hid_gets_squirk
	movq	%rax, %rbx
LBB0_14:
	movq	_dquirks_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUS_USB,8,3                    ## @BUS_USB
	.comm	_USB_VENDOR_ID_NCR,8,3          ## @USB_VENDOR_ID_NCR
	.comm	_USB_DEVICE_ID_NCR_FIRST,4,2    ## @USB_DEVICE_ID_NCR_FIRST
	.comm	_USB_DEVICE_ID_NCR_LAST,4,2     ## @USB_DEVICE_ID_NCR_LAST
	.comm	_HID_QUIRK_NO_INIT_REPORTS,8,3  ## @HID_QUIRK_NO_INIT_REPORTS
	.comm	_USB_VENDOR_ID_JABRA,8,3        ## @USB_VENDOR_ID_JABRA
	.comm	_HID_QUIRK_IGNORE,8,3           ## @HID_QUIRK_IGNORE
	.comm	_dquirks_lock,4,2               ## @dquirks_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_lookup_quirk               ; -- Begin function hid_lookup_quirk
	.p2align	2
_hid_lookup_quirk:                      ; @hid_lookup_quirk
	.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, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BUS_USB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BUS_USB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _USB_VENDOR_ID_NCR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USB_VENDOR_ID_NCR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w9, [x19, #16]
Lloh6:
	adrp	x10, _USB_DEVICE_ID_NCR_FIRST@GOTPAGE
Lloh7:
	ldr	x10, [x10, _USB_DEVICE_ID_NCR_FIRST@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _USB_DEVICE_ID_NCR_LAST@GOTPAGE
Lloh10:
	ldr	x11, [x11, _USB_DEVICE_ID_NCR_LAST@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	cmp	w9, w10
	ccmp	w9, w11, #0, ge
	b.le	LBB0_8
LBB0_3:
Lloh12:
	adrp	x9, _USB_VENDOR_ID_JABRA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _USB_VENDOR_ID_JABRA@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
	ldr	w8, [x19, #16]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.6:
	ldr	w8, [x19, #20]
	cmp	w8, #272
	b.gt	LBB0_10
LBB0_7:
Lloh15:
	adrp	x8, _HID_QUIRK_IGNORE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HID_QUIRK_IGNORE@GOTPAGEOFF]
Lloh17:
	ldr	x19, [x8]
	b	LBB0_14
LBB0_8:
Lloh18:
	adrp	x8, _HID_QUIRK_NO_INIT_REPORTS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HID_QUIRK_NO_INIT_REPORTS@GOTPAGEOFF]
Lloh20:
	ldr	x19, [x8]
	b	LBB0_14
LBB0_9:
	ldr	w8, [x19, #20]
	cmp	w8, #531
	b.le	LBB0_7
LBB0_10:
Lloh21:
	adrp	x0, _dquirks_lock@GOTPAGE
Lloh22:
	ldr	x0, [x0, _dquirks_lock@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x19
	bl	_hid_exists_dquirk
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x19, [x0]
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_hid_gets_squirk
	mov	x19, x0
LBB0_13:
Lloh23:
	adrp	x0, _dquirks_lock@GOTPAGE
Lloh24:
	ldr	x0, [x0, _dquirks_lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_BUS_USB,8,3                    ; @BUS_USB
	.comm	_USB_VENDOR_ID_NCR,8,3          ; @USB_VENDOR_ID_NCR
	.comm	_USB_DEVICE_ID_NCR_FIRST,4,2    ; @USB_DEVICE_ID_NCR_FIRST
	.comm	_USB_DEVICE_ID_NCR_LAST,4,2     ; @USB_DEVICE_ID_NCR_LAST
	.comm	_HID_QUIRK_NO_INIT_REPORTS,8,3  ; @HID_QUIRK_NO_INIT_REPORTS
	.comm	_USB_VENDOR_ID_JABRA,8,3        ; @USB_VENDOR_ID_JABRA
	.comm	_HID_QUIRK_IGNORE,8,3           ; @HID_QUIRK_IGNORE
	.comm	_dquirks_lock,4,2               ; @dquirks_lock
.subsections_via_symbols
