	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_dbg_grc_config             ## -- Begin function qed_dbg_grc_config
	.p2align	4, 0x90
_qed_dbg_grc_config:                    ## @qed_dbg_grc_config
	.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	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_QED_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	callq	_DP_VERBOSE
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_qed_dbg_dev_init
	movq	_DBG_STATUS_OK@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_19
## %bb.1:
	movq	%r15, %rdi
	callq	_qed_dbg_grc_init_params
	movq	_MAX_DBG_GRC_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%r14d, %ecx
	jbe	LBB0_2
## %bb.3:
	movq	_s_grc_param_defs@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rax
	movl	%r14d, %edx
	shlq	$5, %rdx
	cmpl	%r12d, 28(%rax,%rdx)
	jg	LBB0_2
## %bb.4:
	cmpl	%r12d, 24(%rax,%rdx)
	jge	LBB0_5
LBB0_2:
	movq	_DBG_STATUS_INVALID_ARGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpq	$0, 16(%rax,%rdx)
	je	LBB0_17
## %bb.6:
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.7:
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.8:
	movl	$4, %r12d
	xorl	%ebx, %ebx
	cmpq	$0, 4(%rax,%r12)
	jne	LBB0_15
LBB0_10:
	movq	_DBG_GRC_PARAM_EXCLUDE_ALL@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_12
## %bb.11:
	addq	%r12, %rax
	jmp	LBB0_14
LBB0_12:
	movq	_DBG_GRC_PARAM_CRASH@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_2
## %bb.13:
	movq	%rbx, %rcx
	shlq	$5, %rcx
	addq	%rcx, %rax
LBB0_14:
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_qed_grc_set_param
	movq	_MAX_DBG_GRC_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_s_grc_param_defs@GOTPCREL(%rip), %rsi
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%rsi), %rax
	addq	$32, %r12
	cmpq	$0, 4(%rax,%r12)
	jne	LBB0_15
	jmp	LBB0_10
LBB0_17:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_qed_grc_set_param
LBB0_18:
	movl	(%r13), %eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_MSG_DEBUG,4,2              ## @QED_MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dbg_grc_config: paramId = %d, val = %d\n"

	.comm	_DBG_STATUS_OK,4,2              ## @DBG_STATUS_OK
	.comm	_MAX_DBG_GRC_PARAMS,4,2         ## @MAX_DBG_GRC_PARAMS
	.comm	_DBG_STATUS_INVALID_ARGS,4,2    ## @DBG_STATUS_INVALID_ARGS
	.comm	_s_grc_param_defs,8,3           ## @s_grc_param_defs
	.comm	_DBG_GRC_PARAM_EXCLUDE_ALL,4,2  ## @DBG_GRC_PARAM_EXCLUDE_ALL
	.comm	_DBG_GRC_PARAM_CRASH,4,2        ## @DBG_GRC_PARAM_CRASH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_dbg_grc_config             ; -- Begin function qed_dbg_grc_config
	.p2align	2
_qed_dbg_grc_config:                    ; @qed_dbg_grc_config
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _QED_MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x19
	mov	x4, x21
	bl	_DP_VERBOSE
	mov	x0, x20
	mov	x1, x22
	bl	_qed_dbg_dev_init
Lloh5:
	adrp	x22, _DBG_STATUS_OK@GOTPAGE
Lloh6:
	ldr	x22, [x22, _DBG_STATUS_OK@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_qed_dbg_grc_init_params
Lloh7:
	adrp	x23, _MAX_DBG_GRC_PARAMS@GOTPAGE
Lloh8:
	ldr	x23, [x23, _MAX_DBG_GRC_PARAMS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w19
	b.ls	LBB0_4
; %bb.2:
Lloh9:
	adrp	x24, _s_grc_param_defs@GOTPAGE
Lloh10:
	ldr	x24, [x24, _s_grc_param_defs@GOTPAGEOFF]
	ldr	x9, [x24]
	mov	w10, w19
	add	x11, x9, x10, lsl #5
	ldr	w12, [x11, #28]
	cmp	w12, w21
	b.gt	LBB0_4
; %bb.3:
	ldr	w11, [x11, #24]
	cmp	w11, w21
	b.ge	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _DBG_STATUS_INVALID_ARGS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DBG_STATUS_INVALID_ARGS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	add	x10, x9, x10, lsl #5
	ldr	x10, [x10, #16]
	cbz	x10, LBB0_17
; %bb.7:
	cbz	w21, LBB0_4
; %bb.8:
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.9:
	mov	x21, #0
	mov	w25, #8
Lloh14:
	adrp	x26, _DBG_GRC_PARAM_EXCLUDE_ALL@GOTPAGE
Lloh15:
	ldr	x26, [x26, _DBG_GRC_PARAM_EXCLUDE_ALL@GOTPAGEOFF]
Lloh16:
	adrp	x27, _DBG_GRC_PARAM_CRASH@GOTPAGE
Lloh17:
	ldr	x27, [x27, _DBG_GRC_PARAM_CRASH@GOTPAGEOFF]
	ldr	x10, [x9, x25]
	cbnz	x10, LBB0_15
LBB0_10:
	ldr	w8, [x26]
	cmp	w8, w19
	b.ne	LBB0_12
; %bb.11:
	add	x8, x9, x25
	sub	x8, x8, #4
	b	LBB0_14
LBB0_12:
	ldr	w8, [x27]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.13:
	add	x8, x9, x21, lsl #5
LBB0_14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_qed_grc_set_param
	ldr	w8, [x23]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x9, [x24]
	add	x25, x25, #32
	ldr	x10, [x9, x25]
	cbnz	x10, LBB0_15
	b	LBB0_10
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_qed_grc_set_param
LBB0_18:
	ldr	w0, [x22]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_MSG_DEBUG,4,2              ; @QED_MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dbg_grc_config: paramId = %d, val = %d\n"

	.comm	_DBG_STATUS_OK,4,2              ; @DBG_STATUS_OK
	.comm	_MAX_DBG_GRC_PARAMS,4,2         ; @MAX_DBG_GRC_PARAMS
	.comm	_DBG_STATUS_INVALID_ARGS,4,2    ; @DBG_STATUS_INVALID_ARGS
	.comm	_s_grc_param_defs,8,3           ; @s_grc_param_defs
	.comm	_DBG_GRC_PARAM_EXCLUDE_ALL,4,2  ; @DBG_GRC_PARAM_EXCLUDE_ALL
	.comm	_DBG_GRC_PARAM_CRASH,4,2        ; @DBG_GRC_PARAM_CRASH
.subsections_via_symbols
