	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_core507d_update                ## -- Begin function core507d_update
	.p2align	4, 0x90
_core507d_update:                       ## @core507d_update
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$5, %esi
	callq	_evo_wait
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$132, %esi
	movl	$1, %edx
	callq	_evo_mthd
	movq	_NV50_DISP_CORE_NTFY@GOTPCREL(%rip), %rax
	movl	$-2147483648, %esi              ## imm = 0x80000000
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_evo_data
LBB0_3:
	movq	%rbx, %rdi
	movl	$128, %esi
	movl	$2, %edx
	callq	_evo_mthd
	movq	_NV50_DISP_INTERLOCK_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NV50_DISP_INTERLOCK_OVLY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r15,%rcx,4), %esi
	orl	(%r15,%rax,4), %esi
	movq	%rbx, %rdi
	callq	_evo_data
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_evo_data
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evo_kick                       ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV50_DISP_CORE_NTFY,4,2        ## @NV50_DISP_CORE_NTFY
	.comm	_NV50_DISP_INTERLOCK_BASE,8,3   ## @NV50_DISP_INTERLOCK_BASE
	.comm	_NV50_DISP_INTERLOCK_OVLY,8,3   ## @NV50_DISP_INTERLOCK_OVLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_core507d_update                ; -- Begin function core507d_update
	.p2align	2
_core507d_update:                       ; @core507d_update
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	w1, #5
	bl	_evo_wait
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	cbz	w22, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #132
	mov	w2, #1
	bl	_evo_mthd
Lloh0:
	adrp	x8, _NV50_DISP_CORE_NTFY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV50_DISP_CORE_NTFY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w1, w8, #0x80000000
	mov	x0, x20
	bl	_evo_data
LBB0_3:
	mov	x0, x20
	mov	w1, #128
	mov	w2, #2
	bl	_evo_mthd
Lloh3:
	adrp	x8, _NV50_DISP_INTERLOCK_BASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NV50_DISP_INTERLOCK_BASE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x21, x8, lsl #2]
Lloh6:
	adrp	x9, _NV50_DISP_INTERLOCK_OVLY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NV50_DISP_INTERLOCK_OVLY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w9, [x21, x9, lsl #2]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_evo_data
	mov	x0, x20
	mov	w1, #0
	bl	_evo_data
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_evo_kick
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NV50_DISP_CORE_NTFY,4,2        ; @NV50_DISP_CORE_NTFY
	.comm	_NV50_DISP_INTERLOCK_BASE,8,3   ; @NV50_DISP_INTERLOCK_BASE
	.comm	_NV50_DISP_INTERLOCK_OVLY,8,3   ; @NV50_DISP_INTERLOCK_OVLY
.subsections_via_symbols
