	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_bar_yuv
_draw_bar_yuv:                          ## @draw_bar_yuv
	.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
	testl	%r8d, %r8d
	jle	LBB0_21
## %bb.1:
	movl	%r8d, %r14d
	movl	(%rdi), %r15d
	movl	16(%rdi), %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	$2, %r13d
	cmpl	%r14d, %r13d
	jge	LBB0_21
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	movq	_AV_PIX_FMT_YUV444P@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	_DRAW_BAR_WITH_CHROMA
	leal	1(%rbx), %edi
	callq	_DRAW_BAR_WITH_CHROMA
	addl	$2, %ebx
	cmpl	%r15d, %ebx
	jl	LBB0_8
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	_DRAW_BAR_WITH_CHROMA
	leal	1(%rbx), %edi
	callq	_DRAW_BAR_WITHOUT_CHROMA
	addl	$2, %ebx
	cmpl	%r15d, %ebx
	jl	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_AV_PIX_FMT_YUV444P@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	_DRAW_BAR_WITH_CHROMA
	leal	1(%rbx), %edi
	callq	_DRAW_BAR_WITH_CHROMA
	addl	$2, %ebx
	cmpl	%r15d, %ebx
	jl	LBB0_12
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_AV_PIX_FMT_YUV422P@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	_DRAW_BAR_WITH_CHROMA
	leal	1(%rbx), %edi
	callq	_DRAW_BAR_WITHOUT_CHROMA
	addl	$2, %ebx
	cmpl	%r15d, %ebx
	jl	LBB0_19
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	_DRAW_BAR_WITHOUT_CHROMA
	leal	1(%rbx), %edi
	callq	_DRAW_BAR_WITHOUT_CHROMA
	addl	$2, %ebx
	cmpl	%r15d, %ebx
	jl	LBB0_16
	jmp	LBB0_20
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_YUV420P,4,2         ## @AV_PIX_FMT_YUV420P
	.comm	_AV_PIX_FMT_YUV444P,4,2         ## @AV_PIX_FMT_YUV444P
	.comm	_AV_PIX_FMT_YUV422P,4,2         ## @AV_PIX_FMT_YUV422P
	.no_dead_strip	_draw_bar_yuv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_bar_yuv
_draw_bar_yuv:                          ; @draw_bar_yuv
	.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
	cmp	w4, #1
	b.lt	LBB0_21
; %bb.1:
	mov	x19, x4
	mov	w21, #0
	ldr	w22, [x0]
	ldr	w23, [x0, #16]
Lloh0:
	adrp	x24, _AV_PIX_FMT_YUV444P@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AV_PIX_FMT_YUV444P@GOTPAGEOFF]
Lloh2:
	adrp	x25, _AV_PIX_FMT_YUV422P@GOTPAGE
Lloh3:
	ldr	x25, [x25, _AV_PIX_FMT_YUV422P@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #2
	cmp	w21, w19
	b.ge	LBB0_21
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w20, #0
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_DRAW_BAR_WITH_CHROMA
	add	w0, w20, #1
	bl	_DRAW_BAR_WITH_CHROMA
	add	w20, w20, #2
	cmp	w20, w22
	b.lt	LBB0_6
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w20, #0
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_DRAW_BAR_WITH_CHROMA
	add	w0, w20, #1
	bl	_DRAW_BAR_WITHOUT_CHROMA
	add	w20, w20, #2
	cmp	w20, w22
	b.lt	LBB0_9
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w20, #0
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_DRAW_BAR_WITH_CHROMA
	add	w0, w20, #1
	bl	_DRAW_BAR_WITH_CHROMA
	add	w20, w20, #2
	cmp	w20, w22
	b.lt	LBB0_13
	b	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	cmp	w23, w8
	b.ne	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w20, #0
LBB0_17:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_DRAW_BAR_WITH_CHROMA
	add	w0, w20, #1
	bl	_DRAW_BAR_WITHOUT_CHROMA
	add	w20, w20, #2
	cmp	w20, w22
	b.lt	LBB0_17
	b	LBB0_2
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w20, #0
LBB0_20:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_DRAW_BAR_WITHOUT_CHROMA
	add	w0, w20, #1
	bl	_DRAW_BAR_WITHOUT_CHROMA
	add	w20, w20, #2
	cmp	w20, w22
	b.lt	LBB0_20
	b	LBB0_2
LBB0_21:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_YUV420P,4,2         ; @AV_PIX_FMT_YUV420P
	.comm	_AV_PIX_FMT_YUV444P,4,2         ; @AV_PIX_FMT_YUV444P
	.comm	_AV_PIX_FMT_YUV422P,4,2         ; @AV_PIX_FMT_YUV422P
	.no_dead_strip	_draw_bar_yuv
.subsections_via_symbols
