	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dc1394_read_common
_dc1394_read_common:                    ## @dc1394_read_common
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movl	32(%r15), %edi
	callq	_av_get_pix_fmt
	movl	%eax, %r13d
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_1
## %bb.24:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movl	28(%r15), %edx
	leaq	-48(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	_av_parse_video_size
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	24(%r15), %esi
	leaq	-88(%rbp), %rdi
	callq	_av_parse_video_rate
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rsi
	movl	-80(%rbp), %edx
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_av_rescale
	movq	%rax, (%r15)
	movq	_dc1394_frame_formats@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movl	(%r14), %edi
	movb	$1, %cl
	testl	%edi, %edi
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	je	LBB0_13
## %bb.7:
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %esi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	12(%r14), %edi
	addq	$12, %r14
	testl	%edi, %edi
	je	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r13d, 4(%r14)
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%edx, %edi
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%esi, 8(%r14)
	jne	LBB0_12
## %bb.11:
	xorl	%ecx, %ecx
LBB0_13:
	movq	_dc1394_frame_rates@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r12
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_18
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, %rdx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%r12), %rdx
	addq	$8, %r12
	testq	%rdx, %rdx
	jne	LBB0_15
	jmp	LBB0_18
LBB0_2:
	movl	%eax, %r12d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%r15), %ecx
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_5
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %ecx
	leaq	L_.str.2(%rip), %rdx
LBB0_5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_23
LBB0_17:
	testb	%cl, %cl
	je	LBB0_19
LBB0_18:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %edi
	callq	_av_get_pix_fmt_name
	movl	-48(%rbp), %r8d
	movl	-44(%rbp), %r9d
	movq	(%r15), %rcx
	movq	%rcx, (%rsp)
	leaq	L_.str.3(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
LBB0_23:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_20
## %bb.22:
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	callq	_avpriv_set_pts_info
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r13), %rcx
	movl	%eax, 28(%rcx)
	movq	_AV_CODEC_ID_RAWVIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rcx)
	movl	(%r14), %eax
	movl	%eax, (%rcx)
	movl	8(%r14), %eax
	movl	%eax, 4(%rcx)
	movl	4(%r14), %eax
	movl	%eax, 8(%rcx)
	movups	-88(%rbp), %xmm0
	movups	%xmm0, 16(%r13)
	movq	$0, 16(%r15)
	movl	8(%r13), %eax
	movl	%eax, 12(%r15)
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movl	8(%r14), %edx
	movl	$1, %ecx
	callq	_av_image_get_buffer_size
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 8(%r15)
	leal	(,%rax,8), %edi
	movq	(%r12), %rsi
	movl	$1000, %edx                     ## imm = 0x3E8
	callq	_av_rescale
	movq	(%r13), %rcx
	movq	%rax, 16(%rcx)
	movq	%r12, (%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_23
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_NONE,4,2            ## @AV_PIX_FMT_NONE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No such pixel format: %s.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Could not parse video size '%s'.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Could not parse framerate '%s'.\n"

	.comm	_dc1394_frame_formats,8,3       ## @dc1394_frame_formats
	.comm	_dc1394_frame_rates,8,3         ## @dc1394_frame_rates
L_.str.3:                               ## @.str.3
	.asciz	"Can't find matching camera format for %s, %dx%d@%d:1000fps\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_RAWVIDEO,4,2       ## @AV_CODEC_ID_RAWVIDEO
	.no_dead_strip	_dc1394_read_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dc1394_read_common
_dc1394_read_common:                    ; @dc1394_read_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x24, [x0]
	ldr	w0, [x24, #32]
	bl	_av_get_pix_fmt
Lloh0:
	adrp	x8, _AV_PIX_FMT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w3, [x24, #32]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_av_log
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
LBB0_2:
	mov	x23, x0
	ldr	w2, [x24, #28]
	add	x0, sp, #44
	add	x1, sp, #40
	bl	_av_parse_video_size
	tbnz	w0, #31, LBB0_10
; %bb.3:
	ldr	w1, [x24, #24]
	add	x0, sp, #24
	bl	_av_parse_video_rate
	mov	x19, x0
	tbnz	w0, #31, LBB0_15
; %bb.4:
	ldr	x1, [sp, #24]
	ldr	w2, [sp, #32]
	mov	w0, #1000
	bl	_av_rescale
	str	x0, [x24]
Lloh11:
	adrp	x8, _dc1394_frame_formats@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dc1394_frame_formats@GOTPAGEOFF]
Lloh13:
	ldr	x25, [x8]
	ldr	w10, [x25]
	cbz	w10, LBB0_11
; %bb.5:
	ldp	w9, w8, [sp, #40]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x25, #12]!
	cbz	w10, LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x25, #4]
	cmp	w11, w23
	ccmp	w10, w8, #0, eq
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x25, #8]
	cmp	w10, w9
	b.ne	LBB0_6
; %bb.9:
	mov	w8, #0
	b	LBB0_12
LBB0_10:
	mov	x19, x0
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w3, [x24, #28]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_11:
	mov	w8, #1
LBB0_12:
Lloh19:
	adrp	x9, _dc1394_frame_rates@GOTPAGE
Lloh20:
	ldr	x9, [x9, _dc1394_frame_rates@GOTPAGEOFF]
Lloh21:
	ldr	x26, [x9]
	ldr	x9, [x26]
	cbz	x9, LBB0_18
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cmp	x9, x0
	b.eq	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x9, [x26, #8]!
	cbnz	x9, LBB0_13
	b	LBB0_18
LBB0_15:
Lloh22:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w3, [x24, #24]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_16:
	mov	x0, x22
	bl	_av_log
	b	LBB0_20
LBB0_17:
	cbz	w8, LBB0_21
LBB0_18:
Lloh27:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w19, [x8]
	mov	x0, x23
	bl	_av_get_pix_fmt_name
	mov	x3, x0
	ldr	x8, [x24]
	ldp	w10, w9, [sp, #40]
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x1, x19
	bl	_av_log
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
LBB0_20:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_21:
	mov	x0, x22
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_23
; %bb.22:
	mov	x22, x0
	mov	w1, #64
	mov	w2, #1
	mov	w3, #1000
	bl	_avpriv_set_pts_info
Lloh34:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	x9, [x22]
Lloh37:
	adrp	x10, _AV_CODEC_ID_RAWVIDEO@GOTPAGE
Lloh38:
	ldr	x10, [x10, _AV_CODEC_ID_RAWVIDEO@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #24]
	ldr	w8, [x25]
	str	w8, [x9]
	ldur	d0, [x25, #4]
	rev64.2s	v0, v0
	stur	d0, [x9, #4]
	ldur	q0, [sp, #24]
	str	q0, [x22, #16]
	str	xzr, [x24, #16]
	ldr	w8, [x22, #8]
	str	w8, [x24, #12]
	ldp	w1, w0, [x25]
	ldr	w2, [x25, #8]
	mov	w3, #1
	bl	_av_image_get_buffer_size
	str	w0, [x24, #8]
	lsl	w0, w0, #3
	ldr	x1, [x26]
	mov	w2, #1000
	bl	_av_rescale
	ldr	x8, [x22]
	str	x0, [x8, #16]
	str	x26, [x21]
	str	x25, [x20]
	b	LBB0_20
LBB0_23:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_NONE,4,2            ; @AV_PIX_FMT_NONE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No such pixel format: %s.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Could not parse video size '%s'.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Could not parse framerate '%s'.\n"

	.comm	_dc1394_frame_formats,8,3       ; @dc1394_frame_formats
	.comm	_dc1394_frame_rates,8,3         ; @dc1394_frame_rates
l_.str.3:                               ; @.str.3
	.asciz	"Can't find matching camera format for %s, %dx%d@%d:1000fps\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_RAWVIDEO,4,2       ; @AV_CODEC_ID_RAWVIDEO
	.no_dead_strip	_dc1394_read_common
.subsections_via_symbols
