	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function syncpt_cpu_incr
_syncpt_cpu_incr:                       ## @syncpt_cpu_incr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	(%rdi), %eax
	leal	31(%rax), %r15d
	testl	%eax, %eax
	cmovnsl	%eax, %r15d
	callq	_host1x_syncpt_client_managed
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	sarl	$5, %r15d
	movl	(%rbx), %edi
	leal	31(%rdi), %eax
	testl	%edi, %edi
	cmovnsl	%edi, %eax
	andl	$-32, %eax
	subl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_BIT
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_HOST1X_SYNC_SYNCPT_CPU_INCR
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_host1x_sync_writel
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wmb
	jmp	LBB0_4
LBB0_1:
	movq	%rbx, %rdi
	callq	_host1x_syncpt_idle
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_syncpt_cpu_incr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function syncpt_cpu_incr
_syncpt_cpu_incr:                       ; @syncpt_cpu_incr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	w8, [x0]
	add	w9, w8, #31
	cmp	w8, #0
	csel	w21, w9, w8, lt
	bl	_host1x_syncpt_client_managed
	cbz	w0, LBB0_2
LBB0_1:
	asr	w21, w21, #5
	ldr	w8, [x20]
	negs	w9, w8
	and	w9, w9, #0x1f
	and	w8, w8, #0x1f
	csneg	w0, w8, w9, mi
	bl	_BIT
	mov	x20, x0
	mov	x0, x21
	bl	_HOST1X_SYNC_SYNCPT_CPU_INCR
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_host1x_sync_writel
	bl	_wmb
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_host1x_syncpt_idle
	cbz	x0, LBB0_1
; %bb.3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_syncpt_cpu_incr
.subsections_via_symbols
