	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dbgdev_wave_control_set_registers
_dbgdev_wave_control_set_registers:     ## @dbgdev_wave_control_set_registers
	.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	(%rdi), %ecx
	movq	_SQ_IND_CMD_MODE_BROADCAST@GOTPCREL(%rip), %rax
	cmpl	$135, %ecx
	je	LBB0_1
## %bb.2:
                                        ## implicit-def: $r8d
                                        ## implicit-def: $r9d
	cmpl	$134, %ecx
	je	LBB0_5
## %bb.3:
	cmpl	$133, %ecx
	jne	LBB0_20
## %bb.4:
	movl	24(%rdi), %r9d
	movl	28(%rdi), %r8d
	movq	_SQ_IND_CMD_MODE_SINGLE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	20(%rdi), %r10d
	movl	12(%rdi), %r14d
	movl	16(%rdi), %r11d
	movl	$1, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_1:
	movabsq	$4294967297, %r15               ## imm = 0x100000001
	xorl	%r12d, %r12d
                                        ## implicit-def: $r8d
                                        ## implicit-def: $r9d
                                        ## implicit-def: $r10d
                                        ## implicit-def: $r11d
                                        ## implicit-def: $r14d
LBB0_6:
	movq	(%rax), %rcx
	movl	4(%rdi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_15
## %bb.7:
	leaq	LJTI0_0(%rip), %rbx
	movslq	(%rbx,%rax,4), %rax
	addq	%rbx, %rax
	jmpq	*%rax
LBB0_13:
	movl	8(%rdi), %eax
	movq	_MAX_TRAPID@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %eax
	jge	LBB0_15
## %bb.14:
	movq	_SQ_IND_CMD_CMD_TRAP@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	shlq	$32, %rax
	jmp	LBB0_18
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	negl	%eax
	jmp	LBB0_19
LBB0_11:
	movq	_SQ_IND_CMD_CMD_KILL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_SQ_IND_CMD_CMD_HALT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_12:
	movq	_SQ_IND_CMD_CMD_DEBUG@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	movq	_SQ_IND_CMD_CMD_RESUME@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edi
	xorl	%eax, %eax
LBB0_18:
	orq	%r12, %rax
	movq	%rax, (%rsi)
	movl	%edi, 8(%rsi)
	movq	%rcx, 16(%rsi)
	movl	%r9d, 24(%rsi)
	movl	%r8d, 28(%rsi)
	movq	%r15, (%rdx)
	movl	$1, 8(%rdx)
	movl	%r14d, 12(%rdx)
	movl	%r11d, 16(%rdx)
	movl	%r10d, 20(%rdx)
	xorl	%eax, %eax
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%eax, %eax
                                        ## implicit-def: $edi
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_SQ_IND_CMD_MODE_SINGLE,8,3     ## @SQ_IND_CMD_MODE_SINGLE
	.comm	_SQ_IND_CMD_MODE_BROADCAST,8,3  ## @SQ_IND_CMD_MODE_BROADCAST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SQ_IND_CMD_CMD_HALT,4,2        ## @SQ_IND_CMD_CMD_HALT
	.comm	_SQ_IND_CMD_CMD_RESUME,4,2      ## @SQ_IND_CMD_CMD_RESUME
	.comm	_SQ_IND_CMD_CMD_KILL,4,2        ## @SQ_IND_CMD_CMD_KILL
	.comm	_SQ_IND_CMD_CMD_DEBUG,4,2       ## @SQ_IND_CMD_CMD_DEBUG
	.comm	_MAX_TRAPID,4,2                 ## @MAX_TRAPID
	.comm	_SQ_IND_CMD_CMD_TRAP,4,2        ## @SQ_IND_CMD_CMD_TRAP
	.no_dead_strip	_dbgdev_wave_control_set_registers
.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_set_registers
_dbgdev_wave_control_set_registers:     ; @dbgdev_wave_control_set_registers
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x11, _SQ_IND_CMD_MODE_BROADCAST@GOTPAGE
Lloh1:
	ldr	x11, [x11, _SQ_IND_CMD_MODE_BROADCAST@GOTPAGEOFF]
	cmp	w8, #135
	b.eq	LBB0_5
; %bb.1:
                                        ; implicit-def: $d0
	cmp	w8, #134
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #133
	b.ne	LBB0_10
; %bb.3:
	ldr	d0, [x0, #24]
Lloh2:
	adrp	x11, _SQ_IND_CMD_MODE_SINGLE@GOTPAGE
Lloh3:
	ldr	x11, [x11, _SQ_IND_CMD_MODE_SINGLE@GOTPAGEOFF]
LBB0_4:
	mov	x8, #0
	ldr	w9, [x0, #20]
	ldur	d1, [x0, #12]
	mov	w10, #1
	b	LBB0_6
LBB0_5:
	mov	x10, #0
	mov	x8, #4294967297
                                        ; implicit-def: $w9
                                        ; implicit-def: $d0
                                        ; implicit-def: $d1
LBB0_6:
	ldr	x11, [x11]
	ldr	w12, [x0, #4]
	sub	w12, w12, #128
	cmp	w12, #4
	b.hi	LBB0_11
; %bb.7:
Lloh4:
	adrp	x13, lJTI0_0@PAGE
Lloh5:
	add	x13, x13, lJTI0_0@PAGEOFF
	adr	x14, LBB0_8
	ldrb	w15, [x13, x12]
	add	x14, x14, x15, lsl #2
	br	x14
LBB0_8:
	ldr	w12, [x0, #8]
Lloh6:
	adrp	x13, _MAX_TRAPID@GOTPAGE
Lloh7:
	ldr	x13, [x13, _MAX_TRAPID@GOTPAGEOFF]
Lloh8:
	ldr	w13, [x13]
	cmp	w12, w13
	b.ge	LBB0_11
; %bb.9:
Lloh9:
	adrp	x13, _SQ_IND_CMD_CMD_TRAP@GOTPAGE
Lloh10:
	ldr	x13, [x13, _SQ_IND_CMD_CMD_TRAP@GOTPAGEOFF]
Lloh11:
	ldr	w13, [x13]
	lsl	x12, x12, #32
	b	LBB0_18
LBB0_10:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_11:
Lloh15:
	adrp	x12, _EINVAL@GOTPAGE
Lloh16:
	ldr	x12, [x12, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	cbz	w12, LBB0_17
; %bb.12:
	neg	w0, w12
	ret
LBB0_13:
	mov	x12, #0
Lloh18:
	adrp	x13, _SQ_IND_CMD_CMD_KILL@GOTPAGE
Lloh19:
	ldr	x13, [x13, _SQ_IND_CMD_CMD_KILL@GOTPAGEOFF]
Lloh20:
	ldr	w13, [x13]
	b	LBB0_18
LBB0_14:
	mov	x12, #0
Lloh21:
	adrp	x13, _SQ_IND_CMD_CMD_HALT@GOTPAGE
Lloh22:
	ldr	x13, [x13, _SQ_IND_CMD_CMD_HALT@GOTPAGEOFF]
Lloh23:
	ldr	w13, [x13]
	b	LBB0_18
LBB0_15:
	mov	x12, #0
Lloh24:
	adrp	x13, _SQ_IND_CMD_CMD_DEBUG@GOTPAGE
Lloh25:
	ldr	x13, [x13, _SQ_IND_CMD_CMD_DEBUG@GOTPAGEOFF]
Lloh26:
	ldr	w13, [x13]
	b	LBB0_18
LBB0_16:
	mov	x12, #0
Lloh27:
	adrp	x13, _SQ_IND_CMD_CMD_RESUME@GOTPAGE
Lloh28:
	ldr	x13, [x13, _SQ_IND_CMD_CMD_RESUME@GOTPAGEOFF]
Lloh29:
	ldr	w13, [x13]
	b	LBB0_18
LBB0_17:
	mov	x12, #0
                                        ; implicit-def: $w13
LBB0_18:
	mov	w0, #0
	orr	x10, x12, x10
	str	x10, [x1]
	str	w13, [x1, #8]
	str	x11, [x1, #16]
	str	d0, [x1, #24]
	str	x8, [x2]
	mov	w8, #1
	str	w8, [x2, #8]
	stur	d1, [x2, #12]
	str	w9, [x2, #20]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
                                        ; -- End function
	.comm	_SQ_IND_CMD_MODE_SINGLE,8,3     ; @SQ_IND_CMD_MODE_SINGLE
	.comm	_SQ_IND_CMD_MODE_BROADCAST,8,3  ; @SQ_IND_CMD_MODE_BROADCAST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SQ_IND_CMD_CMD_HALT,4,2        ; @SQ_IND_CMD_CMD_HALT
	.comm	_SQ_IND_CMD_CMD_RESUME,4,2      ; @SQ_IND_CMD_CMD_RESUME
	.comm	_SQ_IND_CMD_CMD_KILL,4,2        ; @SQ_IND_CMD_CMD_KILL
	.comm	_SQ_IND_CMD_CMD_DEBUG,4,2       ; @SQ_IND_CMD_CMD_DEBUG
	.comm	_MAX_TRAPID,4,2                 ; @MAX_TRAPID
	.comm	_SQ_IND_CMD_CMD_TRAP,4,2        ; @SQ_IND_CMD_CMD_TRAP
	.no_dead_strip	_dbgdev_wave_control_set_registers
.subsections_via_symbols
