	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv_icmd                        ## -- Begin function nv_icmd
	.p2align	4, 0x90
_nv_icmd:                               ## @nv_icmd
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movl	$4194820, %esi                  ## imm = 0x400204
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$4194816, %esi                  ## imm = 0x400200
	movl	%r14d, %edx
	callq	_nv_wr32
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$4196096, %esi                  ## imm = 0x400700
	callq	_nv_rd32
	testb	$2, %al
	jne	LBB0_1
## %bb.2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv_icmd                        ; -- Begin function nv_icmd
	.p2align	2
_nv_icmd:                               ; @nv_icmd
	.cfi_startproc
; %bb.0:
	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	x20, x1
	mov	x19, x0
	mov	w21, #512
	movk	w21, #64, lsl #16
	orr	w1, w21, #0x4
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #512
	movk	w1, #64, lsl #16
	mov	x2, x20
	bl	_nv_wr32
	add	w20, w21, #1280
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_nv_rd32
	tbnz	w0, #1, LBB0_1
; %bb.2:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
