	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubp2_is_flip_pending          ## -- Begin function hubp2_is_flip_pending
	.p2align	4, 0x90
_hubp2_is_flip_pending:                 ## @hubp2_is_flip_pending
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	$0, -16(%rbp)
	callq	_TO_DCN20_HUBP
	movq	_DCSURF_FLIP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SURFACE_FLIP_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	callq	_REG_GET
	movq	_DCSURF_SURFACE_EARLIEST_INUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SURFACE_EARLIEST_INUSE_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	callq	_REG_GET
	movq	_DCSURF_SURFACE_EARLIEST_INUSE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SURFACE_EARLIEST_INUSE_ADDRESS_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_REG_GET
	movl	$1, %eax
	cmpq	$0, -16(%rbp)
	jne	LBB0_2
## %bb.1:
	movq	-40(%rbp), %rcx
	xorl	%eax, %eax
	cmpq	(%rbx), %rcx
	setne	%al
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCSURF_FLIP_CONTROL,4,2        ## @DCSURF_FLIP_CONTROL
	.comm	_SURFACE_FLIP_PENDING,4,2       ## @SURFACE_FLIP_PENDING
	.comm	_DCSURF_SURFACE_EARLIEST_INUSE,4,2 ## @DCSURF_SURFACE_EARLIEST_INUSE
	.comm	_SURFACE_EARLIEST_INUSE_ADDRESS,4,2 ## @SURFACE_EARLIEST_INUSE_ADDRESS
	.comm	_DCSURF_SURFACE_EARLIEST_INUSE_HIGH,4,2 ## @DCSURF_SURFACE_EARLIEST_INUSE_HIGH
	.comm	_SURFACE_EARLIEST_INUSE_ADDRESS_HIGH,4,2 ## @SURFACE_EARLIEST_INUSE_ADDRESS_HIGH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubp2_is_flip_pending          ; -- Begin function hubp2_is_flip_pending
	.p2align	2
_hubp2_is_flip_pending:                 ; @hubp2_is_flip_pending
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	str	xzr, [sp, #24]
	bl	_TO_DCN20_HUBP
Lloh0:
	adrp	x8, _DCSURF_FLIP_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCSURF_FLIP_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SURFACE_FLIP_PENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SURFACE_FLIP_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_REG_GET
Lloh6:
	adrp	x8, _DCSURF_SURFACE_EARLIEST_INUSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DCSURF_SURFACE_EARLIEST_INUSE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SURFACE_EARLIEST_INUSE_ADDRESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SURFACE_EARLIEST_INUSE_ADDRESS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x20, sp
	add	x2, x20, #16
	bl	_REG_GET
Lloh12:
	adrp	x8, _DCSURF_SURFACE_EARLIEST_INUSE_HIGH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DCSURF_SURFACE_EARLIEST_INUSE_HIGH@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _SURFACE_EARLIEST_INUSE_ADDRESS_HIGH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SURFACE_EARLIEST_INUSE_ADDRESS_HIGH@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, x20, #8
	bl	_REG_GET
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	x8, [sp]
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w0, ne
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_DCSURF_FLIP_CONTROL,4,2        ; @DCSURF_FLIP_CONTROL
	.comm	_SURFACE_FLIP_PENDING,4,2       ; @SURFACE_FLIP_PENDING
	.comm	_DCSURF_SURFACE_EARLIEST_INUSE,4,2 ; @DCSURF_SURFACE_EARLIEST_INUSE
	.comm	_SURFACE_EARLIEST_INUSE_ADDRESS,4,2 ; @SURFACE_EARLIEST_INUSE_ADDRESS
	.comm	_DCSURF_SURFACE_EARLIEST_INUSE_HIGH,4,2 ; @DCSURF_SURFACE_EARLIEST_INUSE_HIGH
	.comm	_SURFACE_EARLIEST_INUSE_ADDRESS_HIGH,4,2 ; @SURFACE_EARLIEST_INUSE_ADDRESS_HIGH
.subsections_via_symbols
