	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_weakest_link_in_cycle
_get_weakest_link_in_cycle:             ## @get_weakest_link_in_cycle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_GRAY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rax), %r11
	cmpq	%rcx, (%r11)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:
	xorl	%eax, %eax
	movq	%rdi, %r11
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	movq	%rdi, %r11
	xorl	%r10d, %r10d
	jmp	LBB0_7
LBB0_4:
	movq	%rdi, %r10
LBB0_7:
	movq	_UNKNOWN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movq	_GRAY@GOTPCREL(%rip), %r8
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r11, %rsi
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rsi, %r11
	cmpq	%rdi, %rsi
	je	LBB0_15
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%r9, (%r11)
	movq	8(%r11), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r8), %rdx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%rcx), %rsi
	cmpq	%rdx, (%rsi)
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_10
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rcx), %rdx
	subq	8(%rcx), %rdx
	movq	(%rax), %rbx
	subq	8(%rax), %rbx
	cmpq	%rbx, %rdx
	cmovlq	%r11, %r10
	cmovlq	%rcx, %rax
	jmp	LBB0_14
LBB0_15:
	movq	%r9, (%rdi)
	movq	8(%r10), %rcx
	cmpq	%rax, %rcx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rcx, %r10
	movq	16(%rcx), %rcx
	cmpq	%rax, %rcx
	jne	LBB0_17
## %bb.19:
	addq	$16, %r10
	jmp	LBB0_20
LBB0_16:
	addq	$8, %r10
LBB0_20:
	movq	16(%rax), %rcx
	movq	%rcx, (%r10)
LBB0_21:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRAY,8,3                       ## @GRAY
	.comm	_UNKNOWN,8,3                    ## @UNKNOWN
	.no_dead_strip	_get_weakest_link_in_cycle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_weakest_link_in_cycle
_get_weakest_link_in_cycle:             ; @get_weakest_link_in_cycle
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x9, _GRAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GRAY@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x10, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x0, #24]
	ldr	x12, [x11]
	cmp	x12, x10
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x0, #16]
	cbnz	x0, LBB0_2
LBB0_4:
	mov	x10, #0
	mov	x11, x8
	b	LBB0_6
LBB0_5:
	mov	x10, x8
LBB0_6:
Lloh2:
	adrp	x12, _UNKNOWN@GOTPAGE
Lloh3:
	ldr	x12, [x12, _UNKNOWN@GOTPAGEOFF]
Lloh4:
	ldr	x12, [x12]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldp	x15, x16, [x13]
	sub	x15, x15, x16
	ldp	x16, x17, [x0]
	sub	x16, x16, x17
	cmp	x15, x16
	csel	x10, x11, x10, lt
	csel	x0, x13, x0, lt
	mov	x11, x14
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	cmp	x11, x8
	b.eq	LBB0_13
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	str	x12, [x11]
	ldr	x13, [x11, #8]
	cbz	x13, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x15, [x9]
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x14, [x13, #24]
	ldr	x16, [x14]
	cmp	x16, x15
	b.eq	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x13, [x13, #16]
	cbnz	x13, LBB0_11
	b	LBB0_8
LBB0_13:
	str	x12, [x8]
	ldr	x8, [x10, #8]!
	cmp	x8, x0
	b.eq	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	cbz	x8, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x9, x8
	ldr	x8, [x8, #16]
	cmp	x8, x0
	b.ne	LBB0_14
; %bb.16:
	add	x10, x9, #16
LBB0_17:
	ldr	x8, [x0, #16]
	str	x8, [x10]
LBB0_18:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GRAY,8,3                       ; @GRAY
	.comm	_UNKNOWN,8,3                    ; @UNKNOWN
	.no_dead_strip	_get_weakest_link_in_cycle
.subsections_via_symbols
