	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function head507d_core_set
_head507d_core_set:                     ## @head507d_core_set
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_nv50_disp
	movq	(%rax), %r14
	movq	%r14, %rdi
	movl	$9, %esi
	callq	_evo_wait
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	movl	(%r12), %esi
	shll	$10, %esi
	addl	$2144, %esi                     ## imm = 0x860
	movq	%rax, %rdi
	movl	$1, %edx
	callq	_evo_mthd
	movl	20(%rbx), %esi
	sarl	$8, %esi
	movq	%r15, %rdi
	callq	_evo_data
	movl	(%r12), %esi
	shll	$10, %esi
	addl	$2152, %esi                     ## imm = 0x868
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_evo_mthd
	movl	24(%rbx), %esi
	shll	$16, %esi
	orl	28(%rbx), %esi
	movq	%r15, %rdi
	callq	_evo_data
	movl	32(%rbx), %eax
	movl	40(%rbx), %esi
	shll	$20, %eax
	movl	$-256, %ecx
	andl	36(%rbx), %ecx
	orl	%eax, %ecx
	shll	$8, %esi
	orl	%ecx, %esi
	orl	44(%rbx), %esi
	movq	%r15, %rdi
	callq	_evo_data
	movl	48(%rbx), %eax
	movl	52(%rbx), %esi
	shll	$16, %eax
	shll	$8, %esi
	orl	%eax, %esi
	movq	%r15, %rdi
	callq	_evo_data
	movl	56(%rbx), %esi
	movq	%r15, %rdi
	callq	_evo_data
	movl	(%r12), %esi
	shll	$10, %esi
	addl	$2240, %esi                     ## imm = 0x8C0
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_evo_mthd
	movl	60(%rbx), %esi
	shll	$16, %esi
	orl	64(%rbx), %esi
	movq	%r15, %rdi
	callq	_evo_data
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_evo_kick
	movl	16(%rbx), %eax
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	setne	%al
	movl	%eax, 8(%rbx)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_head507d_core_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function head507d_core_set
_head507d_core_set:                     ; @head507d_core_set
	.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	x19, x1
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_nv50_disp
	ldr	x20, [x0]
	mov	x0, x20
	mov	w1, #9
	bl	_evo_wait
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w8, [x22]
	lsl	w8, w8, #10
	add	w1, w8, #2144
	mov	w2, #1
	bl	_evo_mthd
	ldr	w8, [x19, #20]
	asr	w1, w8, #8
	mov	x0, x21
	bl	_evo_data
	ldr	w8, [x22]
	lsl	w8, w8, #10
	add	w1, w8, #2152
	mov	x0, x21
	mov	w2, #4
	bl	_evo_mthd
	ldp	w8, w9, [x19, #24]
	orr	w1, w9, w8, lsl #16
	mov	x0, x21
	bl	_evo_data
	ldp	w8, w9, [x19, #32]
	and	w9, w9, #0xffffff00
	orr	w8, w9, w8, lsl #20
	ldp	w9, w10, [x19, #40]
	orr	w8, w8, w9, lsl #8
	orr	w1, w8, w10
	mov	x0, x21
	bl	_evo_data
	ldp	w8, w9, [x19, #48]
	lsl	w9, w9, #8
	orr	w1, w9, w8, lsl #16
	mov	x0, x21
	bl	_evo_data
	ldr	w1, [x19, #56]
	mov	x0, x21
	bl	_evo_data
	ldr	w8, [x22]
	lsl	w8, w8, #10
	add	w1, w8, #2240
	mov	x0, x21
	mov	w2, #1
	bl	_evo_mthd
	ldp	w8, w9, [x19, #60]
	orr	w1, w9, w8, lsl #16
	mov	x0, x21
	bl	_evo_data
	mov	x0, x21
	mov	x1, x20
	bl	_evo_kick
	ldr	w8, [x19, #16]
	ldr	x9, [x19]
	cmp	x9, #0
	cset	w9, ne
	stp	w9, w8, [x19, #8]
LBB0_2:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_head507d_core_set
.subsections_via_symbols
