	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function match_framerate
_match_framerate:                       ## @match_framerate
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movl	12(%r15), %edi
	callq	_av_q2d
	movl	%eax, %r12d
	movl	8(%r15), %edi
	movq	_ACAMERA_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ACameraMetadata_getConstEntry
	movl	-48(%rbp), %r8d
	testl	%r8d, %r8d
	jle	LBB0_12
## %bb.1:
	movl	$-1, %eax
	movq	-40(%rbp), %rdx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	cmpq	%rsi, %r8
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	4(%rdx,%rsi,8), %r12d
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdx,%rsi,8), %edi
	cmpl	%r12d, %edi
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rax,%rax), %ebx
	movslq	%ebx, %rcx
	movl	%esi, %ebx
	cmpl	(%rdx,%rcx,4), %edi
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %eax
	jmp	LBB0_9
LBB0_10:
	testl	%eax, %eax
	js	LBB0_12
## %bb.11:
	movq	-40(%rbp), %rdx
	leal	(%rax,%rax), %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %r8d
	movq	(%r15), %rcx
	movl	%r8d, (%rcx)
	addl	%eax, %eax
	incl	%eax
	cltq
	leaq	(%rdx,%rax,4), %rax
	jmp	LBB0_13
LBB0_12:
	movq	-40(%rbp), %rax
	movl	(%rax), %r8d
	movq	(%r15), %rcx
	movl	%r8d, (%rcx)
	addq	$4, %rax
LBB0_13:
	movl	(%rax), %r9d
	movl	%r9d, 4(%rcx)
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_av_log
	jmp	LBB0_14
LBB0_15:
	movq	(%r15), %rax
	movl	%r12d, (%rax)
	movl	%r12d, 4(%rax)
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACAMERA_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES,4,2 ## @ACAMERA_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requested framerate %d not available, falling back to min: %d and max: %d fps\n"

	.no_dead_strip	_match_framerate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function match_framerate
_match_framerate:                       ; @match_framerate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0]
	ldr	w0, [x21, #12]
	bl	_av_q2d
	mov	x20, x0
	ldr	w0, [x21, #8]
Lloh0:
	adrp	x8, _ACAMERA_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACAMERA_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ACameraMetadata_getConstEntry
	ldr	w8, [sp]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x10, #0
	ldr	x11, [sp, #8]
	add	x12, x11, #4
	mov	w9, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	w14, w9, #1
	ldr	w14, [x11, w14, sxtw #2]
	cmp	w13, w14
	csel	w9, w10, w9, gt
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #1
	add	x12, x12, #8
	cmp	x8, x10
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	cmp	w20, w13
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w13, [x12, #-4]
	cmp	w13, w20
	b.eq	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w9, #31, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, x10
	b	LBB0_3
LBB0_8:
	tbnz	w9, #31, LBB0_10
; %bb.9:
	ldr	x10, [sp, #8]
	lsl	w8, w9, #1
	ldr	w4, [x10, w8, sxtw #2]
	ldr	x8, [x21]
	str	w4, [x8]
	add	x9, x10, w9, sxtw #3
	add	x9, x9, #4
	b	LBB0_11
LBB0_10:
	ldr	x9, [sp, #8]
	ldr	w4, [x9], #4
	ldr	x8, [x21]
	str	w4, [x8]
LBB0_11:
	ldr	w5, [x9]
	str	w5, [x8, #4]
Lloh3:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_av_log
	b	LBB0_13
LBB0_12:
	ldr	x8, [x21]
	stp	w20, w20, [x8]
LBB0_13:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ACAMERA_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES,4,2 ; @ACAMERA_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requested framerate %d not available, falling back to min: %d and max: %d fps\n"

	.no_dead_strip	_match_framerate
.subsections_via_symbols
