	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coda_approximate_timeperframe
_coda_approximate_timeperframe:         ## @coda_approximate_timeperframe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %r14d
	movl	$65535, %ecx                    ## imm = 0xFFFF
	movl	$1, %esi
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.1:
	movl	12(%rbx), %r15d
	movl	%r15d, %eax
	cltd
	idivl	%r14d
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jg	LBB0_7
## %bb.2:
	movl	$1, %ecx
	movl	$65536, %esi                    ## imm = 0x10000
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.3:
	movl	%r14d, %eax
	cltd
	idivl	%r15d
	cmpl	$65536, %eax                    ## imm = 0x10000
	jg	LBB0_7
## %bb.4:
	movq	(%rbx), %r12
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_gcd
	cmpl	$2, %eax
	jb	LBB0_6
## %bb.5:
	movl	%eax, %ecx
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r14d
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r15d
LBB0_6:
	cmpl	$65537, %r14d                   ## imm = 0x10001
	setl	%al
	cmpl	$65536, %r15d                   ## imm = 0x10000
	setl	%dl
	xorl	%ecx, %ecx
	testb	%dl, %al
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	cmovneq	%r12, %rax
	cmovel	%ecx, %r14d
	cmovnel	%r15d, %ecx
	movq	%rax, (%rbx)
	movl	%r14d, %esi
LBB0_7:
	movl	%esi, 8(%rbx)
	movl	%ecx, 12(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_coda_approximate_timeperframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coda_approximate_timeperframe
_coda_approximate_timeperframe:         ; @coda_approximate_timeperframe
	.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	x19, x0
	ldr	w20, [x0, #8]
	cbz	w20, LBB0_2
; %bb.1:
	ldr	w21, [x19, #12]
	sdiv	w8, w21, w20
	cmp	w8, #16, lsl #12                ; =65536
	b.lt	LBB0_3
LBB0_2:
	mov	w8, #65535
	mov	w9, #1
	b	LBB0_9
LBB0_3:
	cbz	w21, LBB0_5
; %bb.4:
	sdiv	w8, w20, w21
	cmp	w8, #16, lsl #12                ; =65536
	b.le	LBB0_6
LBB0_5:
	mov	w8, #1
	mov	w9, #65536
	b	LBB0_9
LBB0_6:
	ldr	x22, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_gcd
	cmp	w0, #2
	b.lo	LBB0_8
; %bb.7:
	udiv	w20, w20, w0
	udiv	w21, w21, w0
LBB0_8:
	cmp	w20, #16, lsl #12               ; =65536
	cset	w8, le
	cmp	w21, #16, lsl #12               ; =65536
	cset	w9, lt
	tst	w8, w9
	mov	x8, #4294967296
	csel	x10, x22, x8, ne
	csel	w9, w20, wzr, ne
	csel	w8, w21, wzr, ne
	str	x10, [x19]
LBB0_9:
	stp	w9, w8, [x19, #8]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_coda_approximate_timeperframe
.subsections_via_symbols
