	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_get_padded_bits_per_pixel   ## -- Begin function av_get_padded_bits_per_pixel
	.p2align	4, 0x90
_av_get_padded_bits_per_pixel:          ## @av_get_padded_bits_per_pixel
	.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	4(%rdi), %edx
	addl	(%rdi), %edx
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -32(%rbp)
	movl	8(%rdi), %r9d
	testl	%r9d, %r9d
	jle	LBB0_1
## %bb.2:
	movq	16(%rdi), %r8
	xorl	%r10d, %r10d
	cmpl	$1, %r9d
	je	LBB0_6
## %bb.3:
	movl	%r9d, %r11d
	andl	$-2, %r11d
	leaq	24(%r8), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %eax
	movl	%edx, %ecx
	cmovel	%r10d, %ecx
	movl	-16(%rsi), %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movq	-24(%rsi), %rcx
	movl	%ebx, -32(%rbp,%rcx,4)
	testl	%eax, %eax
	movl	(%rsi), %ebx
	movl	%edx, %ecx
	cmovel	%eax, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movq	-8(%rsi), %rcx
	movl	%ebx, -32(%rbp,%rcx,4)
	addq	$2, %rax
	addq	$32, %rsi
	cmpq	%r11, %rax
	jne	LBB0_4
## %bb.5:
	movq	%rax, %r10
LBB0_6:
	testb	$1, %r9b
	je	LBB0_8
## %bb.7:
	leal	-1(%r10), %eax
	shlq	$4, %r10
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	cmovael	%edx, %ecx
	movl	8(%r8,%r10), %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movq	(%r8,%r10), %rcx
	movl	%eax, -32(%rbp,%rcx,4)
LBB0_8:
	movdqa	-32(%rbp), %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	jmp	LBB0_9
LBB0_1:
	xorl	%ecx, %ecx
LBB0_9:
	movq	_AV_PIX_FMT_FLAG_BITSTREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	12(%rdi), %esi
	leal	(,%rcx,8), %eax
	testl	%esi, %esi
	cmovnel	%ecx, %eax
	movl	%edx, %ecx
	sarl	%cl, %eax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_FLAG_BITSTREAM,4,2  ## @AV_PIX_FMT_FLAG_BITSTREAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_get_padded_bits_per_pixel   ; -- Begin function av_get_padded_bits_per_pixel
	.p2align	2
_av_get_padded_bits_per_pixel:          ; @av_get_padded_bits_per_pixel
	.cfi_startproc
; %bb.0:
	ldp	w8, w9, [x0]
	add	w8, w9, w8
	stp	xzr, xzr, [sp, #-16]!
	.cfi_def_cfa_offset 16
	ldr	w9, [x0, #8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x10, [x0, #16]
	cmp	w9, #4
	b.hs	LBB0_4
; %bb.2:
	mov	x11, #0
	b	LBB0_7
LBB0_3:
	mov	w9, #0
	b	LBB0_10
LBB0_4:
	mov	x12, #0
	and	x11, x9, #0xfffffffc
	add	x13, x10, #32
	mov	x14, sp
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w12, #0
	csel	w15, wzr, w8, eq
	ldur	w16, [x13, #-24]
	ldur	w17, [x13, #-8]
	ldr	w1, [x13, #8]
	ldr	w2, [x13, #24]
	lsl	w16, w16, w8
	lsl	w17, w17, w15
	lsl	w15, w1, w15
	lsl	w1, w2, w8
	ldur	x2, [x13, #-32]
	ldur	x3, [x13, #-16]
	ldr	x4, [x13]
	str	w16, [x14, x2, lsl #2]
	str	w17, [x14, x3, lsl #2]
	str	w15, [x14, x4, lsl #2]
	ldr	x15, [x13, #16]
	str	w1, [x14, x15, lsl #2]
	add	x12, x12, #4
	add	x13, x13, #64
	cmp	x11, x12
	b.ne	LBB0_5
; %bb.6:
	cmp	x11, x9
	b.eq	LBB0_9
LBB0_7:
	sub	w12, w11, #1
	add	x10, x10, x11, lsl #4
	add	x10, x10, #8
	sub	x9, x9, x11
	mov	x11, sp
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w12, #2
	csel	w13, wzr, w8, lo
	ldr	w14, [x10]
	lsl	w13, w14, w13
	ldur	x14, [x10, #-8]
	str	w13, [x11, x14, lsl #2]
	add	w12, w12, #1
	add	x10, x10, #16
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	ldr	q0, [sp]
	addv.4s	s0, v0
	fmov	w9, s0
LBB0_10:
	ldr	w10, [x0, #12]
Lloh0:
	adrp	x11, _AV_PIX_FMT_FLAG_BITSTREAM@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AV_PIX_FMT_FLAG_BITSTREAM@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	lsl	w12, w9, #3
	tst	w11, w10
	csel	w9, w12, w9, eq
	asr	w0, w9, w8
	add	sp, sp, #16
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_FLAG_BITSTREAM,4,2  ; @AV_PIX_FMT_FLAG_BITSTREAM
.subsections_via_symbols
