	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psbfb_sync                     ## -- Begin function psbfb_sync
	.p2align	4, 0x90
_psbfb_sync:                            ## @psbfb_sync
	.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), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	(%rcx), %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_PSB_CR_2D_SOCIF@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_PSB_RSGX32
	movq	__PSB_C2_SOCIF_EMPTY@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_2
## %bb.1:
	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_12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_PSB_RSGX32
	movl	%eax, %ebx
	movl	(%r14), %r12d
	xorl	%eax, %eax
	callq	_cpu_relax
	cmpl	%r12d, %ebx
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_time_after_eq
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	(%r13), %edi
	callq	_PSB_RSGX32
	cmpl	(%r14), %eax
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PSB_CR_2D_BLIT_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_PSB_RSGX32
	movl	%eax, %ebx
	movq	__PSB_C2B_STATUS_BUSY@GOTPCREL(%rip), %r13
	andl	(%r13), %ebx
	xorl	%eax, %eax
	callq	_cpu_relax
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_time_after_eq
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:
	movl	(%r14), %edi
	callq	_PSB_RSGX32
	movl	%eax, %ebx
	andl	(%r13), %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	testl	%ebx, %ebx
	jne	LBB0_6
	jmp	LBB0_10
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	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	_psbfb_sync                     ; -- Begin function psbfb_sync
	.p2align	2
_psbfb_sync:                            ; @psbfb_sync
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x19, [x8]
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x20, [x22]
Lloh2:
	adrp	x8, _HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	x21, [x8]
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh5:
	adrp	x25, _PSB_CR_2D_SOCIF@GOTPAGE
Lloh6:
	ldr	x25, [x25, _PSB_CR_2D_SOCIF@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_PSB_RSGX32
Lloh7:
	adrp	x26, __PSB_C2_SOCIF_EMPTY@GOTPAGE
Lloh8:
	ldr	x26, [x26, __PSB_C2_SOCIF_EMPTY@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh9:
	adrp	x24, _PSB_CR_2D_BLIT_STATUS@GOTPAGE
Lloh10:
	ldr	x24, [x24, _PSB_CR_2D_BLIT_STATUS@GOTPAGEOFF]
Lloh11:
	adrp	x23, __PSB_C2B_STATUS_BUSY@GOTPAGE
Lloh12:
	ldr	x23, [x23, __PSB_C2B_STATUS_BUSY@GOTPAGEOFF]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x24]
	bl	_PSB_RSGX32
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_9
LBB0_2:
	add	x20, x21, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	bl	_PSB_RSGX32
	mov	x21, x0
	ldr	w27, [x26]
	bl	_cpu_relax
	cmp	w21, w27
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x22]
	mov	x1, x20
	bl	_time_after_eq
	cbz	w0, LBB0_3
; %bb.5:
	ldr	w0, [x25]
	bl	_PSB_RSGX32
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_PSB_RSGX32
	ldr	w8, [x23]
	and	w21, w8, w0
	bl	_cpu_relax
	cbz	w21, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x22]
	mov	x1, x20
	bl	_time_after_eq
	cbz	w0, LBB0_6
; %bb.8:
	ldr	w0, [x24]
	bl	_PSB_RSGX32
	ldr	w8, [x23]
	and	w20, w8, w0
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	cbnz	w20, LBB0_12
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_12:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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
