	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gf100_fermi_mthd_zbc_depth
_gf100_fermi_mthd_zbc_depth:            ## @gf100_fermi_mthd_zbc_depth
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rsi, -32(%rbp)
	movl	%edx, -20(%rbp)
	movl	(%rdi), %edi
	callq	_nvkm_gr
	movl	%eax, %edi
	callq	_gf100_gr
	movq	%rax, %r14
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	movq	(%rbx), %rcx
	movl	8(%rbx), %r8d
	leaq	-32(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_nvif_unpack
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	cmpl	$128, (%rbx)
	jne	LBB0_3
## %bb.2:
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	movl	$128, %esi
	callq	_gf100_gr_zbc_depth_get
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	sarl	$31, %eax
	andl	%edx, %eax
	jmp	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_gf100_fermi_mthd_zbc_depth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gf100_fermi_mthd_zbc_depth
_gf100_fermi_mthd_zbc_depth:            ; @gf100_fermi_mthd_zbc_depth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	str	x1, [sp, #8]
	str	w2, [sp, #4]
	ldr	w0, [x0]
	bl	_nvkm_gr
	bl	_gf100_gr
	mov	x20, x0
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldr	x3, [x19]
	ldr	w4, [x19, #8]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_nvif_unpack
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.2:
	ldp	w3, w2, [x19, #4]
	mov	x0, x20
	mov	w1, #128
	bl	_gf100_gr_zbc_depth_get
Lloh3:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w8, w8
	and	w0, w8, w0, asr #31
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_gf100_fermi_mthd_zbc_depth
.subsections_via_symbols
