	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gf100_gr_chan_bind
_gf100_gr_chan_bind:                    ## @gf100_gr_chan_bind
	.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	%rcx, %r15
	movl	%edx, %ebx
	movq	%rsi, %r12
	callq	_gf100_gr_chan
	movq	%rax, %r14
	movq	16(%rax), %r13
	movl	(%r13), %esi
	movl	20(%r13), %edi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movq	%r15, %r9
	callq	_nvkm_gpuobj_new
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	(%r15), %rdi
	callq	_nvkm_kmap
	cmpl	$0, (%r13)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movq	8(%r13), %rax
	movl	(%rax,%rbx), %edx
	movl	%ebx, %esi
	callq	_nvkm_wo32
	addq	$4, %rbx
	cmpl	%ebx, (%r13)
	jg	LBB0_3
LBB0_4:
	cmpl	$0, 16(%r13)
	movq	(%r15), %rdi
	je	LBB0_5
## %bb.6:
	movl	$244, %esi
	xorl	%edx, %edx
	callq	_nvkm_wo32
	movq	(%r15), %rdi
	movl	$248, %esi
	xorl	%edx, %edx
	callq	_nvkm_wo32
	movq	(%r15), %rdi
	movl	(%r14), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	$16, %esi
	callq	_nvkm_wo32
	movq	(%r15), %rbx
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_lower_32_bits
	movq	%rbx, %rdi
	movl	$20, %esi
	movl	%eax, %edx
	callq	_nvkm_wo32
	movq	(%r15), %rbx
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_upper_32_bits
	movq	%rbx, %rdi
	movl	$24, %esi
	movl	%eax, %edx
	callq	_nvkm_wo32
	movq	(%r15), %rdi
	movl	$28, %esi
	movl	$1, %edx
	callq	_nvkm_wo32
	movq	(%r15), %rdi
	movl	$32, %esi
	xorl	%edx, %edx
	callq	_nvkm_wo32
	movq	(%r15), %rdi
	movl	$40, %esi
	xorl	%edx, %edx
	callq	_nvkm_wo32
	movq	(%r15), %rdi
	movl	$44, %esi
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_5:
	movl	(%r14), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	xorl	%esi, %esi
	callq	_nvkm_wo32
	movq	(%r15), %rdi
	movq	8(%r14), %rax
	movl	(%rax), %edx
	sarl	$8, %edx
	movl	$4, %esi
LBB0_7:
	callq	_nvkm_wo32
	movq	(%r15), %rdi
	callq	_nvkm_done
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gf100_gr_chan_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gf100_gr_chan_bind
_gf100_gr_chan_bind:                    ; @gf100_gr_chan_bind
	.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, x3
	mov	x21, x2
	mov	x22, x1
	bl	_gf100_gr_chan
	mov	x20, x0
	ldr	x23, [x0, #16]
	ldr	w0, [x23, #20]
	ldr	w1, [x23]
	mov	x2, x21
	mov	w3, #0
	mov	x4, x22
	mov	x5, x19
	bl	_nvkm_gpuobj_new
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x0, [x19]
	bl	_nvkm_kmap
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	ldr	x8, [x23, #8]
	ldr	w2, [x8, x21]
	mov	x1, x21
	bl	_nvkm_wo32
	add	x21, x21, #4
	ldr	w8, [x23]
	cmp	w8, w21
	b.gt	LBB0_3
LBB0_4:
	ldr	w8, [x23, #16]
	ldr	x0, [x19]
	cbz	w8, LBB0_6
; %bb.5:
	mov	w1, #244
	mov	w2, #0
	bl	_nvkm_wo32
	ldr	x0, [x19]
	mov	w1, #248
	mov	w2, #0
	bl	_nvkm_wo32
	ldr	x0, [x19]
	ldr	w8, [x20]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	w1, #16
	bl	_nvkm_wo32
	ldr	x21, [x19]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x21
	mov	w1, #20
	bl	_nvkm_wo32
	ldr	x21, [x19]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x21
	mov	w1, #24
	bl	_nvkm_wo32
	ldr	x0, [x19]
	mov	w1, #28
	mov	w2, #1
	bl	_nvkm_wo32
	ldr	x0, [x19]
	mov	w1, #32
	mov	w2, #0
	bl	_nvkm_wo32
	ldr	x0, [x19]
	mov	w1, #40
	mov	w2, #0
	bl	_nvkm_wo32
	ldr	x0, [x19]
	mov	w1, #44
	mov	w2, #0
	b	LBB0_7
LBB0_6:
	ldr	w8, [x20]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	w1, #0
	bl	_nvkm_wo32
	ldr	x0, [x19]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	asr	w2, w8, #8
	mov	w1, #4
LBB0_7:
	bl	_nvkm_wo32
	ldr	x0, [x19]
	bl	_nvkm_done
	mov	w0, #0
LBB0_8:
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gf100_gr_chan_bind
.subsections_via_symbols
