	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_legacy_obj_kidx
_set_legacy_obj_kidx:                   ## @set_legacy_obj_kidx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r14d
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	movq	8(%rsi), %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r12d, %rax
	leaq	(%rbx,%rax,4), %rbx
	subl	%r12d, %r14d
	jle	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_F_LEN
	movl	%eax, %r12d
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rsi
	leaq	-68(%rbp), %rdx
	callq	_find_op_rw
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	movl	-44(%rbp), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movq	-64(%rbp), %rcx
	cmpb	$0, (%rcx)
	sete	%cl
	cmpq	$65535, %rax                    ## imm = 0xFFFF
	setl	%dl
	testb	%dl, %cl
	movl	$2, %ecx
	cmovel	%ecx, %r15d
	movl	$65535, %ecx                    ## imm = 0xFFFF
	cmovel	%ecx, %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	*(%r13)
	jmp	LBB0_6
LBB0_1:
	xorl	%r15d, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_set_legacy_obj_kidx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_legacy_obj_kidx
_set_legacy_obj_kidx:                   ; @set_legacy_obj_kidx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w24, [x1]
	cmp	w24, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x0
	mov	w20, #0
	ldr	x21, [x1, #8]
	mov	w25, #65535
	mov	w26, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w24, w24, w22
	add	x21, x21, w22, sxtw #2
	cmp	w24, #0
	b.le	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_F_LEN
	mov	x22, x0
	add	x1, sp, #4
	mov	x2, sp
	mov	x0, x21
	bl	_find_op_rw
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	ldr	x8, [x0, #8]
	ldr	w1, [sp, #4]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x0]
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cmp	w8, #0
	cset	w8, eq
	cmp	x0, x25
	cset	w9, lt
	tst	w8, w9
	csel	w20, w20, w26, ne
	csel	w1, w0, w25, ne
	ldr	x8, [x23]
	mov	x0, x21
	blr	x8
	b	LBB0_2
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_set_legacy_obj_kidx
.subsections_via_symbols
