	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen9_check_dword_gap
_gen9_check_dword_gap:                  ## @gen9_check_dword_gap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_GEN9_GUC_WOPCM_OFFSET@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%rdx, %rcx
	subq	%rsi, %rcx
	jl	LBB0_2
## %bb.1:
	movl	$1, %eax
	cmpq	$7, %rcx
	jbe	LBB0_2
## %bb.9:
	popq	%rbp
	retq
LBB0_2:
	movl	(%rdi), %edi
	movq	_SZ_1K@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rdx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%rdx, %rax
	cqto
	idivq	%rcx
	movq	%rax, %r8
	jmp	LBB0_5
LBB0_3:
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r8d
LBB0_5:
	addq	$8, %rsi
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.7:
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_8
LBB0_6:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r8, %rdx
	movq	%rax, %rcx
	callq	_dev_err
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN9_GUC_WOPCM_OFFSET,8,3      ## @GEN9_GUC_WOPCM_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WOPCM: invalid GuC region size: %uK < %uK\n"

	.comm	_SZ_1K,8,3                      ## @SZ_1K
	.no_dead_strip	_gen9_check_dword_gap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen9_check_dword_gap
_gen9_check_dword_gap:                  ; @gen9_check_dword_gap
	.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
Lloh0:
	adrp	x8, _GEN9_GUC_WOPCM_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN9_GUC_WOPCM_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, x1
	subs	x9, x2, x8
	ccmp	x9, #7, #0, ge
	b.hi	LBB0_2
; %bb.1:
	ldr	w0, [x0]
Lloh3:
	adrp	x9, _SZ_1K@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SZ_1K@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sdiv	x2, x2, x9
	add	x8, x8, #8
	sdiv	x3, x8, x9
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN9_GUC_WOPCM_OFFSET,8,3      ; @GEN9_GUC_WOPCM_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WOPCM: invalid GuC region size: %uK < %uK\n"

	.comm	_SZ_1K,8,3                      ; @SZ_1K
	.no_dead_strip	_gen9_check_dword_gap
.subsections_via_symbols
