	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_mc_reset_mask
_nvkm_mc_reset_mask:                    ## @nvkm_mc_reset_mask
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_nvkm_top_reset
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	movq	(%r12), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.3:
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	addq	$32, %rcx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r14d, -32(%rcx)
	je	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rcx), %rax
	addq	$24, %rcx
	testq	%rax, %rax
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -16(%rcx)
	jne	LBB0_8
	jmp	LBB0_7
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvkm_mc_reset_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_mc_reset_mask
_nvkm_mc_reset_mask:                    ; @nvkm_mc_reset_mask
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x21, [x0]
	mov	x0, x21
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x19
	bl	_nvkm_top_reset
	cbz	x0, LBB0_3
LBB0_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
LBB0_3:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.4:
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_2
; %bb.5:
	add	x8, x8, #32
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldur	w9, [x8, #-32]
	cmp	w9, w19
	b.eq	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x8], #24
	cbz	x0, LBB0_2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w20, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w9, [x8, #-16]
	cbnz	w9, LBB0_7
	b	LBB0_6
LBB0_10:
	mov	x0, #0
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nvkm_mc_reset_mask
.subsections_via_symbols
