	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function collect_res_callback
_collect_res_callback:                  ## @collect_res_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	(%rsi), %rax
	movq	(%rdi), %rcx
	movq	_APEI_EXEC_INS_ACCESS_REGISTER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx,%rax,4)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	addq	$8, %rbx
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_apei_check_gar
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.5:
	addq	$4, %r14
LBB0_6:
	movl	-20(%rbp), %esi
	movl	-24(%rbp), %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movq	%r14, %rdi
	callq	_apei_res_add
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_APEI_EXEC_INS_ACCESS_REGISTER,4,2 ## @APEI_EXEC_INS_ACCESS_REGISTER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_collect_res_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function collect_res_callback
_collect_res_callback:                  ; @collect_res_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	ldr	x8, [x20], #8
	ldr	x9, [x0]
	ldr	w8, [x9, x8, lsl #2]
Lloh0:
	adrp	x9, _APEI_EXEC_INS_ACCESS_REGISTER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _APEI_EXEC_INS_ACCESS_REGISTER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x2
	add	x1, sp, #8
	add	x2, sp, #12
	mov	x0, x20
	bl	_apei_check_gar
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.4:
	add	x0, x19, #4
	ldp	w1, w8, [sp, #8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #3
	bl	_apei_res_add
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	ldp	w1, w8, [sp, #8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #3
	mov	x0, x19
	bl	_apei_res_add
	b	LBB0_6
LBB0_8:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_APEI_EXEC_INS_ACCESS_REGISTER,4,2 ; @APEI_EXEC_INS_ACCESS_REGISTER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_collect_res_callback
.subsections_via_symbols
