	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_draw_horiz_band        ## -- Begin function ff_h264_draw_horiz_band
	.p2align	4, 0x90
_ff_h264_draw_horiz_band:               ## @ff_h264_draw_horiz_band
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %r13
	movl	24(%r13), %edi
	callq	_av_pix_fmt_desc_get
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rbx
	movq	_PICT_FRAME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	cmpq	%r12, %rbx
	setne	%cl
	shll	%cl, %r14d
	shll	%cl, %r15d
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	16(%r13), %rsi
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movslq	%r15d, %rax
	subq	%rax, %rsi
	movl	%r14d, %edi
	callq	_FFMIN
	movl	%eax, %ecx
	cmpq	%r12, %rbx
	je	LBB0_3
## %bb.1:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.2:
	movq	_SLICE_FLAG_ALLOW_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_7
LBB0_3:
	cmpq	$0, 8(%r13)
	je	LBB0_7
## %bb.4:
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsp, %r12
	movq	_AV_NUM_DATA_POINTERS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	imull	%ebx, %edx
	movl	%edx, (%r15)
	imull	4(%rax), %esi
	movl	%esi, 8(%r15)
	movl	%esi, 4(%r15)
	movl	(%r14), %esi
	cmpl	$4, %esi
	jl	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	addq	$12, %rdi
	addl	$-3, %esi
	shlq	$2, %rsi
	callq	___bzero
LBB0_6:
	xorl	%eax, %eax
	callq	_emms_c
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r8
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	%ebx, %ecx
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	*8(%r13)
	movq	%r12, %rsp
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PICT_FRAME,8,3                 ## @PICT_FRAME
	.comm	_SLICE_FLAG_ALLOW_FIELD,4,2     ## @SLICE_FLAG_ALLOW_FIELD
	.comm	_AV_NUM_DATA_POINTERS,4,2       ## @AV_NUM_DATA_POINTERS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_h264_draw_horiz_band        ; -- Begin function ff_h264_draw_horiz_band
	.p2align	2
_ff_h264_draw_horiz_band:               ; @ff_h264_draw_horiz_band
	.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
	sub	sp, sp, #16
	mov	x22, x3
	mov	x23, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldp	x21, x20, [x0, #16]
	ldr	w0, [x20, #24]
	bl	_av_pix_fmt_desc_get
	ldr	w25, [x0]
	ldr	x24, [x19]
Lloh3:
	adrp	x8, _PICT_FRAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PICT_FRAME@GOTPAGEOFF]
Lloh5:
	ldr	x26, [x8]
	cmp	x24, x26
	cset	w8, ne
	lsl	w0, w22, w8
	lsl	w22, w23, w8
	ldr	x8, [x20, #16]
	sub	x1, x8, w22, sxtw
	bl	_FFMIN
	mov	x23, x0
	cmp	x24, x26
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _SLICE_FLAG_ALLOW_FIELD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SLICE_FLAG_ALLOW_FIELD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.4:
	mov	x26, sp
Lloh9:
	adrp	x12, _AV_NUM_DATA_POINTERS@GOTPAGE
Lloh10:
	ldr	x12, [x12, _AV_NUM_DATA_POINTERS@GOTPAGEOFF]
	ldr	w8, [x12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldr	x8, [x21]
	ldp	w9, w8, [x8]
	mul	w9, w9, w22
	asr	w10, w22, w25
	mul	w8, w8, w10
	stp	w8, w8, [x24, #4]
	str	w9, [x24]
	ldr	w8, [x12]
	cmp	w8, #4
	b.lt	LBB0_6
; %bb.5:
	add	x0, x24, #12
	sub	w8, w8, #3
	lsl	x1, x8, #2
	bl	_bzero
LBB0_6:
	bl	_emms_c
	ldr	x8, [x20, #8]
	ldr	x4, [x19]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	mov	x3, x22
	mov	x5, x23
	blr	x8
	mov	sp, x26
LBB0_7:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #64
	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
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PICT_FRAME,8,3                 ; @PICT_FRAME
	.comm	_SLICE_FLAG_ALLOW_FIELD,4,2     ; @SLICE_FLAG_ALLOW_FIELD
	.comm	_AV_NUM_DATA_POINTERS,4,2       ; @AV_NUM_DATA_POINTERS
.subsections_via_symbols
