	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function guc_check_log_buf_overflow
_guc_check_log_buf_overflow:            ## @guc_check_log_buf_overflow
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%rdi), %rcx
	movl	%esi, %esi
	movl	(%rcx,%rsi,8), %r8d
	xorl	%eax, %eax
	cmpl	%edx, %r8d
	je	LBB0_2
## %bb.1:
	movl	%edx, 4(%rcx,%rsi,8)
	leal	16(%rdx), %eax
	cmpl	%edx, %r8d
	cmovbel	%edx, %eax
	movl	%eax, (%rcx,%rsi,8)
	callq	_log_to_guc
	movl	%eax, %edi
	callq	_guc_to_gt
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_notice_ratelimited
	movl	$1, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GuC log buffer overflow\n"

	.no_dead_strip	_guc_check_log_buf_overflow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function guc_check_log_buf_overflow
_guc_check_log_buf_overflow:            ; @guc_check_log_buf_overflow
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x10, [x0]
	add	x8, x10, w1, uxtw #3
	ldr	w9, [x8]
	cmp	w9, w2
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w11, w1
	add	x10, x10, x11, lsl #3
	str	w2, [x10, #4]
	add	w10, w2, #16
	cmp	w9, w2
	csel	w9, w10, w2, hi
	str	w9, [x8]
	bl	_log_to_guc
	bl	_guc_to_gt
	ldr	x8, [x0]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_notice_ratelimited
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GuC log buffer overflow\n"

	.no_dead_strip	_guc_check_log_buf_overflow
.subsections_via_symbols
