	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_scan_main
_hid_scan_main:                         ## @hid_scan_main
	.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	%rsi, %r14
	movq	%rdi, %r15
	callq	_hid_concatenate_usage_page
	movq	%r14, %rdi
	callq	_item_udata
	movl	(%r14), %ecx
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.1:
	cmpl	$132, %ecx
	je	LBB0_6
## %bb.2:
	cmpl	$130, %ecx
	jne	LBB0_11
## %bb.3:
	cmpl	$0, (%r15)
	jle	LBB0_11
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_hid_scan_feature_usage
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
	jmp	LBB0_11
LBB0_7:
	movq	_HID_MAIN_ITEM_CONSTANT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_11
## %bb.8:
	cmpl	$0, (%r15)
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_hid_scan_input_usage
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
	jmp	LBB0_11
LBB0_6:
	movzbl	%al, %esi
	movq	%r15, %rdi
	callq	_hid_scan_collection
LBB0_11:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_MAIN_ITEM_CONSTANT,4,2     ## @HID_MAIN_ITEM_CONSTANT
	.no_dead_strip	_hid_scan_main
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_scan_main
_hid_scan_main:                         ; @hid_scan_main
	.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	x20, x1
	mov	x19, x0
	bl	_hid_concatenate_usage_page
	mov	x0, x20
	bl	_item_udata
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #132
	b.eq	LBB0_10
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.4:
	mov	x20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x20, lsl #2]
	mov	x0, x19
	bl	_hid_scan_feature_usage
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_5
	b	LBB0_11
LBB0_6:
Lloh0:
	adrp	x8, _HID_MAIN_ITEM_CONSTANT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_MAIN_ITEM_CONSTANT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.7:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x20, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x20, lsl #2]
	mov	x0, x19
	bl	_hid_scan_input_usage
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_9
	b	LBB0_11
LBB0_10:
	and	w1, w0, #0xff
	mov	x0, x19
	bl	_hid_scan_collection
LBB0_11:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_MAIN_ITEM_CONSTANT,4,2     ; @HID_MAIN_ITEM_CONSTANT
	.no_dead_strip	_hid_scan_main
.subsections_via_symbols
