	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_wait_for_gt_wells
_vlv_wait_for_gt_wells:                 ## @vlv_wait_for_gt_wells
	.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	_VLV_GTLC_PW_MEDIA_STATUS_MASK@GOTPCREL(%rip), %rcx
	movq	_VLV_GTLC_PW_RENDER_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movl	%esi, %ebx
	testl	%esi, %esi
	movl	%eax, %edx
	cmovel	%esi, %edx
	movl	%eax, %esi
	callq	_vlv_wait_for_pw_status
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%ebx, %edi
	callq	_onoff
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DRM_DEBUG_DRIVER               ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLV_GTLC_PW_MEDIA_STATUS_MASK,4,2 ## @VLV_GTLC_PW_MEDIA_STATUS_MASK
	.comm	_VLV_GTLC_PW_RENDER_STATUS_MASK,4,2 ## @VLV_GTLC_PW_RENDER_STATUS_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout waiting for GT wells to go %s\n"

	.no_dead_strip	_vlv_wait_for_gt_wells
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_wait_for_gt_wells
_vlv_wait_for_gt_wells:                 ; @vlv_wait_for_gt_wells
	.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, _VLV_GTLC_PW_MEDIA_STATUS_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VLV_GTLC_PW_MEDIA_STATUS_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VLV_GTLC_PW_RENDER_STATUS_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VLV_GTLC_PW_RENDER_STATUS_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	cmp	w19, #0
	csel	w2, wzr, w1, eq
	bl	_vlv_wait_for_pw_status
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_onoff
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_DEBUG_DRIVER
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VLV_GTLC_PW_MEDIA_STATUS_MASK,4,2 ; @VLV_GTLC_PW_MEDIA_STATUS_MASK
	.comm	_VLV_GTLC_PW_RENDER_STATUS_MASK,4,2 ; @VLV_GTLC_PW_RENDER_STATUS_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout waiting for GT wells to go %s\n"

	.no_dead_strip	_vlv_wait_for_gt_wells
.subsections_via_symbols
