	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gma_blt_wait_idle              ## -- Begin function gma_blt_wait_idle
	.p2align	4, 0x90
_gma_blt_wait_idle:                     ## @gma_blt_wait_idle
	.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	_jiffies@GOTPCREL(%rip), %r12
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	(%r12), %r15
	movl	(%rdi), %edi
	callq	_IS_CDV
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movq	_PSB_CR_2D_SOCIF@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_PSB_RSGX32
	movq	__PSB_C2_SOCIF_EMPTY@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_3
## %bb.2:
	movq	_PSB_CR_2D_BLIT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PSB_RSGX32
	movq	__PSB_C2B_STATUS_BUSY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_PSB_RSGX32
	cmpl	(%rbx), %eax
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rdi
	movq	%r15, %rsi
	callq	_time_after_eq
	testl	%eax, %eax
	je	LBB0_3
## %bb.9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_4:
	movq	_PSB_CR_2D_BLIT_STATUS@GOTPCREL(%rip), %r14
	movq	__PSB_C2B_STATUS_BUSY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_PSB_RSGX32
	movl	%eax, %ebx
	andl	(%r13), %ebx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rdi
	movq	%r15, %rsi
	callq	_time_after_eq
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	testl	%ebx, %ebx
	cmovel	%ebx, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_PSB_CR_2D_SOCIF,4,2            ## @PSB_CR_2D_SOCIF
	.comm	__PSB_C2_SOCIF_EMPTY,4,2        ## @_PSB_C2_SOCIF_EMPTY
	.comm	_PSB_CR_2D_BLIT_STATUS,4,2      ## @PSB_CR_2D_BLIT_STATUS
	.comm	__PSB_C2B_STATUS_BUSY,4,2       ## @_PSB_C2B_STATUS_BUSY
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gma_blt_wait_idle              ; -- Begin function gma_blt_wait_idle
	.p2align	2
_gma_blt_wait_idle:                     ; @gma_blt_wait_idle
	.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
Lloh0:
	adrp	x20, _jiffies@GOTPAGE
Lloh1:
	ldr	x20, [x20, _jiffies@GOTPAGEOFF]
	ldr	x19, [x20]
Lloh2:
	adrp	x8, _HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
	ldr	w0, [x0]
	bl	_IS_CDV
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
LBB0_3:
Lloh5:
	adrp	x21, _PSB_CR_2D_SOCIF@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PSB_CR_2D_SOCIF@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_PSB_RSGX32
Lloh7:
	adrp	x22, __PSB_C2_SOCIF_EMPTY@GOTPAGE
Lloh8:
	ldr	x22, [x22, __PSB_C2_SOCIF_EMPTY@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _PSB_CR_2D_BLIT_STATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PSB_CR_2D_BLIT_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_PSB_RSGX32
Lloh12:
	adrp	x8, __PSB_C2B_STATUS_BUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, __PSB_C2B_STATUS_BUSY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_1
LBB0_5:
	add	x19, x23, x19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_PSB_RSGX32
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20]
	mov	x1, x19
	bl	_time_after_eq
	cbz	w0, LBB0_6
; %bb.8:
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
LBB0_9:
Lloh18:
	adrp	x21, _PSB_CR_2D_BLIT_STATUS@GOTPAGE
Lloh19:
	ldr	x21, [x21, _PSB_CR_2D_BLIT_STATUS@GOTPAGEOFF]
Lloh20:
	adrp	x22, __PSB_C2B_STATUS_BUSY@GOTPAGE
Lloh21:
	ldr	x22, [x22, __PSB_C2B_STATUS_BUSY@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_PSB_RSGX32
	ldr	w8, [x22]
	ands	w23, w8, w0
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x20]
	mov	x1, x19
	bl	_time_after_eq
	cbz	w0, LBB0_10
LBB0_12:
Lloh22:
	adrp	x8, _EBUSY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w23, #0
	csneg	w0, wzr, w8, eq
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_PSB_CR_2D_SOCIF,4,2            ; @PSB_CR_2D_SOCIF
	.comm	__PSB_C2_SOCIF_EMPTY,4,2        ; @_PSB_C2_SOCIF_EMPTY
	.comm	_PSB_CR_2D_BLIT_STATUS,4,2      ; @PSB_CR_2D_BLIT_STATUS
	.comm	__PSB_C2B_STATUS_BUSY,4,2       ; @_PSB_C2B_STATUS_BUSY
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
