	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pullup_compute_affinity
_pullup_compute_affinity:               ## @pullup_compute_affinity
	.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
	movl	(%rsi), %eax
	movq	_PULLUP_HAVE_AFFINITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	jne	LBB0_17
## %bb.1:
	movq	%rsi, %r13
	orl	%eax, %edx
	movl	%edx, (%rsi)
	movq	8(%rsi), %rbx
	movq	40(%rsi), %rax
	movq	24(%rax), %rdx
	cmpq	(%rdx), %rbx
	jne	LBB0_2
## %bb.7:
	movl	$1, 16(%r13)
	movq	$0, 32(%rax)
	movl	$-1, 8(%rdx)
	movl	(%rcx), %esi
	orl	%esi, (%rax)
	movl	(%rcx), %eax
	orl	%eax, 12(%rdx)
	jmp	LBB0_17
LBB0_2:
	cmpl	$0, (%rdi)
	jle	LBB0_3
## %bb.8:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r15d
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r13), %rcx
	movq	(%rcx), %rcx
	movl	-4(%rcx,%r15,4), %ecx
	movq	8(%rax), %rax
	movl	-4(%rax,%r15,4), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	24(%r13), %rax
	movq	32(%r13), %rdx
	movl	-4(%rax,%r15,4), %r12d
	movl	-4(%rdx,%r15,4), %r14d
	subl	%r12d, %r14d
	subl	%ecx, %r14d
	movl	%r12d, %edi
	subl	%ecx, %edi
	callq	_PULLUP_ABS
	movl	%eax, %ebx
	addl	%r14d, %ebx
	movq	40(%r13), %rax
	movq	16(%rax), %rax
	movl	-4(%rax,%r15,4), %r14d
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	subl	%r12d, %r14d
	subl	%ecx, %r14d
	subl	%ecx, %r12d
	movl	%r12d, %edi
	callq	_PULLUP_ABS
	addl	%r14d, %eax
	testl	%ebx, %ebx
	jg	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%ebx, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	testl	%eax, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jg	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	subl	%eax, %ebx
	cmpl	%ecx, %ebx
	cmovgl	%ebx, %ecx
	negl	%ebx
	cmpl	%ebx, %edx
	cmovlel	%ebx, %edx
	movslq	(%rsi), %rax
	cmpq	%rax, %r15
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_4
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	40(%r13), %rax
	incq	%r15
	jmp	LBB0_9
LBB0_3:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_4:
	leal	(%rcx,%rdx), %eax
	cmpl	$64, %eax
	jl	LBB0_17
## %bb.5:
	leal	(%rcx,%rcx), %eax
	leal	(%rax,%rax,2), %eax
	cmpl	%eax, %edx
	jle	LBB0_15
## %bb.6:
	movl	$-1, 16(%r13)
	jmp	LBB0_17
LBB0_15:
	addl	%edx, %edx
	leal	(%rdx,%rdx,2), %eax
	cmpl	%eax, %ecx
	jle	LBB0_17
## %bb.16:
	movl	$1, 16(%r13)
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PULLUP_HAVE_AFFINITY,4,2       ## @PULLUP_HAVE_AFFINITY
	.no_dead_strip	_pullup_compute_affinity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pullup_compute_affinity
_pullup_compute_affinity:               ; @pullup_compute_affinity
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _PULLUP_HAVE_AFFINITY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PULLUP_HAVE_AFFINITY@GOTPAGEOFF]
	ldr	w10, [x9]
	tst	w10, w8
	b.ne	LBB0_14
; %bb.1:
	mov	x19, x1
	orr	w8, w10, w8
	str	w8, [x1]
	ldr	x11, [x1, #8]
	ldr	x8, [x1, #40]
	ldr	x10, [x8, #24]
	ldr	x12, [x10]
	cmp	x11, x12
	b.ne	LBB0_3
; %bb.2:
	mov	w11, #1
	str	w11, [x19, #16]
	str	xzr, [x8, #32]
	mov	w11, #-1
	ldr	w12, [x9]
	ldr	w13, [x8]
	orr	w12, w13, w12
	str	w12, [x8]
	ldr	w8, [x9]
	ldr	w9, [x10, #12]
	orr	w8, w9, w8
	stp	w11, w8, [x10, #8]
	b	LBB0_14
LBB0_3:
	mov	x20, x0
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x23, #0
	mov	w21, #0
	mov	w22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #48]
	ldr	x9, [x9]
	lsl	x24, x23, #2
	ldr	w9, [x9, x24]
	ldr	x8, [x8, #8]
	ldr	w25, [x8, x24]
	ldp	x8, x10, [x19, #24]
	ldr	w26, [x8, x24]
	ldr	w8, [x10, x24]
	add	w10, w26, w9
	sub	w27, w8, w10
	sub	w0, w26, w9
	bl	_PULLUP_ABS
	add	w27, w27, w0
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #16]
	ldr	w8, [x8, x24]
	add	w9, w26, w25
	sub	w24, w8, w9
	sub	w0, w26, w25
	bl	_PULLUP_ABS
	add	w8, w24, w0
	cmp	w27, #0
	csel	w9, w27, wzr, gt
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	sub	w8, w9, w8
	cmp	w8, w21
	csel	w21, w8, w21, gt
	neg	w9, w8
	cmp	w22, w9
	csneg	w22, w22, w8, gt
	add	x23, x23, #1
	ldrsw	x8, [x20]
	cmp	x23, x8
	b.ge	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #40]
	b	LBB0_5
LBB0_7:
	mov	w22, #0
	mov	w21, #0
LBB0_8:
	add	w8, w21, w22
	cmp	w8, #64
	b.lt	LBB0_14
; %bb.9:
	add	w8, w21, w21, lsl #1
	cmp	w22, w8, lsl #1
	b.le	LBB0_11
; %bb.10:
	mov	w8, #-1
	b	LBB0_13
LBB0_11:
	add	w8, w22, w22, lsl #1
	cmp	w21, w8, lsl #1
	b.le	LBB0_14
; %bb.12:
	mov	w8, #1
LBB0_13:
	str	w8, [x19, #16]
LBB0_14:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PULLUP_HAVE_AFFINITY,4,2       ; @PULLUP_HAVE_AFFINITY
	.no_dead_strip	_pullup_compute_affinity
.subsections_via_symbols
