	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbhid_lookup_quirk            ## -- Begin function usbhid_lookup_quirk
	.p2align	4, 0x90
_usbhid_lookup_quirk:                   ## @usbhid_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_USB_VENDOR_ID_NCR@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_USB_DEVICE_ID_NCR_FIRST@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jg	LBB0_4
## %bb.2:
	movq	_USB_DEVICE_ID_NCR_LAST@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jl	LBB0_4
## %bb.3:
	movq	_HID_QUIRK_NO_INIT_REPORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_dquirks_rwsem@GOTPCREL(%rip), %rdi
	callq	_down_read
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_usbhid_exists_dquirk
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_usbhid_exists_squirk
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movl	(%rax), %ebx
LBB0_8:
	movq	_dquirks_rwsem@GOTPCREL(%rip), %rdi
	callq	_up_read
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_VENDOR_ID_NCR,8,3          ## @USB_VENDOR_ID_NCR
	.comm	_USB_DEVICE_ID_NCR_FIRST,8,3    ## @USB_DEVICE_ID_NCR_FIRST
	.comm	_USB_DEVICE_ID_NCR_LAST,8,3     ## @USB_DEVICE_ID_NCR_LAST
	.comm	_HID_QUIRK_NO_INIT_REPORTS,4,2  ## @HID_QUIRK_NO_INIT_REPORTS
	.comm	_dquirks_rwsem,4,2              ## @dquirks_rwsem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbhid_lookup_quirk            ; -- Begin function usbhid_lookup_quirk
	.p2align	2
_usbhid_lookup_quirk:                   ; @usbhid_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
Lloh0:
	adrp	x8, _USB_VENDOR_ID_NCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_VENDOR_ID_NCR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _USB_DEVICE_ID_NCR_FIRST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USB_DEVICE_ID_NCR_FIRST@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _USB_DEVICE_ID_NCR_LAST@GOTPAGE
Lloh7:
	ldr	x10, [x10, _USB_DEVICE_ID_NCR_LAST@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x0
	ccmp	x9, x1, #0, eq
	ccmp	x10, x1, #8, le
	b.ge	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh9:
	adrp	x0, _dquirks_rwsem@GOTPAGE
Lloh10:
	ldr	x0, [x0, _dquirks_rwsem@GOTPAGEOFF]
	bl	_down_read
	mov	x0, x20
	mov	x1, x19
	bl	_usbhid_exists_dquirk
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_usbhid_exists_squirk
	cbz	x0, LBB0_7
LBB0_3:
	ldr	w19, [x0]
LBB0_4:
Lloh11:
	adrp	x0, _dquirks_rwsem@GOTPAGE
Lloh12:
	ldr	x0, [x0, _dquirks_rwsem@GOTPAGEOFF]
	bl	_up_read
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _HID_QUIRK_NO_INIT_REPORTS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HID_QUIRK_NO_INIT_REPORTS@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w19, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_VENDOR_ID_NCR,8,3          ; @USB_VENDOR_ID_NCR
	.comm	_USB_DEVICE_ID_NCR_FIRST,8,3    ; @USB_DEVICE_ID_NCR_FIRST
	.comm	_USB_DEVICE_ID_NCR_LAST,8,3     ; @USB_DEVICE_ID_NCR_LAST
	.comm	_HID_QUIRK_NO_INIT_REPORTS,4,2  ; @HID_QUIRK_NO_INIT_REPORTS
	.comm	_dquirks_rwsem,4,2              ; @dquirks_rwsem
.subsections_via_symbols
