	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen8_emit_bb_start
_gen8_emit_bb_start:                    ## @gen8_emit_bb_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$4, %esi
	callq	_intel_ring_begin
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_MI_ARB_ON_OFF@GOTPCREL(%rip), %rax
	movq	_MI_ARB_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_MI_BATCH_BUFFER_START_GEN8@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_I915_DISPATCH_SECURE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%r12d, (%rcx)
	jne	LBB0_3
## %bb.2:
	movl	$8, %edi
	callq	_BIT
LBB0_3:
	orl	%r13d, %eax
	movl	%eax, 4(%rbx)
	movl	%r14d, %edi
	callq	_lower_32_bits
	movl	%eax, 8(%rbx)
	movl	%r14d, %edi
	callq	_upper_32_bits
	movq	%rbx, %rsi
	addq	$16, %rsi
	movl	%eax, 12(%rbx)
	movq	%r15, %rdi
	callq	_intel_ring_advance
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MI_ARB_ON_OFF,4,2              ## @MI_ARB_ON_OFF
	.comm	_MI_ARB_DISABLE,4,2             ## @MI_ARB_DISABLE
	.comm	_MI_BATCH_BUFFER_START_GEN8,4,2 ## @MI_BATCH_BUFFER_START_GEN8
	.comm	_I915_DISPATCH_SECURE,4,2       ## @I915_DISPATCH_SECURE
	.no_dead_strip	_gen8_emit_bb_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen8_emit_bb_start
_gen8_emit_bb_start:                    ; @gen8_emit_bb_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x20, x1
	mov	x19, x0
	mov	w1, #4
	bl	_intel_ring_begin
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
Lloh0:
	adrp	x8, _MI_ARB_ON_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MI_ARB_ON_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MI_ARB_DISABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MI_ARB_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _MI_BATCH_BUFFER_START_GEN8@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MI_BATCH_BUFFER_START_GEN8@GOTPAGEOFF]
	str	w8, [x21]
Lloh8:
	ldr	w23, [x9]
Lloh9:
	adrp	x8, _I915_DISPATCH_SECURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I915_DISPATCH_SECURE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #8
	bl	_BIT
LBB0_5:
	orr	w8, w0, w23
	str	w8, [x21, #4]
	mov	x0, x20
	bl	_lower_32_bits
	str	w0, [x21, #8]
	mov	x0, x20
	bl	_upper_32_bits
	add	x1, x21, #16
	str	w0, [x21, #12]
	mov	x0, x19
	bl	_intel_ring_advance
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MI_ARB_ON_OFF,4,2              ; @MI_ARB_ON_OFF
	.comm	_MI_ARB_DISABLE,4,2             ; @MI_ARB_DISABLE
	.comm	_MI_BATCH_BUFFER_START_GEN8,4,2 ; @MI_BATCH_BUFFER_START_GEN8
	.comm	_I915_DISPATCH_SECURE,4,2       ; @I915_DISPATCH_SECURE
	.no_dead_strip	_gen8_emit_bb_start
.subsections_via_symbols
