	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpu_fft_trans_prepare          ## -- Begin function gpu_fft_trans_prepare
	.p2align	4, 0x90
_gpu_fft_trans_prepare:                 ## @gpu_fft_trans_prepare
	.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
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	leaq	-56(%rbp), %rdx
	movl	$16384, %esi                    ## imm = 0x4000
	callq	_gpu_fft_alloc
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %r12
	leaq	-56(%rbp), %rdi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_gpu_fft_ptr_inc
	movq	-48(%rbp), %rdi
	movq	_shader_trans@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_memcpy
	movq	%r14, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_gpu_fft_ptr_inc
	movl	%eax, (%r12)
	movl	12(%rbx), %eax
	movq	-56(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	24(%rbx), %eax
	subl	16(%rbx), %eax
	movl	%eax, 4(%rcx)
	movl	12(%r15), %eax
	movl	%eax, 8(%rcx)
	movl	$0, 12(%rcx)
	movl	(%rbx), %eax
	shll	$2, %eax
	movl	%eax, 16(%rcx)
	movl	(%r15), %eax
	shll	$2, %eax
	movl	%eax, 20(%rcx)
	movl	4(%rbx), %eax
	movl	8(%r15), %edx
	cmpl	%edx, %eax
	cmovll	%eax, %edx
	movl	%edx, 24(%rcx)
	movl	8(%rbx), %eax
	movl	4(%r15), %edx
	cmpl	%edx, %eax
	cmovll	%eax, %edx
	movl	%edx, 28(%rcx)
	movq	%r14, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_gpu_fft_ptr_inc
	movq	8(%r12), %rcx
	movl	%eax, (%rcx)
	movq	-56(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	(%r12), %eax
	movl	%eax, 4(%rcx)
	movq	%r14, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_gpu_fft_ptr_inc
	movq	%rax, 16(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
LBB0_2:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_shader_trans,4,2               ## @shader_trans
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpu_fft_trans_prepare          ; -- Begin function gpu_fft_trans_prepare
	.p2align	2
_gpu_fft_trans_prepare:                 ; @gpu_fft_trans_prepare
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x2, sp
	mov	w1, #16384
	bl	_gpu_fft_alloc
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x23, [sp, #8]
	mov	x0, sp
	mov	w1, #4096
	bl	_gpu_fft_ptr_inc
	ldr	x0, [sp, #8]
Lloh0:
	adrp	x8, _shader_trans@GOTPAGE
Lloh1:
	ldr	x8, [x8, _shader_trans@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #4096
	bl	_memcpy
	mov	x0, sp
	mov	w1, #4096
	bl	_gpu_fft_ptr_inc
	str	w0, [x23]
	ldr	w8, [x22, #12]
	ldr	x9, [sp]
	str	w8, [x9]
	ldr	w8, [x22, #24]
	ldr	w10, [x22, #16]
	sub	w8, w8, w10
	str	w8, [x9, #4]
	ldr	w8, [x21, #12]
	stp	w8, wzr, [x9, #8]
	ldr	w8, [x22]
	lsl	w8, w8, #2
	str	w8, [x9, #16]
	ldr	w8, [x21]
	lsl	w8, w8, #2
	str	w8, [x9, #20]
	ldr	w8, [x22, #4]
	ldr	w10, [x21, #8]
	cmp	w8, w10
	csel	w8, w8, w10, lt
	str	w8, [x9, #24]
	ldr	w8, [x22, #8]
	ldr	w10, [x21, #4]
	cmp	w8, w10
	csel	w8, w8, w10, lt
	str	w8, [x9, #28]
	mov	x0, sp
	mov	w1, #4096
	bl	_gpu_fft_ptr_inc
	ldr	x8, [x23, #8]
	str	w0, [x8]
	ldr	x8, [sp]
	str	w0, [x8]
	ldr	w9, [x23]
	str	w9, [x8, #4]
	mov	x0, sp
	mov	w1, #4096
	bl	_gpu_fft_ptr_inc
	str	x0, [x23, #16]
	str	x23, [x19]
LBB0_2:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_shader_trans,4,2               ; @shader_trans
.subsections_via_symbols
