	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_usage_in_page              ## -- Begin function hid_usage_in_page
	.p2align	4, 0x90
_hid_usage_in_page:                     ## @hid_usage_in_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, %r14d
	callq	_HID_PAGE
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_HID_USAGE
	movl	%eax, %r14d
	movq	_npages@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	movq	_pages@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rcx,%rdx)
	je	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_2
	jmp	LBB0_10
LBB0_3:
	movl	4(%rcx,%rdx), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.4:
	movq	8(%rcx,%rdx), %rcx
	shlq	$4, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx), %esi
	cmpl	$-1, %esi
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r14d, %esi
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$16, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_5
LBB0_10:
	leaq	_hid_usage_in_page.b(%rip), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
LBB0_11:
	movl	%r14d, %edx
	callq	_sprintf
LBB0_12:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rcx,%rdx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_fmtcheck
	leaq	_hid_usage_in_page.b(%rip), %rbx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	jmp	LBB0_11
LBB0_8:
	movq	8(%rcx,%rdx), %rbx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_hid_usage_in_page.b,100,4 ## @hid_usage_in_page.b
	.comm	_npages,4,2                     ## @npages
	.comm	_pages,8,3                      ## @pages
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

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_in_page              ; -- Begin function hid_usage_in_page
	.p2align	2
_hid_usage_in_page:                     ; @hid_usage_in_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
	bl	_HID_PAGE
	mov	x20, x0
	mov	x0, x19
	bl	_HID_USAGE
	mov	x19, x0
Lloh0:
	adrp	x8, _npages@GOTPAGE
Lloh1:
	ldr	x8, [x8, _npages@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
Lloh3:
	adrp	x9, _pages@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pages@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x9, x9, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x9, #-4]
	cmp	w10, w20
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_2
	b	LBB0_9
LBB0_4:
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	ldur	x9, [x9, #4]
	add	x9, x9, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x9, #-8]
	cmn	w10, #1
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w10, w19
	b.eq	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_6
LBB0_9:
Lloh6:
	adrp	x20, _hid_usage_in_page.b@PAGE
Lloh7:
	add	x20, x20, _hid_usage_in_page.b@PAGEOFF
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	mov	x0, x20
	mov	x2, x19
	bl	_sprintf
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	x0, [x9]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fmtcheck
	mov	x1, x0
Lloh12:
	adrp	x20, _hid_usage_in_page.b@PAGE
Lloh13:
	add	x20, x20, _hid_usage_in_page.b@PAGEOFF
	b	LBB0_10
LBB0_13:
	ldr	x20, [x9]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_hid_usage_in_page.b,100,0 ; @hid_usage_in_page.b
	.comm	_npages,4,2                     ; @npages
	.comm	_pages,8,3                      ; @pages
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

l_.str.1:                               ; @.str.1
	.asciz	"0x%04x"

.subsections_via_symbols
