	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ati_remote_event_lookup
_ati_remote_event_lookup:               ## @ati_remote_event_lookup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ati_remote_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_KIND_END@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	$-1, %eax
	cmpq	%r8, (%r10)
	jne	LBB0_1
LBB0_7:
	popq	%rbp
	retq
LBB0_1:
	movzbl	%sil, %r9d
	movl	%r9d, %ecx
	shrl	$4, %ecx
	subl	%ecx, %edi
	addq	$16, %r10
	xorl	%r11d, %r11d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r11d
	leaq	16(%r10), %rcx
	cmpq	%r8, (%r10)
	movq	%rcx, %r10
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-8(%r10), %esi
	movl	%esi, %ecx
	xorl	%r9d, %ecx
	testb	$15, %cl
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	shrl	$4, %esi
	addl	%edi, %esi
	notl	%esi
	testb	$15, %sil
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	%dl, -4(%r10)
	jne	LBB0_6
## %bb.5:
	movl	%r11d, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ati_remote_tbl,8,3             ## @ati_remote_tbl
	.comm	_KIND_END,8,3                   ## @KIND_END
	.no_dead_strip	_ati_remote_event_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ati_remote_event_lookup
_ati_remote_event_lookup:               ; @ati_remote_event_lookup
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _ati_remote_tbl@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ati_remote_tbl@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
Lloh3:
	adrp	x9, _KIND_END@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KIND_END@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x11, [x10]
	cmp	x11, x9
	b.ne	LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	ret
LBB0_3:
	mov	x8, x0
	mov	w0, #0
	sub	w8, w8, w1, lsr #4
	add	x10, x10, #16
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x10], #16
	add	w0, w0, #1
	cmp	x11, x9
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-8]
	eor	w12, w11, w1
	and	w12, w12, #0xf
	cmp	w12, #0
	add	w11, w8, w11, lsr #4
	mvn	w11, w11
	and	w11, w11, #0xf
	ccmp	w11, #0, #0, eq
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldurb	w11, [x10, #-4]
	cmp	w11, w2
	b.ne	LBB0_4
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ati_remote_tbl,8,3             ; @ati_remote_tbl
	.comm	_KIND_END,8,3                   ; @KIND_END
	.no_dead_strip	_ati_remote_event_lookup
.subsections_via_symbols
