	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_align_pitch             ## -- Begin function radeon_align_pitch
	.p2align	4, 0x90
_radeon_align_pitch:                    ## @radeon_align_pitch
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, %r14d
	callq	_ASIC_IS_AVIVO
	testq	%rax, %rax
	setne	%al
	testl	%r15d, %r15d
	setne	%cl
	orb	%al, %cl
	leal	7(%rbx), %edx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %edx
	sarl	$3, %edx
	leal	-3(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_5
## %bb.1:
	cmpl	$2, %edx
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	cmpl	$1, %edx
	jne	LBB0_7
## %bb.3:
	movzbl	%cl, %eax
	shll	$7, %eax
	orl	$127, %eax
	jmp	LBB0_7
LBB0_5:
	testb	%cl, %cl
	movl	$63, %ecx
	movl	$15, %eax
	jmp	LBB0_6
LBB0_4:
	testb	%cl, %cl
	movl	$127, %ecx
	movl	$31, %eax
LBB0_6:
	cmovnel	%ecx, %eax
LBB0_7:
	addl	%eax, %r14d
	notl	%eax
	andl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_align_pitch             ; -- Begin function radeon_align_pitch
	.p2align	2
_radeon_align_pitch:                    ; @radeon_align_pitch
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_ASIC_IS_AVIVO
	cmp	w19, #0
	ccmp	x0, #0, #0, eq
	cset	w8, ne
	add	w9, w20, #7
	cmp	w20, #0
	csel	w9, w9, w20, lt
	asr	w9, w9, #3
	sub	w10, w9, #3
	mov	w11, #15
	mov	w12, #63
	cmp	w8, #0
	csel	w11, w12, w11, ne
	mov	w12, #31
	mov	w13, #127
	csel	w12, w13, w12, ne
	mov	w14, #255
	cmp	w8, #0
	csel	w8, w14, w13, ne
	cmp	w9, #1
	csel	w8, wzr, w8, ne
	cmp	w9, #2
	csel	w8, w12, w8, eq
	cmp	w10, #2
	csel	w8, w11, w8, lo
	add	w9, w8, w21
	bic	w0, w9, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
