	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv04_gr_mthd_surf3d_clip_h
_nv04_gr_mthd_surf3d_clip_h:            ## @nv04_gr_mthd_surf3d_clip_h
	.cfi_startproc
## %bb.0:
	xorl	%eax, %eax
	testl	$32768, %edx                    ## imm = 0x8000
	jne	LBB0_2
## %bb.1:
	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
	movq	%rdi, %r14
	movl	%edx, %eax
	sarl	$16, %eax
	movzwl	%dx, %edx
	movl	%eax, %ebx
	orl	$196608, %ebx                   ## imm = 0x30000
	testl	$32768, %eax                    ## imm = 0x8000
	cmovel	%eax, %ebx
	addl	%edx, %ebx
	andl	$262143, %ebx                   ## imm = 0x3FFFF
	movl	$4195644, %esi                  ## imm = 0x40053C
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$4195652, %esi                  ## imm = 0x400544
	movl	%ebx, %edx
	callq	_nvkm_wr32
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
LBB0_2:
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv04_gr_mthd_surf3d_clip_h
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv04_gr_mthd_surf3d_clip_h
_nv04_gr_mthd_surf3d_clip_h:            ; @nv04_gr_mthd_surf3d_clip_h
	.cfi_startproc
; %bb.0:
	tbnz	w2, #15, LBB0_2
; %bb.1:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	asr	w8, w2, #16
	and	w2, w2, #0xffff
	orr	w9, w8, #0x30000
	tst	w8, #0x8000
	csel	w8, w8, w9, eq
	add	w8, w8, w2
	and	w20, w8, #0x3ffff
	mov	w21, #1340
	movk	w21, #64, lsl #16
	mov	w1, #1340
	movk	w1, #64, lsl #16
	bl	_nvkm_wr32
	add	w1, w21, #8
	mov	x0, x19
	mov	x2, x20
	bl	_nvkm_wr32
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv04_gr_mthd_surf3d_clip_h
.subsections_via_symbols
