	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dbgdev_wave_control_nodiq
_dbgdev_wave_control_nodiq:             ## @dbgdev_wave_control_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	$104, %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, %r12
	movq	$0, -96(%rbp)
	movq	(%rdi), %rdi
	movl	32(%rsi), %esi
	callq	_kfd_get_process_device_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	leaq	-96(%rbp), %rsi
	leaq	-144(%rbp), %rdx
	movq	%r14, %rdi
	callq	_dbgdev_wave_control_set_registers
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	movq	(%r13), %rax
	movq	%rax, -96(%rbp)
	leaq	L_.str.2(%rip), %rbx
	leaq	L_.str.3(%rip), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pr_debug
	movq	(%r14), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_debug
	movq	8(%r14), %rsi
	leaq	L_.str.5(%rip), %rdi
	callq	_pr_debug
	movq	16(%r14), %rsi
	leaq	L_.str.6(%rip), %rdi
	callq	_pr_debug
	movq	24(%r14), %rsi
	leaq	L_.str.7(%rip), %rdi
	callq	_pr_debug
	movq	(%r13), %rsi
	leaq	L_.str.8(%rip), %rdi
	callq	_pr_debug
	movq	-96(%rbp), %rsi
	leaq	L_.str.9(%rip), %rdi
	callq	_pr_debug
	movq	-88(%rbp), %rsi
	leaq	L_.str.10(%rip), %rdi
	callq	_pr_debug
	movq	-80(%rbp), %rsi
	leaq	L_.str.11(%rip), %rdi
	callq	_pr_debug
	movq	-72(%rbp), %rsi
	leaq	L_.str.12(%rip), %rdi
	callq	_pr_debug
	movq	-64(%rbp), %rsi
	leaq	L_.str.13(%rip), %rdi
	callq	_pr_debug
	movq	-56(%rbp), %rsi
	leaq	L_.str.14(%rip), %rdi
	callq	_pr_debug
	movq	-48(%rbp), %rsi
	leaq	L_.str.15(%rip), %rdi
	callq	_pr_debug
	movq	-144(%rbp), %rsi
	leaq	L_.str.16(%rip), %rdi
	callq	_pr_debug
	movq	-136(%rbp), %rsi
	leaq	L_.str.17(%rip), %rdi
	callq	_pr_debug
	movq	-128(%rbp), %rsi
	leaq	L_.str.18(%rip), %rdi
	callq	_pr_debug
	movq	-120(%rbp), %rsi
	leaq	L_.str.19(%rip), %rdi
	callq	_pr_debug
	movq	-112(%rbp), %rsi
	leaq	L_.str.20(%rip), %rdi
	callq	_pr_debug
	movq	-104(%rbp), %rsi
	leaq	L_.str.21(%rip), %rdi
	callq	_pr_debug
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pr_debug
	movq	(%r12), %rax
	movq	8(%rax), %rcx
	movl	(%rax), %edi
	movl	-144(%rbp), %esi
	movq	-96(%rbp), %rdx
	callq	*(%rcx)
	movl	%eax, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set wave control registers\n"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"\t\t mode      is: %u\n"

L_.str.5:                               ## @.str.5
	.asciz	"\t\t operand   is: %u\n"

L_.str.6:                               ## @.str.6
	.asciz	"\t\t trap id   is: %u\n"

L_.str.7:                               ## @.str.7
	.asciz	"\t\t msg value is: %u\n"

L_.str.8:                               ## @.str.8
	.asciz	"\t\t vmid      is: %u\n"

L_.str.9:                               ## @.str.9
	.asciz	"\t\t chk_vmid  is : %u\n"

L_.str.10:                              ## @.str.10
	.asciz	"\t\t command   is : %u\n"

L_.str.11:                              ## @.str.11
	.asciz	"\t\t queue id  is : %u\n"

L_.str.12:                              ## @.str.12
	.asciz	"\t\t simd id   is : %u\n"

L_.str.13:                              ## @.str.13
	.asciz	"\t\t mode      is : %u\n"

L_.str.14:                              ## @.str.14
	.asciz	"\t\t vm_id     is : %u\n"

L_.str.15:                              ## @.str.15
	.asciz	"\t\t wave_id   is : %u\n"

L_.str.16:                              ## @.str.16
	.asciz	"\t\t ibw       is : %u\n"

L_.str.17:                              ## @.str.17
	.asciz	"\t\t ii        is : %u\n"

L_.str.18:                              ## @.str.18
	.asciz	"\t\t sebw      is : %u\n"

L_.str.19:                              ## @.str.19
	.asciz	"\t\t se_ind    is : %u\n"

L_.str.20:                              ## @.str.20
	.asciz	"\t\t sh_ind    is : %u\n"

L_.str.21:                              ## @.str.21
	.asciz	"\t\t sbw       is : %u\n"

	.no_dead_strip	_dbgdev_wave_control_nodiq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dbgdev_wave_control_nodiq
_dbgdev_wave_control_nodiq:             ; @dbgdev_wave_control_nodiq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x22, x1
	mov	x19, x0
	str	xzr, [sp, #56]
	ldr	x0, [x0]
	ldr	w1, [x1, #32]
	bl	_kfd_get_process_device_data
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
	add	x1, sp, #56
	add	x2, sp, #8
	mov	x0, x22
	bl	_dbgdev_wave_control_set_registers
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh4:
	adrp	x8, _EFAULT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_4:
	ldr	x8, [x23]
	str	x8, [sp, #56]
Lloh7:
	adrp	x20, l_.str.2@PAGE
Lloh8:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh9:
	adrp	x21, l_.str.3@PAGE
Lloh10:
	add	x21, x21, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_pr_debug
	ldr	x1, [x22]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
	ldr	x1, [x22, #8]
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_debug
	ldr	x1, [x22, #16]
Lloh15:
	adrp	x0, l_.str.6@PAGE
Lloh16:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_debug
	ldr	x1, [x22, #24]
Lloh17:
	adrp	x0, l_.str.7@PAGE
Lloh18:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_debug
	ldr	x1, [x23]
Lloh19:
	adrp	x0, l_.str.8@PAGE
Lloh20:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_pr_debug
	ldr	x1, [sp, #56]
Lloh21:
	adrp	x0, l_.str.9@PAGE
Lloh22:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_pr_debug
	ldr	x1, [sp, #64]
Lloh23:
	adrp	x0, l_.str.10@PAGE
Lloh24:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_pr_debug
	ldr	x1, [sp, #72]
Lloh25:
	adrp	x0, l_.str.11@PAGE
Lloh26:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_pr_debug
	ldr	x1, [sp, #80]
Lloh27:
	adrp	x0, l_.str.12@PAGE
Lloh28:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_pr_debug
	ldr	x1, [sp, #88]
Lloh29:
	adrp	x0, l_.str.13@PAGE
Lloh30:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_pr_debug
	ldr	x1, [sp, #96]
Lloh31:
	adrp	x0, l_.str.14@PAGE
Lloh32:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_pr_debug
	ldr	x1, [sp, #104]
Lloh33:
	adrp	x0, l_.str.15@PAGE
Lloh34:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_pr_debug
	ldr	x1, [sp, #8]
Lloh35:
	adrp	x0, l_.str.16@PAGE
Lloh36:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_pr_debug
	ldr	x1, [sp, #16]
Lloh37:
	adrp	x0, l_.str.17@PAGE
Lloh38:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_pr_debug
	ldr	x1, [sp, #24]
Lloh39:
	adrp	x0, l_.str.18@PAGE
Lloh40:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_pr_debug
	ldr	x1, [sp, #32]
Lloh41:
	adrp	x0, l_.str.19@PAGE
Lloh42:
	add	x0, x0, l_.str.19@PAGEOFF
	bl	_pr_debug
	ldr	x1, [sp, #40]
Lloh43:
	adrp	x0, l_.str.20@PAGE
Lloh44:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	_pr_debug
	ldr	x1, [sp, #48]
Lloh45:
	adrp	x0, l_.str.21@PAGE
Lloh46:
	add	x0, x0, l_.str.21@PAGEOFF
	bl	_pr_debug
	mov	x0, x20
	mov	x1, x21
	bl	_pr_debug
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	ldr	w0, [x8]
	ldr	w1, [sp, #8]
	ldr	x2, [sp, #56]
	blr	x9
	mov	x20, x0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.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
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set wave control registers\n"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"\t\t mode      is: %u\n"

l_.str.5:                               ; @.str.5
	.asciz	"\t\t operand   is: %u\n"

l_.str.6:                               ; @.str.6
	.asciz	"\t\t trap id   is: %u\n"

l_.str.7:                               ; @.str.7
	.asciz	"\t\t msg value is: %u\n"

l_.str.8:                               ; @.str.8
	.asciz	"\t\t vmid      is: %u\n"

l_.str.9:                               ; @.str.9
	.asciz	"\t\t chk_vmid  is : %u\n"

l_.str.10:                              ; @.str.10
	.asciz	"\t\t command   is : %u\n"

l_.str.11:                              ; @.str.11
	.asciz	"\t\t queue id  is : %u\n"

l_.str.12:                              ; @.str.12
	.asciz	"\t\t simd id   is : %u\n"

l_.str.13:                              ; @.str.13
	.asciz	"\t\t mode      is : %u\n"

l_.str.14:                              ; @.str.14
	.asciz	"\t\t vm_id     is : %u\n"

l_.str.15:                              ; @.str.15
	.asciz	"\t\t wave_id   is : %u\n"

l_.str.16:                              ; @.str.16
	.asciz	"\t\t ibw       is : %u\n"

l_.str.17:                              ; @.str.17
	.asciz	"\t\t ii        is : %u\n"

l_.str.18:                              ; @.str.18
	.asciz	"\t\t sebw      is : %u\n"

l_.str.19:                              ; @.str.19
	.asciz	"\t\t se_ind    is : %u\n"

l_.str.20:                              ; @.str.20
	.asciz	"\t\t sh_ind    is : %u\n"

l_.str.21:                              ; @.str.21
	.asciz	"\t\t sbw       is : %u\n"

	.no_dead_strip	_dbgdev_wave_control_nodiq
.subsections_via_symbols
