	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gru_retry_exception
_gru_retry_exception:                   ## @gru_retry_exception
	.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
	movq	%rdi, %r15
	movq	_EXCEPTION_RETRY_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_gru_wait_idle_or_exception
	movq	_CBS_IDLE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_8
## %bb.1:
	leaq	-48(%rbp), %r14
	movq	_EXCEPTION_RETRY_BITS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_gru_get_cb_message_queue_substatus
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_gru_get_cb_exception_detail
	movl	(%r13), %eax
	notl	%eax
	testl	%eax, -48(%rbp)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_CBR_EXS_ABORT_OCC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	subl	$1, %ebx
	setb	%al
	testl	%ecx, -44(%rbp)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%al, %al
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%r15)
	movq	%r15, %rdi
	callq	_gru_flush_cache
	movq	%r15, %rdi
	callq	_gru_wait_idle_or_exception
	cmpq	(%r12), %rax
	jne	LBB0_2
	jmp	LBB0_8
LBB0_7:
	movq	_CBS_EXCEPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXCEPTION_RETRY_LIMIT,4,2      ## @EXCEPTION_RETRY_LIMIT
	.comm	_CBS_IDLE,8,3                   ## @CBS_IDLE
	.comm	_CBS_EXCEPTION,4,2              ## @CBS_EXCEPTION
	.comm	_EXCEPTION_RETRY_BITS,4,2       ## @EXCEPTION_RETRY_BITS
	.comm	_CBR_EXS_ABORT_OCC,4,2          ## @CBR_EXS_ABORT_OCC
	.no_dead_strip	_gru_retry_exception
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gru_retry_exception
_gru_retry_exception:                   ; @gru_retry_exception
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
Lloh0:
	adrp	x8, _EXCEPTION_RETRY_LIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXCEPTION_RETRY_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_gru_wait_idle_or_exception
Lloh3:
	adrp	x21, _CBS_IDLE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CBS_IDLE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.1:
Lloh5:
	adrp	x22, _EXCEPTION_RETRY_BITS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _EXCEPTION_RETRY_BITS@GOTPAGEOFF]
Lloh7:
	adrp	x23, _CBR_EXS_ABORT_OCC@GOTPAGE
Lloh8:
	ldr	x23, [x23, _CBR_EXS_ABORT_OCC@GOTPAGEOFF]
	mov	w24, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_gru_get_cb_message_queue_substatus
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_gru_get_cb_exception_detail
	ldr	w8, [sp, #8]
	ldr	w9, [x22]
	bics	wzr, w8, w9
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w20, #0, #4, eq
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w20, w20, #1
	str	w24, [x19]
	mov	x0, x19
	bl	_gru_flush_cache
	mov	x0, x19
	bl	_gru_wait_idle_or_exception
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_2
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _CBS_EXCEPTION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CBS_EXCEPTION@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EXCEPTION_RETRY_LIMIT,4,2      ; @EXCEPTION_RETRY_LIMIT
	.comm	_CBS_IDLE,8,3                   ; @CBS_IDLE
	.comm	_CBS_EXCEPTION,4,2              ; @CBS_EXCEPTION
	.comm	_EXCEPTION_RETRY_BITS,4,2       ; @EXCEPTION_RETRY_BITS
	.comm	_CBR_EXS_ABORT_OCC,4,2          ; @CBR_EXS_ABORT_OCC
	.no_dead_strip	_gru_retry_exception
.subsections_via_symbols
