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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_affinity
_compute_affinity:                      ; @compute_affinity
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	w8, [x1]
Lloh0:
	adrp	x9, _F_HAVE_AFFINITY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _F_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	x25, #0
	mov	w23, #0
	mov	w24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x9, x25, #2
	ldp	x10, x11, [x19, #24]
	ldr	w10, [x10, x9]
	ldr	x12, [x19, #48]
	ldr	x12, [x12]
	ldr	w12, [x12, x9]
	ldp	x13, x8, [x8, #8]
	ldr	w13, [x13, x9]
	ldr	w11, [x11, x9]
	cmp	w10, w12
	csel	w12, w10, w12, lt
	sub	w0, w11, w12, lsl #1
	ldr	w8, [x8, x9]
	cmp	w10, w13
	csel	w9, w10, w13, lt
	sub	w21, w8, w9, lsl #1
	mov	w1, #0
	bl	_FFMAX
	mov	x22, x0
	mov	x0, x21
	mov	w1, #0
	bl	_FFMAX
	sub	w8, w22, w0
	cmp	w8, w23
	csel	w23, w8, w23, gt
	neg	w9, w8
	cmp	w24, w9
	csneg	w24, w24, w8, gt
	add	x25, x25, #1
	ldrsw	x8, [x20]
	cmp	x25, x8
	b.ge	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #40]
	b	LBB0_5
LBB0_7:
	mov	w24, #0
	mov	w23, #0
LBB0_8:
	add	w8, w23, w24
	cmp	w8, #64
	b.lt	LBB0_14
; %bb.9:
	add	w8, w23, w23, lsl #1
	cmp	w24, w8, lsl #1
	b.le	LBB0_11
; %bb.10:
	mov	w8, #-1
	b	LBB0_13
LBB0_11:
	add	w8, w24, w24, lsl #1
	cmp	w23, w8, lsl #1
	b.le	LBB0_14
; %bb.12:
	mov	w8, #1
LBB0_13:
	str	w8, [x19, #16]
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_F_HAVE_AFFINITY,4,2            ; @F_HAVE_AFFINITY
	.no_dead_strip	_compute_affinity
.subsections_via_symbols
