	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_head507d_core_calc             ## -- Begin function head507d_core_calc
	.p2align	4, 0x90
_head507d_core_calc:                    ## @head507d_core_calc
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	callq	_nv50_disp
	xorl	%ecx, %ecx
	cmpq	$0, 104(%rbx)
	setne	%cl
	movl	%ecx, (%rbx)
	je	LBB0_2
## %bb.1:
	movups	120(%rbx), %xmm0
	movups	%xmm0, 64(%rbx)
	movl	112(%rbx), %ecx
	movl	116(%rbx), %edi
	jmp	LBB0_6
LBB0_2:
	xorl	%ecx, %ecx
	cmpq	$0, 96(%rbx)
	setne	%cl
	movl	%ecx, (%rbx)
	jne	LBB0_5
## %bb.3:
	movl	88(%rbx), %ecx
	movl	%ecx, (%rbx)
	testl	%ecx, %ecx
	je	LBB0_4
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%rbx)
	movl	80(%rbx), %ecx
	movl	84(%rbx), %edi
LBB0_6:
	movl	%edi, 16(%rbx)
	movl	%ecx, 60(%rbx)
LBB0_7:
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movabsq	$4294967503, %rax               ## imm = 0x1000000CF
	movq	%rax, 4(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movups	%xmm0, 24(%rbx)
	movl	$64, %esi
	callq	_ALIGN
	shll	$2, %eax
	movl	%eax, 12(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movl	16(%rbx), %edi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function head507d_core_calc
lCPI0_0:
	.long	207                             ; 0xcf
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_head507d_core_calc
	.p2align	2
_head507d_core_calc:                    ; @head507d_core_calc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w0, [x0]
	bl	_nv50_disp
	ldr	x8, [x19, #104]
	cmp	x8, #0
	cset	w9, ne
	str	w9, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	ldur	q0, [x19, #120]
	str	q0, [x19, #64]
	ldp	w9, w8, [x19, #112]
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19, #96]
	cmp	x8, #0
	cset	w9, ne
	str	w9, [x19]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x19, #88]
	str	w8, [x19]
	cbz	w8, LBB0_7
LBB0_4:
	stp	xzr, xzr, [x19, #64]
	ldp	w9, w8, [x19, #80]
LBB0_5:
	str	w8, [x19, #16]
	str	w9, [x19, #60]
LBB0_6:
	ldr	x9, [x0]
	ldr	w9, [x9]
	str	w9, [x19, #56]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #40]
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	stur	d1, [x19, #4]
	stur	q0, [x19, #24]
	mov	x0, x8
	mov	w1, #64
	bl	_ALIGN
	lsl	w8, w0, #2
	str	w8, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w8, [x19, #16]
	b	LBB0_6
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
