	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_vpx_chroma_subsampling
_get_vpx_chroma_subsampling:            ## @get_vpx_chroma_subsampling
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	movl	%ebx, %edi
	callq	_av_pix_fmt_get_chroma_sub_sample
	testq	%rax, %rax
	je	LBB0_1
LBB0_12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_av_log
	movl	$-1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-32(%rbp), %eax
	movl	-28(%rbp), %ecx
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.2:
	cmpl	$1, %ecx
	jne	LBB0_7
## %bb.3:
	movq	_AVCHROMA_LOC_LEFT@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_4
## %bb.5:
	movq	_VPX_SUBSAMPLING_420_VERTICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_7:
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.8:
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.9:
	movq	_VPX_SUBSAMPLING_422@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_4:
	movq	_VPX_SUBSAMPLING_420_COLLOCATED_WITH_LUMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_10:
	orl	%ecx, %eax
	jne	LBB0_12
## %bb.11:
	movq	_VPX_SUBSAMPLING_444@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_AVCHROMA_LOC_LEFT,4,2          ## @AVCHROMA_LOC_LEFT
	.comm	_VPX_SUBSAMPLING_420_VERTICAL,4,2 ## @VPX_SUBSAMPLING_420_VERTICAL
	.comm	_VPX_SUBSAMPLING_420_COLLOCATED_WITH_LUMA,4,2 ## @VPX_SUBSAMPLING_420_COLLOCATED_WITH_LUMA
	.comm	_VPX_SUBSAMPLING_422,4,2        ## @VPX_SUBSAMPLING_422
	.comm	_VPX_SUBSAMPLING_444,4,2        ## @VPX_SUBSAMPLING_444
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported pixel format (%d)\n"

	.no_dead_strip	_get_vpx_chroma_subsampling
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_vpx_chroma_subsampling
_get_vpx_chroma_subsampling:            ; @get_vpx_chroma_subsampling
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_av_pix_fmt_get_chroma_sub_sample
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_av_log
	mov	w0, #-1
	b	LBB0_9
LBB0_2:
	ldp	w9, w8, [sp, #8]
	cmp	w8, #1
	ccmp	w9, #1, #0, eq
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #1
	ccmp	w9, #0, #0, eq
	b.eq	LBB0_7
; %bb.4:
	orr	w8, w8, w9
	cbnz	w8, LBB0_1
; %bb.5:
Lloh5:
	adrp	x8, _VPX_SUBSAMPLING_444@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VPX_SUBSAMPLING_444@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x8, _AVCHROMA_LOC_LEFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVCHROMA_LOC_LEFT@GOTPAGEOFF]
Lloh9:
	adrp	x9, _VPX_SUBSAMPLING_420_VERTICAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VPX_SUBSAMPLING_420_VERTICAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x10, _VPX_SUBSAMPLING_420_COLLOCATED_WITH_LUMA@GOTPAGE
Lloh13:
	ldr	x10, [x10, _VPX_SUBSAMPLING_420_COLLOCATED_WITH_LUMA@GOTPAGEOFF]
	cmp	w8, w21
	csel	x8, x9, x10, eq
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _VPX_SUBSAMPLING_422@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VPX_SUBSAMPLING_422@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AVCHROMA_LOC_LEFT,4,2          ; @AVCHROMA_LOC_LEFT
	.comm	_VPX_SUBSAMPLING_420_VERTICAL,4,2 ; @VPX_SUBSAMPLING_420_VERTICAL
	.comm	_VPX_SUBSAMPLING_420_COLLOCATED_WITH_LUMA,4,2 ; @VPX_SUBSAMPLING_420_COLLOCATED_WITH_LUMA
	.comm	_VPX_SUBSAMPLING_422,4,2        ; @VPX_SUBSAMPLING_422
	.comm	_VPX_SUBSAMPLING_444,4,2        ; @VPX_SUBSAMPLING_444
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported pixel format (%d)\n"

	.no_dead_strip	_get_vpx_chroma_subsampling
.subsections_via_symbols
