	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xcoff_find_reloc
_xcoff_find_reloc:                      ## @xcoff_find_reloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	cmpl	$2, %esi
	jge	LBB0_1
## %bb.4:
	cmpl	$1, %esi
	jne	LBB0_6
## %bb.5:
	movl	$1, %eax
	cmpq	%rdx, (%rdi)
	jl	LBB0_14
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	xorl	%r8d, %r8d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %esi
	movl	%r8d, %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rcx), %eax
	movl	%ecx, %r8d
	cmpl	%esi, %eax
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r8,%rsi), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	cmpq	%rdx, (%rdi,%rax,8)
	jg	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	jl	LBB0_8
LBB0_9:
	movslq	%ecx, %rax
	cmpq	%rdx, (%rdi,%rax,8)
	jl	LBB0_13
## %bb.10:
	movl	%ecx, %esi
	movl	%ecx, %eax
	sarl	$31, %eax
	andl	%ecx, %eax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	testl	%esi, %esi
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-1(%rsi), %rcx
	cmpq	%rdx, -8(%rdi,%rsi,8)
	movq	%rcx, %rsi
	je	LBB0_11
LBB0_13:
	incl	%ecx
	movl	%ecx, %eax
LBB0_14:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xcoff_find_reloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xcoff_find_reloc
_xcoff_find_reloc:                      ; @xcoff_find_reloc
	.cfi_startproc
; %bb.0:
	cmp	w1, #2
	b.ge	LBB0_4
; %bb.1:
	cmp	w1, #1
	b.ne	LBB0_11
; %bb.2:
	ldr	x8, [x0]
	cmp	x8, x2
	b.ge	LBB0_11
; %bb.3:
	mov	w0, #1
	ret
LBB0_4:
	mov	w8, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x9
	mov	x9, x8
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w10, w9, #1
	mov	x8, x9
	cmp	w10, w1
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w8, w1
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	ldr	x10, [x0, w9, sxtw #3]
	cmp	x10, x2
	b.gt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	b.lt	LBB0_6
LBB0_9:
	ldr	x8, [x0, w9, sxtw #3]
	cmp	x8, x2
	b.ge	LBB0_12
; %bb.10:
	add	w0, w9, #1
	ret
LBB0_11:
	mov	w0, #0
	ret
LBB0_12:
	cmp	w9, #0
	csel	w8, w9, wzr, lt
	sub	x10, x0, #8
	mov	w9, w9
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	x11, x9, #1
	ldr	x12, [x10, x9, lsl #3]
	mov	x9, x11
	cmp	x12, x2
	b.eq	LBB0_13
; %bb.15:
	add	w8, w11, #1
LBB0_16:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xcoff_find_reloc
.subsections_via_symbols
