	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_switch_rid
_hid_switch_rid:                        ## @hid_switch_rid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %r10
	cmpq	%rdx, %r10
	je	LBB0_26
## %bb.1:
	movq	_MAXID@GOTPCREL(%rip), %r8
	movq	(%r8), %r9
	testq	%r10, %r10
	je	LBB0_2
## %bb.7:
	cmpq	$1, %r9
	je	LBB0_12
## %bb.8:
	movq	8(%rdi), %rcx
	addq	$16, %rcx
	movl	$1, %r11d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rax
	cmpq	%r10, %rax
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%rax, %rax
	je	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%r11
	addq	$16, %rcx
	cmpq	%r11, %r9
	jne	LBB0_9
	jmp	LBB0_12
LBB0_2:
	xorl	%r11d, %r11d
LBB0_3:
	cmpq	%r9, %r11
	je	LBB0_12
## %bb.4:
	movq	8(%rdi), %rcx
	shlq	$4, %r11
	movq	%r10, (%rcx,%r11)
	movq	_ITEMTYPES@GOTPCREL(%rip), %r9
	cmpq	$0, (%r9)
	je	LBB0_12
## %bb.5:
	movq	(%rdi), %r10
	movq	8(%rcx,%r11), %r11
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10,%rcx,8), %rax
	movq	%rax, (%r11,%rcx,8)
	incq	%rcx
	cmpq	(%r9), %rcx
	jb	LBB0_6
LBB0_12:
	movq	%rdx, (%rsi)
	movq	(%r8), %r8
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.18:
	cmpq	$1, %r8
	je	LBB0_23
## %bb.19:
	movq	8(%rdi), %rsi
	addq	$16, %rsi
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rcx
	cmpq	%rdx, %rcx
	je	LBB0_14
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	incq	%rax
	addq	$16, %rsi
	cmpq	%rax, %r8
	jne	LBB0_20
	jmp	LBB0_23
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	cmpq	%r8, %rax
	jne	LBB0_15
LBB0_23:
	movq	_ITEMTYPES@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_26
## %bb.24:
	movq	(%rdi), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rcx,%rdx,8)
	incq	%rdx
	cmpq	(%rax), %rdx
	jb	LBB0_25
	jmp	LBB0_26
LBB0_15:
	movq	8(%rdi), %rsi
	shlq	$4, %rax
	movq	%rdx, (%rsi,%rax)
	movq	_ITEMTYPES@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_26
## %bb.16:
	movq	8(%rsi,%rax), %rax
	movq	(%rdi), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rsi,8), %rdi
	movq	%rdi, (%rdx,%rsi,8)
	incq	%rsi
	cmpq	(%rcx), %rsi
	jb	LBB0_17
LBB0_26:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXID,8,3                      ## @MAXID
	.comm	_ITEMTYPES,8,3                  ## @ITEMTYPES
	.no_dead_strip	_hid_switch_rid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_switch_rid
_hid_switch_rid:                        ; @hid_switch_rid
	.cfi_startproc
; %bb.0:
	ldr	x10, [x1]
	cmp	x10, x2
	b.eq	LBB0_24
; %bb.1:
Lloh0:
	adrp	x9, _MAXID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAXID@GOTPAGEOFF]
	ldr	x11, [x9]
Lloh2:
	adrp	x8, _ITEMTYPES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ITEMTYPES@GOTPAGEOFF]
	cbz	x10, LBB0_6
; %bb.2:
	cmp	x11, #1
	b.eq	LBB0_11
; %bb.3:
	ldr	x12, [x0, #8]
	add	x13, x12, #16
	mov	w12, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x13]
	cmp	x14, x10
	ccmp	x14, #0, #4, ne
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x12, #1
	add	x13, x13, #16
	cmp	x11, x12
	b.ne	LBB0_4
	b	LBB0_11
LBB0_6:
	mov	x12, #0
LBB0_7:
	cmp	x12, x11
	b.eq	LBB0_11
; %bb.8:
	ldr	x13, [x0, #8]
	lsl	x11, x12, #4
	str	x10, [x13, x11]
	ldr	x10, [x8]
	cbz	x10, LBB0_11
; %bb.9:
	mov	x10, #0
	ldr	x11, [x0]
	add	x12, x13, x12, lsl #4
	ldr	x12, [x12, #8]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsl	x13, x10, #3
	ldr	x14, [x11, x13]
	str	x14, [x12, x13]
	add	x10, x10, #1
	ldr	x13, [x8]
	cmp	x10, x13
	b.lo	LBB0_10
LBB0_11:
	str	x2, [x1]
	ldr	x9, [x9]
	cbz	x2, LBB0_16
; %bb.12:
	cmp	x9, #1
	b.eq	LBB0_18
; %bb.13:
	ldr	x10, [x0, #8]
	add	x11, x10, #16
	mov	w10, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	cmp	x12, x2
	ccmp	x12, #0, #4, ne
	b.eq	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x10, x10, #1
	add	x11, x11, #16
	cmp	x9, x10
	b.ne	LBB0_14
	b	LBB0_18
LBB0_16:
	mov	x10, #0
LBB0_17:
	cmp	x10, x9
	b.ne	LBB0_21
LBB0_18:
	ldr	x9, [x8]
	cbz	x9, LBB0_24
; %bb.19:
	mov	x9, #0
	ldr	x10, [x0]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [x10, x9, lsl #3]
	add	x9, x9, #1
	ldr	x11, [x8]
	cmp	x9, x11
	b.lo	LBB0_20
	b	LBB0_24
LBB0_21:
	ldr	x11, [x0, #8]
	lsl	x9, x10, #4
	str	x2, [x11, x9]
	ldr	x9, [x8]
	cbz	x9, LBB0_24
; %bb.22:
	mov	x9, #0
	add	x10, x11, x10, lsl #4
	ldr	x10, [x10, #8]
	ldr	x11, [x0]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #3
	ldr	x13, [x10, x12]
	str	x13, [x11, x12]
	add	x9, x9, #1
	ldr	x12, [x8]
	cmp	x9, x12
	b.lo	LBB0_23
LBB0_24:
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXID,8,3                      ; @MAXID
	.comm	_ITEMTYPES,8,3                  ; @ITEMTYPES
	.no_dead_strip	_hid_switch_rid
.subsections_via_symbols
