	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_graph_construct_xfer2
_nv50_graph_construct_xfer2:            ## @nv50_graph_construct_xfer2
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$5440, %esi                     ## imm = 0x1540
	callq	_nv_rd32
	movl	%eax, %r15d
	movl	(%r12), %eax
	addl	$63, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	andl	$-64, %r14d
	movl	(%rbx), %ebx
	movl	%r14d, (%r12)
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$135269394, %edx                ## imm = 0x8100C12
	callq	_xf_emit
	cmpl	$159, %ebx
	jg	LBB0_18
## %bb.1:
	testb	$1, %r15b
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
LBB0_3:
	movl	(%r12), %eax
	subl	%r14d, %eax
	leal	7(%rax), %r13d
	testl	%eax, %eax
	cmovnsl	%eax, %r13d
	sarl	$3, %r13d
	movl	%r14d, %eax
	orl	$1, %eax
	movl	%eax, (%r12)
	testb	$2, %r15b
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
	movl	(%r12), %eax
LBB0_5:
	subl	%r14d, %eax
	leal	7(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$3, %ebx
	cmpl	%ebx, %r13d
	cmovgl	%r13d, %ebx
	movl	%r14d, %eax
	orl	$2, %eax
	movl	%eax, (%r12)
	testb	$4, %r15b
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
	movl	(%r12), %eax
LBB0_7:
	subl	%r14d, %eax
	leal	7(%rax), %r13d
	testl	%eax, %eax
	cmovnsl	%eax, %r13d
	sarl	$3, %r13d
	cmpl	%r13d, %ebx
	cmovgl	%ebx, %r13d
	movl	%r14d, %eax
	orl	$3, %eax
	movl	%eax, (%r12)
	testb	$8, %r15b
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
	movl	(%r12), %eax
LBB0_9:
	subl	%r14d, %eax
	leal	7(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$3, %ebx
	cmpl	%ebx, %r13d
	cmovgl	%r13d, %ebx
	movl	%r14d, %eax
	orl	$4, %eax
	movl	%eax, (%r12)
	testb	$16, %r15b
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
	movl	(%r12), %eax
LBB0_11:
	subl	%r14d, %eax
	leal	7(%rax), %r13d
	testl	%eax, %eax
	cmovnsl	%eax, %r13d
	sarl	$3, %r13d
	cmpl	%r13d, %ebx
	cmovgl	%ebx, %r13d
	movl	%r14d, %eax
	orl	$5, %eax
	movl	%eax, (%r12)
	testb	$32, %r15b
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
	movl	(%r12), %eax
LBB0_13:
	subl	%r14d, %eax
	leal	7(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$3, %ebx
	cmpl	%ebx, %r13d
	cmovgl	%r13d, %ebx
	movl	%r14d, %eax
	orl	$6, %eax
	movl	%eax, (%r12)
	testb	$64, %r15b
	je	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
	movl	(%r12), %eax
LBB0_15:
	subl	%r14d, %eax
	leal	7(%rax), %r13d
	testl	%eax, %eax
	cmovnsl	%eax, %r13d
	sarl	$3, %r13d
	cmpl	%r13d, %ebx
	cmovgl	%ebx, %r13d
	movl	%r14d, %eax
	orl	$7, %eax
	movl	%eax, (%r12)
	testb	$-128, %r15b
	je	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
	movl	(%r12), %eax
LBB0_17:
	subl	%r14d, %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	cmpl	%ecx, %r13d
	cmovgl	%r13d, %ecx
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	cmovgl	%ecx, %ebx
	jmp	LBB0_41
LBB0_18:
	testb	$1, %r15b
	je	LBB0_20
## %bb.19:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
LBB0_20:
	testb	$2, %r15b
	je	LBB0_22
## %bb.21:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
LBB0_22:
	movl	(%r12), %eax
	subl	%r14d, %eax
	xorl	%r13d, %r13d
	cmpl	$8, %eax
	jl	LBB0_24
## %bb.23:
	leal	7(%rax), %r13d
	testl	%eax, %eax
	cmovnsl	%eax, %r13d
	sarl	$3, %r13d
LBB0_24:
	movl	%r14d, %eax
	orl	$1, %eax
	movl	%eax, (%r12)
	testb	$4, %r15b
	je	LBB0_26
## %bb.25:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
LBB0_26:
	testb	$8, %r15b
	je	LBB0_28
## %bb.27:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
LBB0_28:
	movl	(%r12), %eax
	subl	%r14d, %eax
	leal	7(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$3, %ebx
	cmpl	%r13d, %ebx
	cmovlel	%r13d, %ebx
	movl	%r14d, %eax
	orl	$2, %eax
	movl	%eax, (%r12)
	testb	$16, %r15b
	jne	LBB0_29
## %bb.30:
	testb	$32, %r15b
	jne	LBB0_31
LBB0_32:
	testb	$64, %r15b
	je	LBB0_34
LBB0_33:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
LBB0_34:
	movl	(%r12), %eax
	subl	%r14d, %eax
	leal	7(%rax), %r13d
	testl	%eax, %eax
	cmovnsl	%eax, %r13d
	sarl	$3, %r13d
	cmpl	%ebx, %r13d
	cmovlel	%ebx, %r13d
	movl	%r14d, %eax
	orl	$3, %eax
	movl	%eax, (%r12)
	testb	$-128, %r15b
	jne	LBB0_35
## %bb.36:
	testl	$256, %r15d                     ## imm = 0x100
	jne	LBB0_37
LBB0_38:
	testl	$512, %r15d                     ## imm = 0x200
	je	LBB0_40
LBB0_39:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
LBB0_40:
	movl	(%r12), %eax
	subl	%r14d, %eax
	leal	7(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$3, %ebx
	cmpl	%r13d, %ebx
	cmovlel	%r13d, %ebx
LBB0_41:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	orl	$63, %eax
	leal	(%rax,%rbx,8), %eax
	andl	$-64, %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_cp_lsr
	movq	_CP_SET_XFER_POINTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cp_out
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_cp_lsr
	movq	_CP_SEEK_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cp_out
	movq	_CP_XFER_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cp_out
	movq	_XFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cp_wait                        ## TAILCALL
LBB0_29:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
	testb	$32, %r15b
	je	LBB0_32
LBB0_31:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
	testb	$64, %r15b
	jne	LBB0_33
	jmp	LBB0_34
LBB0_35:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
	testl	$256, %r15d                     ## imm = 0x100
	je	LBB0_38
LBB0_37:
	movq	%r12, %rdi
	callq	_nv50_graph_construct_xfer_mpc
	testl	$512, %r15d                     ## imm = 0x200
	jne	LBB0_39
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_SET_XFER_POINTER,4,2        ## @CP_SET_XFER_POINTER
	.comm	_CP_SEEK_2,4,2                  ## @CP_SEEK_2
	.comm	_CP_XFER_2,4,2                  ## @CP_XFER_2
	.comm	_XFER,4,2                       ## @XFER
	.comm	_BUSY,4,2                       ## @BUSY
	.no_dead_strip	_nv50_graph_construct_xfer2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_graph_construct_xfer2
_nv50_graph_construct_xfer2:            ; @nv50_graph_construct_xfer2
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x22, [x0, #8]
	mov	x0, x22
	mov	w1, #5440
	bl	_nv_rd32
	mov	x21, x0
	ldr	w8, [x19]
	add	w23, w8, #63
	and	w20, w23, #0xffffffc0
	ldr	w22, [x22]
	str	w20, [x19]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #3090
	movk	w2, #2064, lsl #16
	bl	_xf_emit
	cmp	w22, #159
	b.gt	LBB0_18
; %bb.1:
	tbz	w21, #0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
LBB0_3:
	ldr	w8, [x19]
	sub	w8, w8, w20
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w22, w8, #3
	orr	w8, w20, #0x1
	str	w8, [x19]
	tbz	w21, #1, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
	ldr	w8, [x19]
LBB0_5:
	sub	w8, w8, w20
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	cmp	w22, w8
	csel	w22, w22, w8, gt
	orr	w8, w20, #0x2
	str	w8, [x19]
	tbz	w21, #2, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
	ldr	w8, [x19]
LBB0_7:
	sub	w8, w8, w20
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	cmp	w22, w8
	csel	w22, w22, w8, gt
	orr	w8, w20, #0x3
	str	w8, [x19]
	tbz	w21, #3, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
	ldr	w8, [x19]
LBB0_9:
	sub	w8, w8, w20
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	cmp	w22, w8
	csel	w22, w22, w8, gt
	orr	w8, w20, #0x4
	str	w8, [x19]
	tbz	w21, #4, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
	ldr	w8, [x19]
LBB0_11:
	sub	w8, w8, w20
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	cmp	w22, w8
	csel	w22, w22, w8, gt
	mov	w8, #5
	orr	w8, w20, w8
	str	w8, [x19]
	tbz	w21, #5, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
	ldr	w8, [x19]
LBB0_13:
	sub	w8, w8, w20
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	cmp	w22, w8
	csel	w22, w22, w8, gt
	orr	w8, w20, #0x6
	str	w8, [x19]
	tbz	w21, #6, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
	ldr	w8, [x19]
LBB0_15:
	sub	w8, w8, w20
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	cmp	w22, w8
	csel	w22, w22, w8, gt
	orr	w8, w20, #0x7
	str	w8, [x19]
	tbz	w21, #7, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
	ldr	w8, [x19]
LBB0_17:
	sub	w8, w8, w20
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	cmp	w22, w8
	csel	w8, w22, w8, gt
	cmp	w8, #0
	csel	w21, w8, wzr, gt
	b	LBB0_35
LBB0_18:
	tbz	w21, #0, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
LBB0_20:
	tbz	w21, #1, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
LBB0_22:
	ldr	w8, [x19]
	sub	w8, w8, w20
	add	w9, w8, #7
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #3
	cmp	w8, #7
	csel	w22, w9, wzr, gt
	orr	w8, w20, #0x1
	str	w8, [x19]
	tbz	w21, #2, LBB0_24
; %bb.23:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
LBB0_24:
	tbz	w21, #3, LBB0_26
; %bb.25:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
LBB0_26:
	ldr	w8, [x19]
	sub	w8, w8, w20
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	cmp	w8, w22
	csel	w22, w8, w22, gt
	orr	w8, w20, #0x2
	str	w8, [x19]
	tbnz	w21, #4, LBB0_36
; %bb.27:
	tbnz	w21, #5, LBB0_37
LBB0_28:
	tbz	w21, #6, LBB0_30
LBB0_29:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
LBB0_30:
	ldr	w8, [x19]
	sub	w8, w8, w20
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	cmp	w8, w22
	csel	w22, w8, w22, gt
	orr	w8, w20, #0x3
	str	w8, [x19]
	tbnz	w21, #7, LBB0_38
; %bb.31:
	tbnz	w21, #8, LBB0_39
LBB0_32:
	tbz	w21, #9, LBB0_34
LBB0_33:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
LBB0_34:
	ldr	w8, [x19]
	sub	w8, w8, w20
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	cmp	w8, w22
	csel	w21, w8, w22, gt
LBB0_35:
	orr	w8, w23, #0x3f
	add	w8, w8, w21, lsl #3
	and	w8, w8, #0xffffffc0
	str	w8, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_cp_lsr
Lloh0:
	adrp	x8, _CP_SET_XFER_POINTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CP_SET_XFER_POINTER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cp_out
	mov	x0, x19
	mov	x1, x21
	bl	_cp_lsr
Lloh3:
	adrp	x8, _CP_SEEK_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CP_SEEK_2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cp_out
Lloh6:
	adrp	x8, _CP_XFER_2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CP_XFER_2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cp_out
Lloh9:
	adrp	x8, _XFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XFER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _BUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BUSY@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cp_wait
LBB0_36:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
	tbz	w21, #5, LBB0_28
LBB0_37:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
	tbnz	w21, #6, LBB0_29
	b	LBB0_30
LBB0_38:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
	tbz	w21, #8, LBB0_32
LBB0_39:
	mov	x0, x19
	bl	_nv50_graph_construct_xfer_mpc
	tbnz	w21, #9, LBB0_33
	b	LBB0_34
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_SET_XFER_POINTER,4,2        ; @CP_SET_XFER_POINTER
	.comm	_CP_SEEK_2,4,2                  ; @CP_SEEK_2
	.comm	_CP_XFER_2,4,2                  ; @CP_XFER_2
	.comm	_XFER,4,2                       ; @XFER
	.comm	_BUSY,4,2                       ; @BUSY
	.no_dead_strip	_nv50_graph_construct_xfer2
.subsections_via_symbols
