	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_usage_page                 ## -- Begin function hid_usage_page
	.p2align	4, 0x90
_hid_usage_page:                        ## @hid_usage_page
	.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
	movl	%edi, %ebx
	movq	_pages@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_2:
	movq	_npages@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	(%r14), %rcx
	shlq	$4, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rcx,%rdx)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_4
LBB0_7:
	leaq	_hid_usage_page.b(%rip), %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_sprintf
	jmp	LBB0_8
LBB0_5:
	movq	8(%rcx,%rdx), %r14
LBB0_8:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_hid_usage_page.b,10,0 ## @hid_usage_page.b
	.comm	_pages,8,3                      ## @pages
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no hid table"

	.comm	_npages,4,2                     ## @npages
L_.str.1:                               ## @.str.1
	.asciz	"0x%04x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_usage_page                 ; -- Begin function hid_usage_page
	.p2align	2
_hid_usage_page:                        ; @hid_usage_page
	.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
Lloh0:
	adrp	x20, _pages@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pages@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
Lloh4:
	adrp	x8, _npages@GOTPAGE
Lloh5:
	ldr	x8, [x8, _npages@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	x9, [x20]
	add	x9, x9, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x9, #-8]
	cmp	w10, w19
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_6:
Lloh7:
	adrp	x20, _hid_usage_page.b@PAGE
Lloh8:
	add	x20, x20, _hid_usage_page.b@PAGEOFF
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_sprintf
	b	LBB0_8
LBB0_7:
	ldr	x20, [x9]
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_hid_usage_page.b,10,0 ; @hid_usage_page.b
	.comm	_pages,8,3                      ; @pages
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no hid table"

	.comm	_npages,4,2                     ; @npages
l_.str.1:                               ; @.str.1
	.asciz	"0x%04x"

.subsections_via_symbols
