	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kgd_address_watch_disable
_kgd_address_watch_disable:             ## @kgd_address_watch_disable
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_get_amdgpu_device
	movq	_MAX_WATCH_ADDRESSES@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	je	LBB0_3
## %bb.1:
	movq	_ADDRESS_WATCH_REG_CNTL_DEFAULT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	shlq	$32, %r15
	orq	$1, %r15
	xorl	%ebx, %ebx
	movq	_ADDRESS_WATCH_REG_MAX@GOTPCREL(%rip), %r13
	movq	_ADDRESS_WATCH_REG_CNTL@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_watchRegs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r13), %ecx
	imull	%ebx, %ecx
	addl	(%r14), %ecx
	movl	(%rax,%rcx,4), %edi
	movq	%r15, %rsi
	callq	_WREG32
	incl	%ebx
	cmpl	(%r12), %ebx
	jb	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADDRESS_WATCH_REG_CNTL_DEFAULT_MASK,4,2 ## @ADDRESS_WATCH_REG_CNTL_DEFAULT_MASK
	.comm	_MAX_WATCH_ADDRESSES,4,2        ## @MAX_WATCH_ADDRESSES
	.comm	_watchRegs,8,3                  ## @watchRegs
	.comm	_ADDRESS_WATCH_REG_MAX,4,2      ## @ADDRESS_WATCH_REG_MAX
	.comm	_ADDRESS_WATCH_REG_CNTL,4,2     ## @ADDRESS_WATCH_REG_CNTL
	.no_dead_strip	_kgd_address_watch_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kgd_address_watch_disable
_kgd_address_watch_disable:             ; @kgd_address_watch_disable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	bl	_get_amdgpu_device
Lloh0:
	adrp	x20, _MAX_WATCH_ADDRESSES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MAX_WATCH_ADDRESSES@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w21, #0
Lloh2:
	adrp	x8, _ADDRESS_WATCH_REG_CNTL_DEFAULT_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADDRESS_WATCH_REG_CNTL_DEFAULT_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w19, #1
	bfi	x19, x8, #32, #32
Lloh5:
	adrp	x22, _watchRegs@GOTPAGE
Lloh6:
	ldr	x22, [x22, _watchRegs@GOTPAGEOFF]
Lloh7:
	adrp	x23, _ADDRESS_WATCH_REG_MAX@GOTPAGE
Lloh8:
	ldr	x23, [x23, _ADDRESS_WATCH_REG_MAX@GOTPAGEOFF]
Lloh9:
	adrp	x24, _ADDRESS_WATCH_REG_CNTL@GOTPAGE
Lloh10:
	ldr	x24, [x24, _ADDRESS_WATCH_REG_CNTL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w9, [x23]
	ldr	w10, [x24]
	madd	w9, w9, w21, w10
	ldr	w0, [x8, w9, uxtw #2]
	mov	x1, x19
	bl	_WREG32
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.lo	LBB0_2
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ADDRESS_WATCH_REG_CNTL_DEFAULT_MASK,4,2 ; @ADDRESS_WATCH_REG_CNTL_DEFAULT_MASK
	.comm	_MAX_WATCH_ADDRESSES,4,2        ; @MAX_WATCH_ADDRESSES
	.comm	_watchRegs,8,3                  ; @watchRegs
	.comm	_ADDRESS_WATCH_REG_MAX,4,2      ; @ADDRESS_WATCH_REG_MAX
	.comm	_ADDRESS_WATCH_REG_CNTL,4,2     ; @ADDRESS_WATCH_REG_CNTL
	.no_dead_strip	_kgd_address_watch_disable
.subsections_via_symbols
