	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_es_format_to_bitmapinfoheader ## -- Begin function vc_container_es_format_to_bitmapinfoheader
	.p2align	4, 0x90
_vc_container_es_format_to_bitmapinfoheader: ## @vc_container_es_format_to_bitmapinfoheader
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	32(%rdi), %edi
	callq	_codec_to_vfw_fourcc
	movq	%rax, %rcx
	movq	%rax, -40(%rbp)
	movq	8(%rbx), %rdx
	movq	_VC_CONTAINER_ES_TYPE_VIDEO@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	jne	LBB0_6
## %bb.1:
	movq	_VC_CONTAINER_CODEC_UNKNOWN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.2:
	movq	_BITMAPINFOHEADER_SIZE_MAX@GOTPCREL(%rip), %r12
	movslq	(%r12), %rdx
	movslq	(%rbx), %rcx
	addq	%rdx, %rcx
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	movq	%rcx, %rsi
	movl	%r15d, %ecx
	cmpq	%rsi, %rcx
	jl	LBB0_6
## %bb.5:
	movq	%rsi, %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%rcx, %r15
	callq	_memset
	movq	%r15, %rcx
	movzbl	%cl, %eax
	movl	%eax, (%r14)
	movzbl	%ch, %eax
	movl	%eax, 4(%r14)
	movl	%ecx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, 8(%r14)
	movl	%ecx, %eax
	shrl	$24, %eax
	movl	%eax, 12(%r14)
	movq	24(%rbx), %rax
	movzbl	(%rax), %ecx
	movl	%ecx, 16(%r14)
	movzbl	1(%rax), %ecx
	movl	%ecx, 20(%r14)
	movzbl	2(%rax), %ecx
	movl	%ecx, 24(%r14)
	movzbl	3(%rax), %ecx
	movl	%ecx, 28(%r14)
	movzbl	4(%rax), %ecx
	movl	%ecx, 32(%r14)
	movzbl	5(%rax), %ecx
	movl	%ecx, 36(%r14)
	movzbl	6(%rax), %ecx
	movl	%ecx, 40(%r14)
	movzbl	7(%rax), %eax
	movl	%eax, 44(%r14)
	leaq	64(%r14), %rdi
	leaq	-40(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movslq	(%r12), %rax
	leaq	(%r14,%rax,4), %rdi
	movq	16(%rbx), %rsi
	movl	(%rbx), %edx
	callq	_memcpy
	movl	%r15d, %eax
	jmp	LBB0_6
LBB0_3:
	movl	%ecx, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITMAPINFOHEADER_SIZE_MAX,4,2  ## @BITMAPINFOHEADER_SIZE_MAX
	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ## @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_VC_CONTAINER_CODEC_UNKNOWN,8,3 ## @VC_CONTAINER_CODEC_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vc_container_es_format_to_bitmapinfoheader
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_vc_container_es_format_to_bitmapinfoheader
	.p2align	2
_vc_container_es_format_to_bitmapinfoheader: ; @vc_container_es_format_to_bitmapinfoheader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #32]
	bl	_codec_to_vfw_fourcc
	str	x0, [sp, #8]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _VC_CONTAINER_CODEC_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VC_CONTAINER_CODEC_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x0, x10, #4, eq
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x23, _BITMAPINFOHEADER_SIZE_MAX@GOTPAGE
Lloh7:
	ldr	x23, [x23, _BITMAPINFOHEADER_SIZE_MAX@GOTPAGEOFF]
	ldrsw	x2, [x23]
	ldrsw	x8, [x19]
	add	x21, x8, x2
	cbz	x20, LBB0_5
; %bb.2:
	mov	w8, w22
	cmp	x8, x21
	b.ge	LBB0_4
LBB0_3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	w1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memset
	and	w8, w21, #0xff
	str	w8, [x20]
	dup.2s	v0, w21
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [x20, #4]
	lsr	w8, w21, #24
	str	w8, [x20, #12]
	ldr	x8, [x19, #24]
	ldrb	w9, [x8]
	str	w9, [x20, #16]
	ldrb	w9, [x8, #1]
	str	w9, [x20, #20]
	ldrb	w9, [x8, #2]
	str	w9, [x20, #24]
	ldrb	w9, [x8, #3]
	str	w9, [x20, #28]
	ldrb	w9, [x8, #4]
	str	w9, [x20, #32]
	ldrb	w9, [x8, #5]
	str	w9, [x20, #36]
	ldrb	w9, [x8, #6]
	str	w9, [x20, #40]
	ldrb	w8, [x8, #7]
	str	w8, [x20, #44]
	add	x0, x20, #64
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
	ldrsw	x8, [x23]
	add	x0, x20, x8, lsl #2
	ldr	x1, [x19, #16]
	ldr	w2, [x19]
	bl	_memcpy
LBB0_5:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BITMAPINFOHEADER_SIZE_MAX,4,2  ; @BITMAPINFOHEADER_SIZE_MAX
	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ; @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_VC_CONTAINER_CODEC_UNKNOWN,8,3 ; @VC_CONTAINER_CODEC_UNKNOWN
.subsections_via_symbols
