	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen7_is_valid_b_counter_addr
_gen7_is_valid_b_counter_addr:          ## @gen7_is_valid_b_counter_addr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_OASTARTTRIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i915_mmio_reg_offset
	cmpq	%rbx, %rax
	jg	LBB0_2
## %bb.1:
	movq	_OASTARTTRIG8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i915_mmio_reg_offset
	movq	%rax, %rcx
	movl	$1, %eax
	cmpq	%rbx, %rcx
	jge	LBB0_6
LBB0_2:
	movq	_OAREPORTTRIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i915_mmio_reg_offset
	cmpq	%rbx, %rax
	jg	LBB0_4
## %bb.3:
	movq	_OAREPORTTRIG8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i915_mmio_reg_offset
	movq	%rax, %rcx
	movl	$1, %eax
	cmpq	%rbx, %rcx
	jge	LBB0_6
LBB0_4:
	movq	_OACEC0_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i915_mmio_reg_offset
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rbx, %rcx
	jg	LBB0_6
## %bb.5:
	movq	_OACEC7_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i915_mmio_reg_offset
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rbx, %rcx
	setge	%al
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OASTARTTRIG1,4,2               ## @OASTARTTRIG1
	.comm	_OASTARTTRIG8,4,2               ## @OASTARTTRIG8
	.comm	_OAREPORTTRIG1,4,2              ## @OAREPORTTRIG1
	.comm	_OAREPORTTRIG8,4,2              ## @OAREPORTTRIG8
	.comm	_OACEC0_0,4,2                   ## @OACEC0_0
	.comm	_OACEC7_1,4,2                   ## @OACEC7_1
	.no_dead_strip	_gen7_is_valid_b_counter_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen7_is_valid_b_counter_addr
_gen7_is_valid_b_counter_addr:          ; @gen7_is_valid_b_counter_addr
	.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
Lloh0:
	adrp	x8, _OASTARTTRIG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OASTARTTRIG1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_i915_mmio_reg_offset
	cmp	x0, x19
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _OASTARTTRIG8@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OASTARTTRIG8@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_i915_mmio_reg_offset
	cmp	x0, x19
	b.ge	LBB0_6
LBB0_2:
Lloh6:
	adrp	x8, _OAREPORTTRIG1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OAREPORTTRIG1@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_i915_mmio_reg_offset
	cmp	x0, x19
	b.gt	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _OAREPORTTRIG8@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OAREPORTTRIG8@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_i915_mmio_reg_offset
	cmp	x0, x19
	b.ge	LBB0_6
LBB0_4:
Lloh12:
	adrp	x8, _OACEC0_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OACEC0_0@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_i915_mmio_reg_offset
	cmp	x0, x19
	b.le	LBB0_7
; %bb.5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _OACEC7_1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OACEC7_1@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_i915_mmio_reg_offset
	cmp	x0, x19
	cset	w0, ge
LBB0_8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_OASTARTTRIG1,4,2               ; @OASTARTTRIG1
	.comm	_OASTARTTRIG8,4,2               ; @OASTARTTRIG8
	.comm	_OAREPORTTRIG1,4,2              ; @OAREPORTTRIG1
	.comm	_OAREPORTTRIG8,4,2              ; @OAREPORTTRIG8
	.comm	_OACEC0_0,4,2                   ; @OACEC0_0
	.comm	_OACEC7_1,4,2                   ; @OACEC7_1
	.no_dead_strip	_gen7_is_valid_b_counter_addr
.subsections_via_symbols
