	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kgd_address_watch_execute
_kgd_address_watch_execute:             ## @kgd_address_watch_execute
	.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
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%esi, %ebx
	callq	_get_amdgpu_device
	movq	_watchRegs@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_ADDRESS_WATCH_REG_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	imull	%ebx, %ecx
	movq	_ADDRESS_WATCH_REG_CNTL@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	movl	(%rax,%rcx,4), %edi
	xorl	%esi, %esi
	callq	_WREG32
	movq	(%r12), %rax
	movl	(%r13), %ecx
	imull	%ebx, %ecx
	movq	_ADDRESS_WATCH_REG_ADDR_HI@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	movl	(%rax,%rcx,4), %edi
	movl	%r15d, %esi
	callq	_WREG32
	movq	(%r12), %rax
	movl	(%r13), %ecx
	imull	%ebx, %ecx
	movq	_ADDRESS_WATCH_REG_ADDR_LO@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	movl	(%rax,%rcx,4), %edi
	movl	%r14d, %esi
	callq	_WREG32
	imull	(%r13), %ebx
	movq	(%r12), %rax
	movq	_ADDRESS_WATCH_REG_CNTL@GOTPCREL(%rip), %rcx
	addl	(%rcx), %ebx
	movl	(%rax,%rbx,4), %edi
	movl	$1, %esi
	callq	_WREG32
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_ADDRESS_WATCH_REG_ADDR_HI,4,2  ## @ADDRESS_WATCH_REG_ADDR_HI
	.comm	_ADDRESS_WATCH_REG_ADDR_LO,4,2  ## @ADDRESS_WATCH_REG_ADDR_LO
	.no_dead_strip	_kgd_address_watch_execute
.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_execute
_kgd_address_watch_execute:             ; @kgd_address_watch_execute
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x1
	bl	_get_amdgpu_device
Lloh0:
	adrp	x22, _watchRegs@GOTPAGE
Lloh1:
	ldr	x22, [x22, _watchRegs@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x23, _ADDRESS_WATCH_REG_MAX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ADDRESS_WATCH_REG_MAX@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh4:
	adrp	x24, _ADDRESS_WATCH_REG_CNTL@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ADDRESS_WATCH_REG_CNTL@GOTPAGEOFF]
	ldr	w10, [x24]
	madd	w9, w9, w21, w10
	ldr	w0, [x8, w9, uxtw #2]
	mov	w1, #0
	bl	_WREG32
	ldr	x8, [x22]
	ldr	w9, [x23]
Lloh6:
	adrp	x10, _ADDRESS_WATCH_REG_ADDR_HI@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ADDRESS_WATCH_REG_ADDR_HI@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	madd	w9, w9, w21, w10
	ldr	w0, [x8, w9, uxtw #2]
	mov	x1, x20
	bl	_WREG32
	ldr	x8, [x22]
	ldr	w9, [x23]
Lloh9:
	adrp	x10, _ADDRESS_WATCH_REG_ADDR_LO@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ADDRESS_WATCH_REG_ADDR_LO@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	madd	w9, w9, w21, w10
	ldr	w0, [x8, w9, uxtw #2]
	mov	x1, x19
	bl	_WREG32
	ldr	x8, [x22]
	ldr	w9, [x23]
	ldr	w10, [x24]
	madd	w9, w9, w21, w10
	ldr	w0, [x8, w9, uxtw #2]
	mov	w1, #1
	bl	_WREG32
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_ADDRESS_WATCH_REG_ADDR_HI,4,2  ; @ADDRESS_WATCH_REG_ADDR_HI
	.comm	_ADDRESS_WATCH_REG_ADDR_LO,4,2  ; @ADDRESS_WATCH_REG_ADDR_LO
	.no_dead_strip	_kgd_address_watch_execute
.subsections_via_symbols
