	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_image_format
_get_image_format:                      ## @get_image_format
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %r15
	leaq	-40(%rbp), %rdx
	movq	%rsi, %rdi
	movl	$1, %esi
	callq	_AImage_getPlanePixelStride
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_AImage_getPlaneData
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_AImage_getPlanePixelStride
	leaq	-56(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_AImage_getPlaneData
	movl	-40(%rbp), %ecx
	cmpl	-36(%rbp), %ecx
	jne	LBB0_1
## %bb.2:
	cmpl	$2, %ecx
	je	LBB0_6
## %bb.3:
	cmpl	$1, %ecx
	jne	LBB0_9
## %bb.4:
	movq	_AV_PIX_FMT_YUV420P@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_6:
	movq	-64(%rbp), %rax
	cmpq	-56(%rbp), %rax
	jae	LBB0_8
## %bb.7:
	movq	_AV_PIX_FMT_NV12@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_10
LBB0_8:
	movq	_AV_PIX_FMT_NV21@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	xorl	%eax, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pixel strides of U and V plane should have been the same.\n"

	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.comm	_AV_PIX_FMT_YUV420P,4,2         ## @AV_PIX_FMT_YUV420P
	.comm	_AV_PIX_FMT_NV12,4,2            ## @AV_PIX_FMT_NV12
	.comm	_AV_PIX_FMT_NV21,4,2            ## @AV_PIX_FMT_NV21
L_.str.1:                               ## @.str.1
	.asciz	"Unknown pixel stride %d of U and V plane, cannot determine camera image format.\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_get_image_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_image_format
_get_image_format:                      ; @get_image_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x21, [x0]
	add	x22, sp, #32
	add	x2, sp, #32
	mov	x0, x1
	mov	w1, #1
	bl	_AImage_getPlanePixelStride
	add	x23, sp, #16
	add	x24, sp, #8
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	mov	w1, #1
	bl	_AImage_getPlaneData
	add	x2, x22, #4
	mov	x0, x20
	mov	w1, #2
	bl	_AImage_getPlanePixelStride
	add	x2, x23, #8
	add	x3, x24, #4
	mov	x0, x20
	mov	w1, #2
	bl	_AImage_getPlaneData
	ldp	w8, w9, [sp, #32]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.1:
	cmp	w8, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.3:
	mov	w0, #0
Lloh3:
	adrp	x8, _AV_PIX_FMT_YUV420P@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PIX_FMT_YUV420P@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh10:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_5:
	ldp	x8, x9, [sp, #16]
	cmp	x8, x9
	b.hs	LBB0_8
; %bb.6:
	mov	w0, #0
Lloh13:
	adrp	x8, _AV_PIX_FMT_NV12@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_PIX_FMT_NV12@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh15:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh20:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_10
LBB0_8:
	mov	w0, #0
Lloh23:
	adrp	x8, _AV_PIX_FMT_NV21@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_PIX_FMT_NV21@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_10:
	ldr	x8, [sp, #40]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pixel strides of U and V plane should have been the same.\n"

	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.comm	_AV_PIX_FMT_YUV420P,4,2         ; @AV_PIX_FMT_YUV420P
	.comm	_AV_PIX_FMT_NV12,4,2            ; @AV_PIX_FMT_NV12
	.comm	_AV_PIX_FMT_NV21,4,2            ; @AV_PIX_FMT_NV21
l_.str.1:                               ; @.str.1
	.asciz	"Unknown pixel stride %d of U and V plane, cannot determine camera image format.\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.no_dead_strip	_get_image_format
.subsections_via_symbols
