	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubp2_vready_at_or_After_vsync ## -- Begin function hubp2_vready_at_or_After_vsync
	.p2align	4, 0x90
_hubp2_vready_at_or_After_vsync:        ## @hubp2_vready_at_or_After_vsync
	.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	%rsi, %rbx
	callq	_TO_DCN20_HUBP
	movq	_HUBPREQ_DEBUG_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$256, %esi                      ## imm = 0x100
	callq	_REG_WRITE
	movq	16(%rbx), %rax
	addq	8(%rbx), %rax
	addq	24(%rbx), %rax
	movq	(%rbx), %rcx
	movq	32(%rbx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	cqto
	idivq	%rsi
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	subq	%rax, %rcx
	xorl	%edx, %edx
	cmpq	40(%rbx), %rcx
	setle	%dl
	movq	_DCHUBP_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HUBP_VREADY_AT_OR_AFTER_VSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_REG_UPDATE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HUBPREQ_DEBUG_DB,4,2           ## @HUBPREQ_DEBUG_DB
	.comm	_DCHUBP_CNTL,4,2                ## @DCHUBP_CNTL
	.comm	_HUBP_VREADY_AT_OR_AFTER_VSYNC,4,2 ## @HUBP_VREADY_AT_OR_AFTER_VSYNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubp2_vready_at_or_After_vsync ; -- Begin function hubp2_vready_at_or_After_vsync
	.p2align	2
_hubp2_vready_at_or_After_vsync:        ; @hubp2_vready_at_or_After_vsync
	.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
	bl	_TO_DCN20_HUBP
Lloh0:
	adrp	x8, _HUBPREQ_DEBUG_DB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HUBPREQ_DEBUG_DB@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #256
	bl	_REG_WRITE
	ldp	x8, x9, [x19]
	ldp	x10, x11, [x19, #16]
	add	x9, x10, x9
	add	x9, x9, x11
	ldp	x10, x11, [x19, #32]
	sdiv	x9, x9, x10
	sub	x8, x8, x9
	cmp	x8, x11
	cset	w2, le
Lloh3:
	adrp	x8, _DCHUBP_CNTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCHUBP_CNTL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _HUBP_VREADY_AT_OR_AFTER_VSYNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HUBP_VREADY_AT_OR_AFTER_VSYNC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_UPDATE
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HUBPREQ_DEBUG_DB,4,2           ; @HUBPREQ_DEBUG_DB
	.comm	_DCHUBP_CNTL,4,2                ; @DCHUBP_CNTL
	.comm	_HUBP_VREADY_AT_OR_AFTER_VSYNC,4,2 ; @HUBP_VREADY_AT_OR_AFTER_VSYNC
.subsections_via_symbols
