	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decon_get_frame_count
_decon_get_frame_count:                 ## @decon_get_frame_count
	.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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	_DECON_CRFMID@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	%rax, %rbx
	movq	_DECON_VIDCON1@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	%rax, %r12
	movq	(%r13), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	cmpq	%rbx, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	%rax, %r12
	movq	(%r13), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	%rax, %rbx
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	_VIDCON1_VSTATUS_MASK@GOTPCREL(%rip), %rcx
	movl	$131, %eax
	orq	(%rcx), %rax
	andq	%r12, %rax
	leaq	-130(%rax), %rcx
	cmpq	$2, %rcx
	jb	LBB0_9
## %bb.5:
	cmpq	$129, %rax
	je	LBB0_8
## %bb.6:
	cmpq	$128, %rax
	jne	LBB0_10
## %bb.7:
	movq	(%r14), %rax
	cmpl	$1, (%rax)
	sbbq	$0, %rbx
	jmp	LBB0_10
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	adcq	$-1, %rbx
	jmp	LBB0_10
LBB0_8:
	decq	%rbx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DECON_CRFMID,8,3               ## @DECON_CRFMID
	.comm	_DECON_VIDCON1,8,3              ## @DECON_VIDCON1
	.comm	_VIDCON1_VSTATUS_MASK,8,3       ## @VIDCON1_VSTATUS_MASK
	.no_dead_strip	_decon_get_frame_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decon_get_frame_count
_decon_get_frame_count:                 ; @decon_get_frame_count
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x23, _DECON_CRFMID@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DECON_CRFMID@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	mov	x19, x0
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x24, _DECON_VIDCON1@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DECON_VIDCON1@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	cmp	x0, x19
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	mov	x19, x0
LBB0_2:
	cbz	x19, LBB0_10
; %bb.3:
Lloh4:
	adrp	x8, _VIDCON1_VSTATUS_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VIDCON1_VSTATUS_MASK@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	mov	w9, #131
	orr	x8, x8, x9
	and	x8, x8, x22
	sub	x9, x8, #130
	cmp	x9, #2
	b.lo	LBB0_7
; %bb.4:
	cmp	x8, #129
	b.eq	LBB0_9
; %bb.5:
	cmp	x8, #128
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w8, eq
	b	LBB0_8
LBB0_7:
	cmp	w21, #0
	cset	w8, ne
LBB0_8:
	sub	x19, x19, x8
	b	LBB0_10
LBB0_9:
	sub	x19, x19, #1
LBB0_10:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DECON_CRFMID,8,3               ; @DECON_CRFMID
	.comm	_DECON_VIDCON1,8,3              ; @DECON_VIDCON1
	.comm	_VIDCON1_VSTATUS_MASK,8,3       ; @VIDCON1_VSTATUS_MASK
	.no_dead_strip	_decon_get_frame_count
.subsections_via_symbols
