	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function transfer_data_alloc
_transfer_data_alloc:                   ## @transfer_data_alloc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	16(%rsi), %rax
	movq	(%rax), %r12
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	(%r14), %rax
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:
	movq	%rax, (%rbx)
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movq	16(%r15), %rdi
	movq	_AV_HWFRAME_TRANSFER_DIRECTION_FROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_av_hwframe_transfer_get_formats
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movq	-56(%rbp), %rax
	movl	(%rax), %eax
	movq	%rax, (%rbx)
	leaq	-56(%rbp), %rdi
	callq	_av_freep
LBB0_6:
	movl	4(%r12), %eax
	movl	%eax, 12(%rbx)
	movl	(%r12), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_av_frame_get_buffer
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_av_hwframe_transfer_data
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:
	movl	12(%r15), %eax
	movl	%eax, 12(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_av_frame_move_ref
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %r13d
LBB0_11:
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_HWFRAME_TRANSFER_DIRECTION_FROM,4,2 ## @AV_HWFRAME_TRANSFER_DIRECTION_FROM
	.no_dead_strip	_transfer_data_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function transfer_data_alloc
_transfer_data_alloc:                   ; @transfer_data_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #16]
	ldr	x24, [x8]
	bl	_av_frame_alloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_4
; %bb.2:
	str	x8, [x21]
	b	LBB0_6
LBB0_3:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_AVERROR
LBB0_4:
	ldr	x0, [x20, #16]
Lloh3:
	adrp	x8, _AV_HWFRAME_TRANSFER_DIRECTION_FROM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_HWFRAME_TRANSFER_DIRECTION_FROM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	w3, #0
	bl	_av_hwframe_transfer_get_formats
	tbnz	w0, #31, LBB0_9
; %bb.5:
	ldr	x8, [sp]
	ldr	w8, [x8]
	str	x8, [x21]
	mov	x0, sp
	bl	_av_freep
LBB0_6:
	ldr	d0, [x24]
	str	d0, [x21, #8]
	mov	x0, x21
	mov	w1, #32
	bl	_av_frame_get_buffer
	tbnz	w0, #31, LBB0_9
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_av_hwframe_transfer_data
	mov	x23, x0
	tbnz	w0, #31, LBB0_10
; %bb.8:
	ldr	d0, [x20, #8]
	str	d0, [x21, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_av_frame_move_ref
	b	LBB0_10
LBB0_9:
	mov	x23, x0
LBB0_10:
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_HWFRAME_TRANSFER_DIRECTION_FROM,4,2 ; @AV_HWFRAME_TRANSFER_DIRECTION_FROM
	.no_dead_strip	_transfer_data_alloc
.subsections_via_symbols
