	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dbgdev_address_watch_nodiq
_dbgdev_address_watch_nodiq:            ## @dbgdev_address_watch_nodiq
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rdi
	movl	12(%rsi), %esi
	callq	_kfd_get_process_device_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	$0, -72(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -64(%rbp)
	movl	(%r14), %eax
	movq	_MAX_WATCH_ADDRESSES@GOTPCREL(%rip), %rcx
	decl	%eax
	movq	_EINVAL@GOTPCREL(%rip), %r12
	cmpl	(%rcx), %eax
	jae	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	cmpl	$0, 8(%r14)
	je	LBB0_2
## %bb.6:
	cmpl	$0, 4(%r14)
	je	LBB0_2
## %bb.7:
	leaq	L_.str.5(%rip), %r13
	xorl	%r12d, %r12d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %r9d
	movq	%r14, %rdi
	leaq	-72(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movl	%r12d, %r8d
	callq	_dbgdev_address_watch_set_registers
	movq	%r14, %rbx
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r13, %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	movl	8(%r15), %edx
	movq	%r13, %rdi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	-80(%rbp), %edx
	movq	%r13, %rdi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	-72(%rbp), %edx
	movq	%r13, %rdi
	leaq	L_.str.9(%rip), %r14
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	-72(%rbp), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	-52(%rbp), %edx
	movq	%r13, %rdi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	-56(%rbp), %edx
	movq	%r13, %rdi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	-60(%rbp), %edx
	movq	%r13, %rdi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movl	-64(%rbp), %edx
	movq	%r13, %rdi
	leaq	L_.str.13(%rip), %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %r14
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movl	(%rcx), %edi
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rcx
	movq	-80(%rbp), %r8
	movl	%r12d, %esi
	callq	*(%rax)
	incl	%r12d
	cmpl	(%r14), %r12d
	jb	LBB0_8
## %bb.9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movq	_EFAULT@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	_pr_err
	xorl	%eax, %eax
	subl	(%r12), %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get pdd for wave control no DIQ\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_MAX_WATCH_ADDRESSES,4,2        ## @MAX_WATCH_ADDRESSES
L_.str.1:                               ## @.str.1
	.asciz	"num_watch_points is invalid\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"adw_info fields are not valid\n"

L_.str.3:                               ## @.str.3
	.asciz	"\t\t%30s\n"

L_.str.4:                               ## @.str.4
	.asciz	"* * * * * * * * * * * * * * * * * *"

L_.str.5:                               ## @.str.5
	.asciz	"\t\t%20s %08x\n"

L_.str.6:                               ## @.str.6
	.asciz	"register index :"

L_.str.7:                               ## @.str.7
	.asciz	"vmid is :"

L_.str.8:                               ## @.str.8
	.asciz	"Address Low is :"

L_.str.9:                               ## @.str.9
	.asciz	"Address high is :"

L_.str.10:                              ## @.str.10
	.asciz	"Control Mask is :"

L_.str.11:                              ## @.str.11
	.asciz	"Control Mode is :"

L_.str.12:                              ## @.str.12
	.asciz	"Control Vmid is :"

L_.str.13:                              ## @.str.13
	.asciz	"Control atc  is :"

	.no_dead_strip	_dbgdev_address_watch_nodiq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dbgdev_address_watch_nodiq
_dbgdev_address_watch_nodiq:            ; @dbgdev_address_watch_nodiq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x0, [x0]
	ldr	w1, [x1, #12]
	bl	_kfd_get_process_device_data
	cbz	x0, LBB0_7
; %bb.1:
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _MAX_WATCH_ADDRESSES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_WATCH_ADDRESSES@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w8, w8, #1
	cmp	w8, w9
	b.hs	LBB0_8
; %bb.2:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_9
; %bb.3:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_9
; %bb.4:
	mov	x21, x0
	mov	w22, #0
Lloh6:
	adrp	x23, l_.str.3@PAGE
Lloh7:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh8:
	adrp	x24, l_.str.4@PAGE
Lloh9:
	add	x24, x24, l_.str.4@PAGEOFF
Lloh10:
	adrp	x25, l_.str.5@PAGE
Lloh11:
	add	x25, x25, l_.str.5@PAGEOFF
Lloh12:
	adrp	x26, l_.str.9@PAGE
Lloh13:
	add	x26, x26, l_.str.9@PAGEOFF
Lloh14:
	adrp	x27, l_.str.12@PAGE
Lloh15:
	add	x27, x27, l_.str.12@PAGEOFF
Lloh16:
	adrp	x28, l_.str.13@PAGE
Lloh17:
	add	x28, x28, l_.str.13@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w5, [x21, #8]
	add	x1, sp, #16
	add	x2, sp, #8
	add	x3, sp, #24
	mov	x0, x19
	mov	x4, x22
	bl	_dbgdev_address_watch_set_registers
	mov	x0, x23
	mov	x1, x24
	bl	_pr_debug
	str	x22, [sp]
	mov	x0, x25
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x21, #8]
	str	x8, [sp]
	mov	x0, x25
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_pr_debug
	ldr	w8, [sp, #8]
	str	x8, [sp]
	mov	x0, x25
Lloh22:
	adrp	x1, l_.str.8@PAGE
Lloh23:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_pr_debug
	ldr	w8, [sp, #16]
	str	x8, [sp]
	mov	x0, x25
	mov	x1, x26
	bl	_pr_debug
	ldr	w8, [sp, #16]
	str	x8, [sp]
	mov	x0, x25
	mov	x1, x26
	bl	_pr_debug
	ldr	w8, [sp, #36]
	str	x8, [sp]
	mov	x0, x25
Lloh24:
	adrp	x1, l_.str.10@PAGE
Lloh25:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_pr_debug
	ldr	w8, [sp, #32]
	str	x8, [sp]
	mov	x0, x25
Lloh26:
	adrp	x1, l_.str.11@PAGE
Lloh27:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_pr_debug
	ldr	w8, [sp, #28]
	str	x8, [sp]
	mov	x0, x25
	mov	x1, x27
	bl	_pr_debug
	ldr	w8, [sp, #24]
	str	x8, [sp]
	mov	x0, x25
	mov	x1, x28
	bl	_pr_debug
	mov	x0, x23
	mov	x1, x24
	bl	_pr_debug
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	w0, [x9]
	ldp	x3, x2, [sp, #16]
	ldr	x4, [sp, #8]
	mov	x1, x22
	blr	x8
	add	w22, w22, #1
	ldr	w8, [x19]
	cmp	w22, w8
	b.lo	LBB0_5
; %bb.6:
	mov	w0, #0
	b	LBB0_11
LBB0_7:
Lloh28:
	adrp	x19, _EFAULT@GOTPAGE
Lloh29:
	ldr	x19, [x19, _EFAULT@GOTPAGEOFF]
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh32:
	adrp	x19, _EINVAL@GOTPAGE
Lloh33:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh36:
	adrp	x19, _EINVAL@GOTPAGE
Lloh37:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
Lloh38:
	adrp	x0, l_.str.2@PAGE
Lloh39:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_10:
	bl	_pr_err
	ldr	w8, [x19]
	neg	w0, w8
LBB0_11:
	ldr	x8, [sp, #40]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get pdd for wave control no DIQ\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_MAX_WATCH_ADDRESSES,4,2        ; @MAX_WATCH_ADDRESSES
l_.str.1:                               ; @.str.1
	.asciz	"num_watch_points is invalid\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"adw_info fields are not valid\n"

l_.str.3:                               ; @.str.3
	.asciz	"\t\t%30s\n"

l_.str.4:                               ; @.str.4
	.asciz	"* * * * * * * * * * * * * * * * * *"

l_.str.5:                               ; @.str.5
	.asciz	"\t\t%20s %08x\n"

l_.str.6:                               ; @.str.6
	.asciz	"register index :"

l_.str.7:                               ; @.str.7
	.asciz	"vmid is :"

l_.str.8:                               ; @.str.8
	.asciz	"Address Low is :"

l_.str.9:                               ; @.str.9
	.asciz	"Address high is :"

l_.str.10:                              ; @.str.10
	.asciz	"Control Mask is :"

l_.str.11:                              ; @.str.11
	.asciz	"Control Mode is :"

l_.str.12:                              ; @.str.12
	.asciz	"Control Vmid is :"

l_.str.13:                              ; @.str.13
	.asciz	"Control atc  is :"

	.no_dead_strip	_dbgdev_address_watch_nodiq
.subsections_via_symbols
