	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_redzone
_check_redzone:                         ## @check_redzone
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_CONFIG_DRM_I915_DEBUG_GEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_LRC_HEADER_PAGES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	%rax, %rcx
	addq	%rcx, %rbx
	movslq	16(%r14), %rdi
	addq	%rbx, %rdi
	movq	_POISON_INUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I915_GTT_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memchr_inv
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err_once                   ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_DRM_I915_DEBUG_GEM,4,2  ## @CONFIG_DRM_I915_DEBUG_GEM
	.comm	_LRC_HEADER_PAGES,4,2           ## @LRC_HEADER_PAGES
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_POISON_INUSE,4,2               ## @POISON_INUSE
	.comm	_I915_GTT_PAGE_SIZE,4,2         ## @I915_GTT_PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s context redzone overwritten!\n"

	.no_dead_strip	_check_redzone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_redzone
_check_redzone:                         ; @check_redzone
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CONFIG_DRM_I915_DEBUG_GEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_DRM_I915_DEBUG_GEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _LRC_HEADER_PAGES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LRC_HEADER_PAGES@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
Lloh6:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	madd	x8, x9, x8, x20
	ldrsw	x9, [x19, #16]
	add	x0, x8, x9
Lloh9:
	adrp	x8, _POISON_INUSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _POISON_INUSE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _I915_GTT_PAGE_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I915_GTT_PAGE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_memchr_inv
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err_once
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_DRM_I915_DEBUG_GEM,4,2  ; @CONFIG_DRM_I915_DEBUG_GEM
	.comm	_LRC_HEADER_PAGES,4,2           ; @LRC_HEADER_PAGES
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_POISON_INUSE,4,2               ; @POISON_INUSE
	.comm	_I915_GTT_PAGE_SIZE,4,2         ; @I915_GTT_PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s context redzone overwritten!\n"

	.no_dead_strip	_check_redzone
.subsections_via_symbols
