	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function format_init
_format_init:                           ## @format_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, %r13d
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movsd	20(%rsi), %xmm0                 ## xmm0 = mem[0],zero
	movsd	16(%rdx), %xmm1                 ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, 32(%rdi)
	movq	8(%rdx), %rax
	movl	(%rax), %edx
	movl	%edx, (%rdi)
	movl	(%r15), %eax
	movq	_AV_PIX_FMT_FLAG_FLOAT@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	_ZIMG_PIXEL_FLOAT@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_2:
	cmpl	$9, %edx
	jl	LBB0_3
## %bb.4:
	movq	_ZIMG_PIXEL_WORD@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_3:
	movq	_ZIMG_PIXEL_BYTE@GOTPCREL(%rip), %rdx
LBB0_5:
	movl	(%rdx), %edx
	movl	%edx, 28(%rbx)
	movq	_AV_PIX_FMT_FLAG_RGB@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:
	movq	_ZIMG_COLOR_YUV@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_ZIMG_COLOR_RGB@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	je	LBB0_10
## %bb.9:
	movq	_ZIMG_MATRIX_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_12
LBB0_10:
	cmpl	$-1, %ecx
	jne	LBB0_12
## %bb.11:
	movl	16(%r14), %edi
	callq	_convert_matrix
	movq	_AV_PIX_FMT_FLAG_RGB@GOTPCREL(%rip), %rdx
	movl	%eax, %ecx
LBB0_12:
	movl	%ecx, 4(%rbx)
	cmpl	$-1, %r13d
	jne	LBB0_14
## %bb.13:
	movl	12(%r14), %edi
	movq	%rdx, %r13
	callq	_convert_primaries
	movq	%r13, %rdx
	movl	%eax, %r13d
LBB0_14:
	movl	%r13d, 8(%rbx)
	cmpl	$-1, %r12d
	jne	LBB0_16
## %bb.15:
	movl	8(%r14), %edi
	movq	%rdx, %r12
	callq	_convert_trc
	movq	%r12, %rdx
	movl	%eax, %r12d
LBB0_16:
	movl	24(%rbp), %r13d
	movl	%r12d, 12(%rbx)
	movl	(%rdx), %eax
	testl	%eax, (%r15)
	je	LBB0_18
## %bb.17:
	movq	_ZIMG_RANGE_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_20
LBB0_18:
	movl	16(%rbp), %eax
	cmpl	$-1, %eax
	jne	LBB0_20
## %bb.19:
	movl	4(%r14), %edi
	callq	_convert_range
LBB0_20:
	movl	%eax, 16(%rbx)
	cmpl	$-1, %r13d
	jne	LBB0_22
## %bb.21:
	movl	(%r14), %edi
	callq	_convert_chroma_location
	movl	%eax, %r13d
LBB0_22:
	movl	%r13d, 20(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_FLAG_FLOAT,4,2      ## @AV_PIX_FMT_FLAG_FLOAT
	.comm	_ZIMG_PIXEL_FLOAT,4,2           ## @ZIMG_PIXEL_FLOAT
	.comm	_ZIMG_PIXEL_WORD,4,2            ## @ZIMG_PIXEL_WORD
	.comm	_ZIMG_PIXEL_BYTE,4,2            ## @ZIMG_PIXEL_BYTE
	.comm	_AV_PIX_FMT_FLAG_RGB,4,2        ## @AV_PIX_FMT_FLAG_RGB
	.comm	_ZIMG_COLOR_RGB,4,2             ## @ZIMG_COLOR_RGB
	.comm	_ZIMG_COLOR_YUV,4,2             ## @ZIMG_COLOR_YUV
	.comm	_ZIMG_MATRIX_RGB,4,2            ## @ZIMG_MATRIX_RGB
	.comm	_ZIMG_RANGE_FULL,4,2            ## @ZIMG_RANGE_FULL
	.no_dead_strip	_format_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_init
_format_init:                           ; @format_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x7
	mov	x22, x6
	mov	x24, x5
	mov	x25, x4
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldur	d0, [x1, #20]
	ldr	d1, [x2, #16]
	mov.d	v1[1], v0[0]
	str	q1, [x0, #32]
	ldr	x8, [x2, #8]
	ldr	w9, [x8]
	str	w9, [x0]
	ldr	w8, [x2]
Lloh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x21, #16]
	bl	_convert_matrix
	mov	x3, x0
LBB0_7:
	str	w3, [x20, #4]
	cmn	w25, #1
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x21, #12]
	bl	_convert_primaries
	mov	x25, x0
LBB0_9:
	str	w25, [x20, #8]
	cmn	w24, #1
	b.ne	LBB0_11
; %bb.10:
	ldr	w0, [x21, #8]
	bl	_convert_trc
	mov	x24, x0
LBB0_11:
	str	w24, [x20, #12]
	ldr	w8, [x23]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
Lloh18:
	adrp	x8, _ZIMG_RANGE_FULL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ZIMG_RANGE_FULL@GOTPAGEOFF]
Lloh20:
	ldr	w22, [x8]
	b	LBB0_15
LBB0_13:
	cmn	w22, #1
	b.ne	LBB0_15
; %bb.14:
	ldr	w0, [x21, #4]
	bl	_convert_range
	mov	x22, x0
LBB0_15:
	str	w22, [x20, #16]
	cmn	w19, #1
	b.ne	LBB0_17
; %bb.16:
	ldr	w0, [x21]
	bl	_convert_chroma_location
	mov	x19, x0
LBB0_17:
	str	w19, [x20, #20]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_FLAG_FLOAT,4,2      ; @AV_PIX_FMT_FLAG_FLOAT
	.comm	_ZIMG_PIXEL_FLOAT,4,2           ; @ZIMG_PIXEL_FLOAT
	.comm	_ZIMG_PIXEL_WORD,4,2            ; @ZIMG_PIXEL_WORD
	.comm	_ZIMG_PIXEL_BYTE,4,2            ; @ZIMG_PIXEL_BYTE
	.comm	_AV_PIX_FMT_FLAG_RGB,4,2        ; @AV_PIX_FMT_FLAG_RGB
	.comm	_ZIMG_COLOR_RGB,4,2             ; @ZIMG_COLOR_RGB
	.comm	_ZIMG_COLOR_YUV,4,2             ; @ZIMG_COLOR_YUV
	.comm	_ZIMG_MATRIX_RGB,4,2            ; @ZIMG_MATRIX_RGB
	.comm	_ZIMG_RANGE_FULL,4,2            ; @ZIMG_RANGE_FULL
	.no_dead_strip	_format_init
.subsections_via_symbols
