	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gf100_sw_chan_mthd
_gf100_sw_chan_mthd:                    ## @gf100_sw_chan_mthd
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %ebx
	callq	_nv50_sw_chan
	movq	16(%rax), %rcx
	movq	(%rcx), %rdi
	movl	$1, %r14d
	cmpl	$1535, %ebx                     ## imm = 0x5FF
	jg	LBB0_3
## %bb.1:
	addl	$-1024, %ebx                    ## imm = 0xFC00
	cmpl	$12, %ebx
	ja	LBB0_15
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_7:
	movl	%r15d, (%rax)
	jmp	LBB0_16
LBB0_3:
	cmpl	$1536, %ebx                     ## imm = 0x600
	je	LBB0_11
## %bb.4:
	cmpl	$1604, %ebx                     ## imm = 0x644
	je	LBB0_13
## %bb.5:
	cmpl	$1708, %ebx                     ## imm = 0x6AC
	jne	LBB0_15
## %bb.6:
	movl	$4300460, %esi                  ## imm = 0x419EAC
	jmp	LBB0_12
LBB0_8:
	movl	%r15d, 4(%rax)
	jmp	LBB0_16
LBB0_9:
	movq	(%rdi), %rcx
	cmpl	%r15d, (%rcx)
	jle	LBB0_15
## %bb.10:
	movslq	%r15d, %rdi
	shlq	$2, %rdi
	addq	8(%rax), %rdi
	callq	_nvkm_notify_get
	jmp	LBB0_16
LBB0_11:
	movl	$4300288, %esi                  ## imm = 0x419E00
	jmp	LBB0_12
LBB0_13:
	testl	$-2097151, %r15d                ## imm = 0xFFE00001
	je	LBB0_14
LBB0_15:
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_14:
	movl	$4300356, %esi                  ## imm = 0x419E44
LBB0_12:
	movl	%r15d, %edx
	callq	_nvkm_wr32
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_7
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_8
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_gf100_sw_chan_mthd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gf100_sw_chan_mthd
_gf100_sw_chan_mthd:                    ; @gf100_sw_chan_mthd
	.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, x3
	mov	x20, x2
	bl	_nv50_sw_chan
	mov	x9, x0
	ldr	x8, [x0, #16]
	ldr	x0, [x8]
	cmp	w20, #1535
	b.gt	LBB0_4
; %bb.1:
	sub	w10, w20, #1024
	cmp	w10, #12
	b.hi	LBB0_13
; %bb.2:
	mov	w8, #1
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_3
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_3:
	str	w19, [x9]
	b	LBB0_17
LBB0_4:
	cmp	w20, #1536
	b.eq	LBB0_11
; %bb.5:
	cmp	w20, #1604
	b.eq	LBB0_12
; %bb.6:
	cmp	w20, #1708
	b.ne	LBB0_13
; %bb.7:
	mov	w8, #172
	b	LBB0_15
LBB0_8:
	str	w19, [x9, #4]
	b	LBB0_17
LBB0_9:
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, w19
	b.le	LBB0_13
; %bb.10:
	ldr	x8, [x9, #8]
	add	x0, x8, w19, sxtw #2
	bl	_nvkm_notify_get
	b	LBB0_17
LBB0_11:
	mov	w1, #40448
	movk	w1, #65, lsl #16
	b	LBB0_16
LBB0_12:
	tst	w19, #0xffe00001
	b.eq	LBB0_14
LBB0_13:
	mov	w8, #0
	b	LBB0_18
LBB0_14:
	mov	w8, #68
LBB0_15:
	mov	w9, #40448
	movk	w9, #65, lsl #16
	orr	w1, w9, w8
LBB0_16:
	mov	x2, x19
	bl	_nvkm_wr32
LBB0_17:
	mov	w8, #1
LBB0_18:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_18-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
                                        ; -- End function
	.no_dead_strip	_gf100_sw_chan_mthd
.subsections_via_symbols
