	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swr_convert_frame              ## -- Begin function swr_convert_frame
	.p2align	4, 0x90
_swr_convert_frame:                     ## @swr_convert_frame
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_swr_is_initialized
	movl	%eax, %r12d
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	callq	_config_changed
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_4
LBB0_2:
	callq	_swr_config_frame
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movq	%r13, %rdi
	callq	_swr_init
	testl	%eax, %eax
	js	LBB0_9
LBB0_4:
	testq	%r15, %r15
	je	LBB0_14
## %bb.5:
	movq	8(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.6:
	cmpl	$0, (%r15)
	jne	LBB0_14
## %bb.7:
	movq	%r15, %rdi
	callq	_available_samples
	movl	%eax, (%r15)
	jmp	LBB0_14
LBB0_9:
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	8(%r13), %rsi
	movq	%r13, %rdi
	callq	_swr_get_delay
	movl	%eax, %ecx
	addl	$3, %ecx
	movl	%ecx, (%r15)
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movl	(%r14), %eax
	imull	8(%r13), %eax
	cltd
	idivl	(%r13)
	addl	%ecx, %eax
	movl	%eax, (%r15)
LBB0_13:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_av_frame_get_buffer
	testl	%eax, %eax
	js	LBB0_15
LBB0_14:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_convert_frame                  ## TAILCALL
LBB0_15:
	movl	%eax, %ebx
	testl	%r12d, %r12d
	jne	LBB0_10
## %bb.16:
	movq	%r13, %rdi
	callq	_swr_close
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swr_convert_frame              ; -- Begin function swr_convert_frame
	.p2align	2
_swr_convert_frame:                     ; @swr_convert_frame
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_swr_is_initialized
	mov	x22, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_config_changed
	mov	x23, x0
	cbnz	w0, LBB0_9
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_swr_config_frame
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_swr_init
	tbnz	w0, #31, LBB0_8
LBB0_4:
	cbz	x21, LBB0_13
; %bb.5:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.6:
	ldr	w8, [x21]
	cbnz	w8, LBB0_13
; %bb.7:
	mov	x0, x21
	bl	_available_samples
	str	w0, [x21]
	b	LBB0_13
LBB0_8:
	mov	x23, x0
LBB0_9:
	mov	x0, x23
	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
LBB0_10:
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_swr_get_delay
	add	w8, w0, #3
	str	w8, [x21]
	cbz	x20, LBB0_12
; %bb.11:
	ldr	w9, [x20]
	ldr	w10, [x19, #8]
	mul	w9, w9, w10
	ldr	w10, [x19]
	sdiv	w9, w9, w10
	add	w8, w9, w8
	str	w8, [x21]
LBB0_12:
	mov	x0, x21
	mov	w1, #0
	bl	_av_frame_get_buffer
	tbnz	w0, #31, LBB0_14
LBB0_13:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	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	_convert_frame
LBB0_14:
	mov	x23, x0
	cbnz	w22, LBB0_9
; %bb.15:
	mov	x0, x19
	bl	_swr_close
	b	LBB0_9
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
