	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aiff_write_packet
_aiff_write_packet:                     ## @aiff_write_packet
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	(%rsi), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	callq	_avio_write
	jmp	LBB0_6
LBB0_2:
	movq	(%rbx), %rax
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %rdx
	movq	(%rdx), %rdx
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_6
## %bb.3:
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %eax
LBB0_5:
	testl	%eax, %eax
	jle	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	12(%r14), %rdi
	addq	$8, %r14
	movq	_FF_PACKETLIST_FLAG_REF_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_packet_list_put             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got more than one picture in stream %d, ignoring.\n"

	.comm	_FF_PACKETLIST_FLAG_REF_PACKET,4,2 ## @FF_PACKETLIST_FLAG_REF_PACKET
	.no_dead_strip	_aiff_write_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aiff_write_packet
_aiff_write_packet:                     ; @aiff_write_packet
	.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, x1
	mov	x20, x0
	ldr	x21, [x0, #16]
	ldr	x3, [x1]
	ldr	x8, [x21]
	cmp	x3, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x20, #8]
	ldp	w2, w1, [x19, #8]
	bl	_avio_write
	b	LBB0_6
LBB0_2:
	ldr	x8, [x20]
	ldr	x8, [x8, x3, lsl #3]
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.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, x20
	bl	_av_log
	ldr	x8, [x20]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w8, [x8]
LBB0_5:
	cmp	w8, #0
	b.le	LBB0_7
LBB0_6:
	mov	w0, #0
	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
LBB0_7:
	add	x0, x21, #12
Lloh8:
	adrp	x8, _FF_PACKETLIST_FLAG_REF_PACKET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FF_PACKETLIST_FLAG_REF_PACKET@GOTPAGEOFF]
	add	x1, x21, #8
Lloh10:
	ldr	w3, [x8]
	mov	x2, x19
	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
	b	_ff_packet_list_put
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got more than one picture in stream %d, ignoring.\n"

	.comm	_FF_PACKETLIST_FLAG_REF_PACKET,4,2 ; @FF_PACKETLIST_FLAG_REF_PACKET
	.no_dead_strip	_aiff_write_packet
.subsections_via_symbols
