	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_sw_chan_mthd
_nv50_sw_chan_mthd:                     ## @nv50_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	callq	_nv50_sw_chan
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpl	$1027, %ebx                     ## imm = 0x403
	jg	LBB0_4
## %bb.1:
	cmpl	$396, %ebx                      ## imm = 0x18C
	je	LBB0_8
## %bb.2:
	cmpl	$1024, %ebx                     ## imm = 0x400
	jne	LBB0_11
## %bb.3:
	movl	%r14d, 4(%rcx)
	jmp	LBB0_10
LBB0_4:
	cmpl	$1028, %ebx                     ## imm = 0x404
	je	LBB0_9
## %bb.5:
	cmpl	$1032, %ebx                     ## imm = 0x408
	jne	LBB0_11
## %bb.6:
	movq	24(%rcx), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	cmpl	%r14d, (%rdx)
	jle	LBB0_11
## %bb.7:
	movslq	%r14d, %rdi
	shlq	$2, %rdi
	addq	16(%rcx), %rdi
	callq	_nvkm_notify_get
	jmp	LBB0_10
LBB0_8:
	movl	%r14d, (%rcx)
	jmp	LBB0_10
LBB0_9:
	movl	%r14d, 8(%rcx)
LBB0_10:
	movl	$1, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv50_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 nv50_sw_chan_mthd
_nv50_sw_chan_mthd:                     ; @nv50_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	x8, x0
	mov	w0, #0
	cmp	w20, #1027
	b.gt	LBB0_4
; %bb.1:
	cmp	w20, #396
	b.eq	LBB0_8
; %bb.2:
	cmp	w20, #1024
	b.ne	LBB0_11
; %bb.3:
	str	w19, [x8, #4]
	b	LBB0_10
LBB0_4:
	cmp	w20, #1028
	b.eq	LBB0_9
; %bb.5:
	cmp	w20, #1032
	b.ne	LBB0_11
; %bb.6:
	ldr	x9, [x8, #24]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	w9, [x9]
	cmp	w9, w19
	b.le	LBB0_12
; %bb.7:
	ldr	x8, [x8, #16]
	add	x0, x8, w19, sxtw #2
	bl	_nvkm_notify_get
	b	LBB0_10
LBB0_8:
	str	w19, [x8]
	b	LBB0_10
LBB0_9:
	str	w19, [x8, #8]
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w0, #0
	b	LBB0_11
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv50_sw_chan_mthd
.subsections_via_symbols
