	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h264_fill_mbaff_ref_list
_h264_fill_mbaff_ref_list:              ## @h264_fill_mbaff_ref_list
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.1:
	movq	8(%rdi), %rdx
	xorl	%r10d, %r10d
	movq	_PICT_TOP_FIELD@GOTPCREL(%rip), %r8
	movq	_PICT_BOTTOM_FIELD@GOTPCREL(%rip), %r9
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r10
	movslq	%ecx, %rax
	cmpq	%rax, %r10
	jge	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, (%rdx,%r10,4)
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$256, %esi                      ## imm = 0x100
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rdi), %rdx
	movq	(%rdx,%r10,8), %rdx
	movups	-256(%rdx,%rsi), %xmm0
	movups	-240(%rdx,%rsi), %xmm1
	movups	%xmm0, (%rdx,%rsi,2)
	movups	%xmm1, 16(%rdx,%rsi,2)
	movq	(%rdx,%rsi,2), %rax
	shll	(%rax)
	shll	4(%rax)
	shll	8(%rax)
	movl	(%r8), %eax
	movl	%eax, 20(%rdx,%rsi,2)
	movq	8(%rdx,%rsi,2), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdx,%rsi,2)
	movups	(%rdx,%rsi,2), %xmm0
	movups	%xmm0, 32(%rdx,%rsi,2)
	movups	16(%rdx,%rsi,2), %xmm0
	movups	%xmm0, 48(%rdx,%rsi,2)
	movq	-248(%rdx,%rsi), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	56(%rdx,%rsi,2), %rcx
	movl	(%rax), %ebx
	addl	%ebx, (%rcx)
	movl	8(%rax), %ebx
	addl	%ebx, 4(%rcx)
	movl	16(%rax), %eax
	addl	%eax, 8(%rcx)
	movl	(%r9), %eax
	movl	%eax, 52(%rdx,%rsi,2)
	movq	40(%rdx,%rsi,2), %rax
	movq	(%rax), %rax
	movl	4(%rax), %eax
	movl	%eax, 48(%rdx,%rsi,2)
	incq	%r11
	movq	8(%rdi), %rdx
	movslq	(%rdx,%r10,4), %rax
	addq	$32, %rsi
	cmpq	%rax, %r11
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdi), %ecx
	jmp	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PICT_TOP_FIELD,4,2             ## @PICT_TOP_FIELD
	.comm	_PICT_BOTTOM_FIELD,4,2          ## @PICT_BOTTOM_FIELD
	.no_dead_strip	_h264_fill_mbaff_ref_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h264_fill_mbaff_ref_list
_h264_fill_mbaff_ref_list:              ; @h264_fill_mbaff_ref_list
	.cfi_startproc
; %bb.0:
	ldr	w11, [x0]
	cmp	w11, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x8, #0
	ldr	x14, [x0, #8]
Lloh0:
	adrp	x9, _PICT_TOP_FIELD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PICT_TOP_FIELD@GOTPAGEOFF]
Lloh2:
	adrp	x10, _PICT_BOTTOM_FIELD@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PICT_BOTTOM_FIELD@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	cmp	x8, w11, sxtw
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w12, [x14, x8, lsl #2]
	cmp	w12, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	mov	x12, #0
	mov	w13, #512
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x14, [x0, #16]
	ldr	x14, [x14, x8, lsl #3]
	add	x15, x14, x13
	add	x14, x14, x11
	ldp	q1, q0, [x14]
	stp	q1, q0, [x15]
	ldp	x16, x17, [x15]
	ldr	d0, [x16]
	shl.2s	v0, v0, #1
	ldr	w1, [x16, #8]
	lsl	w1, w1, #1
	str	w1, [x16, #8]
	str	d0, [x16]
	ldr	w16, [x9]
	str	w16, [x15, #20]
	ldr	x16, [x17]
	ldr	w16, [x16]
	str	w16, [x15, #16]
	ldp	q0, q1, [x15]
	stp	q0, q1, [x15, #32]
	ldr	x14, [x14, #8]
	ldr	x14, [x14, #8]
	ldr	x14, [x14]
	ldr	x16, [x15, #56]
	ldr	q0, [x14]
	ldr	d1, [x16]
	xtn.2s	v0, v0
	add.2s	v0, v1, v0
	str	d0, [x16]
	ldr	w14, [x14, #16]
	ldr	w17, [x16, #8]
	add	w14, w17, w14
	str	w14, [x16, #8]
	ldr	w14, [x10]
	str	w14, [x15, #52]
	ldr	x14, [x15, #40]
	ldr	x14, [x14]
	ldr	w14, [x14, #4]
	add	x12, x12, #1
	str	w14, [x15, #48]
	ldr	x14, [x0, #8]
	ldrsw	x15, [x14, x8, lsl #2]
	add	x13, x13, #64
	add	x11, x11, #32
	cmp	x12, x15
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x0]
	b	LBB0_2
LBB0_7:
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PICT_TOP_FIELD,4,2             ; @PICT_TOP_FIELD
	.comm	_PICT_BOTTOM_FIELD,4,2          ; @PICT_BOTTOM_FIELD
	.no_dead_strip	_h264_fill_mbaff_ref_list
.subsections_via_symbols
