	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen6_bsd_submit_request
_gen6_bsd_submit_request:               ## @gen6_bsd_submit_request
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	_FORCEWAKE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_intel_uncore_forcewake_get
	movq	_GEN6_BSD_SLEEP_PSMI_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	movq	_GEN6_BSD_SLEEP_MSG_DISABLE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	__MASKED_BIT_ENABLE
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_intel_uncore_write_fw
	movq	_GEN6_BSD_RNCID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_intel_uncore_write64_fw
	movl	(%r13), %esi
	movq	_GEN6_BSD_SLEEP_INDICATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	$0, (%rsp)
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	xorl	%r9d, %r9d
	callq	___intel_wait_for_register_fw
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_2:
	movq	%r14, %rdi
	callq	_i9xx_submit_request
	movl	(%r13), %r14d
	movl	(%r12), %edi
	callq	__MASKED_BIT_DISABLE
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_intel_uncore_write_fw
	movq	_FORCEWAKE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_uncore_forcewake_put     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FORCEWAKE_ALL,4,2              ## @FORCEWAKE_ALL
	.comm	_GEN6_BSD_SLEEP_PSMI_CONTROL,4,2 ## @GEN6_BSD_SLEEP_PSMI_CONTROL
	.comm	_GEN6_BSD_SLEEP_MSG_DISABLE,4,2 ## @GEN6_BSD_SLEEP_MSG_DISABLE
	.comm	_GEN6_BSD_RNCID,4,2             ## @GEN6_BSD_RNCID
	.comm	_GEN6_BSD_SLEEP_INDICATOR,4,2   ## @GEN6_BSD_SLEEP_INDICATOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timed out waiting for the BSD ring to wake up\n"

	.no_dead_strip	_gen6_bsd_submit_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen6_bsd_submit_request
_gen6_bsd_submit_request:               ; @gen6_bsd_submit_request
	.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	x20, x0
	ldr	x8, [x0]
	ldr	x19, [x8]
Lloh0:
	adrp	x22, _FORCEWAKE_ALL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FORCEWAKE_ALL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_intel_uncore_forcewake_get
Lloh2:
	adrp	x23, _GEN6_BSD_SLEEP_PSMI_CONTROL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GEN6_BSD_SLEEP_PSMI_CONTROL@GOTPAGEOFF]
	ldr	w21, [x23]
Lloh4:
	adrp	x24, _GEN6_BSD_SLEEP_MSG_DISABLE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _GEN6_BSD_SLEEP_MSG_DISABLE@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	__MASKED_BIT_ENABLE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_intel_uncore_write_fw
Lloh6:
	adrp	x8, _GEN6_BSD_RNCID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GEN6_BSD_RNCID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_intel_uncore_write64_fw
	ldr	w1, [x23]
Lloh9:
	adrp	x8, _GEN6_BSD_SLEEP_INDICATOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GEN6_BSD_SLEEP_INDICATOR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #1000
	mov	w5, #0
	mov	x6, #0
	bl	___intel_wait_for_register_fw
	cbz	x0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_2:
	mov	x0, x20
	bl	_i9xx_submit_request
	ldr	w20, [x23]
	ldr	w0, [x24]
	bl	__MASKED_BIT_DISABLE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_intel_uncore_write_fw
	ldr	w1, [x22]
	mov	x0, x19
	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	_intel_uncore_forcewake_put
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FORCEWAKE_ALL,4,2              ; @FORCEWAKE_ALL
	.comm	_GEN6_BSD_SLEEP_PSMI_CONTROL,4,2 ; @GEN6_BSD_SLEEP_PSMI_CONTROL
	.comm	_GEN6_BSD_SLEEP_MSG_DISABLE,4,2 ; @GEN6_BSD_SLEEP_MSG_DISABLE
	.comm	_GEN6_BSD_RNCID,4,2             ; @GEN6_BSD_RNCID
	.comm	_GEN6_BSD_SLEEP_INDICATOR,4,2   ; @GEN6_BSD_SLEEP_INDICATOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timed out waiting for the BSD ring to wake up\n"

	.no_dead_strip	_gen6_bsd_submit_request
.subsections_via_symbols
