	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r600_get_array_mode_alignment
_r600_get_array_mode_alignment:         ## @r600_get_array_mode_alignment
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	16(%rdi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_3
## %bb.1:
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	8(%rdi), %ecx
	movl	12(%rdi), %edx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rax,4), %rax
	addq	%rsi, %rax
	jmpq	*%rax
LBB0_2:
	movl	$1, (%r13)
	movl	$1, (%r15)
	movl	$1, (%r12)
	movl	$1, (%r14)
	jmp	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_4:
	movl	20(%rbx), %eax
	cltd
	idivl	%ecx
	movl	$64, %edi
	movl	%eax, %esi
	callq	_max
	movl	%eax, (%r13)
	movl	$1, (%r15)
	jmp	LBB0_7
LBB0_5:
	movl	(%rbx), %eax
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %r12d
	imull	%edx, %ecx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	imull	%r12d, %r14d
	imull	%ecx, %r14d
	leal	(,%rax,8), %edi
	imull	20(%rbx), %eax
	shll	$6, %r14d
	shll	$3, %ecx
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%ecx
	movl	%eax, %esi
	callq	_max
	movl	%eax, (%r13)
	shll	$3, %r12d
	movl	%r12d, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	8(%rbx), %esi
	imull	(%r13), %esi
	imull	(%r15), %esi
	imull	12(%rbx), %esi
	movl	%r14d, %edi
	callq	_max
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_8
LBB0_6:
	movl	20(%rbx), %eax
	imull	%edx, %ecx
	shll	$3, %ecx
	cltd
	idivl	%ecx
	movl	$8, %edi
	movl	%eax, %esi
	callq	_max
	movl	%eax, (%r13)
	movl	$8, (%r15)
LBB0_7:
	movl	$1, (%r12)
	movl	20(%rbx), %eax
	movl	%eax, (%r14)
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_r600_get_array_mode_alignment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r600_get_array_mode_alignment
_r600_get_array_mode_alignment:         ; @r600_get_array_mode_alignment
	.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
	ldr	w8, [x0, #16]
	sub	w10, w8, #128
	cmp	w10, #3
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	ldp	w8, w9, [x0, #8]
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x23]
	str	w8, [x20]
	str	w8, [x22]
	b	LBB0_8
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_4:
	ldr	w9, [x21, #20]
	sdiv	w1, w9, w8
	mov	w0, #64
	bl	_max
	mov	x8, x0
	mov	w0, #0
	str	w8, [x23]
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_7
LBB0_5:
	ldp	w10, w25, [x21]
	mul	w8, w8, w9
	mul	w9, w8, w10
	mul	w9, w9, w25
	lsl	w24, w9, #6
	lsl	w0, w10, #3
	ldr	w9, [x21, #20]
	mul	w9, w9, w10
	lsl	w8, w8, #3
	sdiv	w1, w9, w8
	bl	_max
	str	w0, [x23]
	lsl	w8, w25, #3
	str	w8, [x20]
	mov	w8, #1
	str	w8, [x22]
	ldr	w8, [x23]
	ldp	w9, w10, [x21, #8]
	mul	w8, w9, w8
	ldr	w9, [x20]
	mul	w8, w8, w9
	mul	w1, w8, w10
	mov	x0, x24
	bl	_max
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_9
LBB0_6:
	ldr	w10, [x21, #20]
	mul	w8, w8, w9
	lsl	w8, w8, #3
	sdiv	w1, w10, w8
	mov	w24, #8
	mov	w0, #8
	bl	_max
	mov	x8, x0
	mov	w0, #0
	str	w8, [x23]
	str	w24, [x20]
	mov	w8, #1
LBB0_7:
	str	w8, [x22]
	ldr	w8, [x21, #20]
LBB0_8:
	str	w8, [x19]
LBB0_9:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_r600_get_array_mode_alignment
.subsections_via_symbols
