	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffp_set_frame_at_time          ## -- Begin function ffp_set_frame_at_time
	.p2align	4, 0x90
_ffp_set_frame_at_time:                 ## @ffp_set_frame_at_time
	.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	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	$4, %edi
	callq	_av_mallocz
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_12
LBB0_2:
	cmpq	%r13, %r12
	jl	LBB0_11
## %bb.3:
	movq	%r12, %rcx
	orq	%r13, %rcx
	js	LBB0_11
## %bb.4:
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.5:
	movq	%r14, %rdi
	callq	_av_strdup
	movq	(%rbx), %rcx
	movl	%eax, 32(%rcx)
	movq	%r13, 24(%rcx)
	movq	%r12, 16(%rcx)
	movl	%r15d, (%rcx)
	movl	%r15d, 4(%rcx)
	movq	_HD_IMAGE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, (%rax)
	jne	LBB0_7
## %bb.6:
	movabsq	$1546188227200, %rax            ## imm = 0x16800000280
	jmp	LBB0_10
LBB0_11:
	movl	$0, 4(%rax)
LBB0_12:
	movq	_FFP_MSG_GET_IMG_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$-1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ffp_notify_msg3                ## TAILCALL
LBB0_7:
	movq	_SD_IMAGE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_9
## %bb.8:
	movabsq	$773094113600, %rax             ## imm = 0xB400000140
	jmp	LBB0_10
LBB0_9:
	movabsq	$386547056800, %rax             ## imm = 0x5A000000A0
LBB0_10:
	movq	%rax, 8(%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FFP_MSG_GET_IMG_STATE,4,2      ## @FFP_MSG_GET_IMG_STATE
	.comm	_HD_IMAGE,4,2                   ## @HD_IMAGE
	.comm	_SD_IMAGE,4,2                   ## @SD_IMAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ffp_set_frame_at_time
lCPI0_0:
	.long	160                             ; 0xa0
	.long	90                              ; 0x5a
lCPI0_1:
	.long	320                             ; 0x140
	.long	180                             ; 0xb4
lCPI0_2:
	.long	640                             ; 0x280
	.long	360                             ; 0x168
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ffp_set_frame_at_time
	.p2align	2
_ffp_set_frame_at_time:                 ; @ffp_set_frame_at_time
	.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	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_2
; %bb.1:
	mov	w0, #4
	bl	_av_mallocz
	str	x0, [x20]
	cbz	x0, LBB0_10
LBB0_2:
	cmp	x22, x23
	b.lt	LBB0_7
; %bb.3:
	orr	x8, x22, x23
	tbnz	x8, #63, LBB0_7
; %bb.4:
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x0, x24
	bl	_av_strdup
	ldr	x8, [x20]
	str	w0, [x8, #32]
	stp	x22, x23, [x8, #16]
	stp	w21, w21, [x8]
Lloh0:
	adrp	x9, _HD_IMAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HD_IMAGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w19
	b.ne	LBB0_8
; %bb.6:
Lloh3:
	adrp	x9, lCPI0_2@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_2@PAGEOFF]
	b	LBB0_13
LBB0_7:
Lloh5:
	adrp	x8, _FFP_MSG_GET_IMG_STATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FFP_MSG_GET_IMG_STATE@GOTPAGEOFF]
	str	wzr, [x0, #4]
	b	LBB0_11
LBB0_8:
Lloh7:
	adrp	x9, _SD_IMAGE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SD_IMAGE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w9, w19
	b.ne	LBB0_12
; %bb.9:
Lloh10:
	adrp	x9, lCPI0_1@PAGE
Lloh11:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh12:
	adrp	x8, _FFP_MSG_GET_IMG_STATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FFP_MSG_GET_IMG_STATE@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #-1
	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
	b	_ffp_notify_msg3
LBB0_12:
Lloh14:
	adrp	x9, lCPI0_0@PAGE
Lloh15:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
LBB0_13:
	str	d0, [x8, #8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdr	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_FFP_MSG_GET_IMG_STATE,4,2      ; @FFP_MSG_GET_IMG_STATE
	.comm	_HD_IMAGE,4,2                   ; @HD_IMAGE
	.comm	_SD_IMAGE,4,2                   ; @SD_IMAGE
.subsections_via_symbols
