	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffmpeg_audio_resolve_sample_rate
_ffmpeg_audio_resolve_sample_rate:      ## @ffmpeg_audio_resolve_sample_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %r9
	testq	%r9, %r9
	je	LBB0_11
## %bb.1:
	cmpl	$0, 8(%rdi)
	je	LBB0_2
LBB0_11:
	popq	%rbp
	retq
LBB0_2:
	movl	(%r9), %esi
	movl	4(%r9), %ecx
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.3:
	movl	(%rdi), %r8d
	movl	%esi, %r10d
	subl	%r8d, %r10d
	movl	$2, %edx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %esi
	movl	%eax, %r10d
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, %eax
	movl	(%r9,%rax,4), %ecx
	incl	%edx
	testl	%ecx, %ecx
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	subl	%r8d, %eax
	testl	%r10d, %r10d
	js	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r10d, %eax
	jl	LBB0_8
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r10d, %eax
	jg	LBB0_8
	jmp	LBB0_9
LBB0_10:
	movl	%esi, 8(%rdi)
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_RARCH_LOG                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[FFmpeg]: Using output sampling rate: %d.\n"

	.no_dead_strip	_ffmpeg_audio_resolve_sample_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffmpeg_audio_resolve_sample_rate
_ffmpeg_audio_resolve_sample_rate:      ; @ffmpeg_audio_resolve_sample_rate
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w9, [x0, #8]
	cbz	w9, LBB0_3
LBB0_2:
	ret
LBB0_3:
	ldp	w1, w12, [x8]
	cbz	w12, LBB0_11
; %bb.4:
	ldr	w9, [x0]
	sub	w11, w1, w9
	mov	w10, #2
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x12
	mov	x11, x13
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w12, [x8, w10, uxtw #2]
	add	w10, w10, #1
	cbz	w12, LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w13, w12, w9
	tbnz	w11, #31, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w13, #31, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w13, w11
	b.lt	LBB0_5
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w13, w11
	b.gt	LBB0_5
	b	LBB0_6
LBB0_11:
	str	w1, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	_RARCH_LOG
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[FFmpeg]: Using output sampling rate: %d.\n"

	.no_dead_strip	_ffmpeg_audio_resolve_sample_rate
.subsections_via_symbols
