	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_coredump_get_ramdump_size
_ath10k_coredump_get_ramdump_size:      ## @ath10k_coredump_get_ramdump_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_ath10k_coredump_get_mem_layout
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movslq	(%rax), %rcx
	xorl	%r9d, %r9d
	testq	%rcx, %rcx
	jle	LBB0_2
## %bb.3:
	movq	8(%rax), %rax
	leal	-1(%rcx), %r8d
	cmpl	$3, %r8d
	jae	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_14
LBB0_17:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_2:
	xorl	%edx, %edx
	jmp	LBB0_16
LBB0_5:
	incq	%r8
	movq	%r8, %r9
	andq	$-4, %r9
	leaq	-4(%r9), %rsi
	movq	%rsi, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %edx
	andl	$3, %edx
	cmpq	$12, %rsi
	jae	LBB0_7
## %bb.6:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	jmp	LBB0_9
LBB0_7:
	andq	$-4, %rdi
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rsi,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%rax,%rsi,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	32(%rax,%rsi,8), %xmm1
	movdqu	48(%rax,%rsi,8), %xmm3
	movdqu	64(%rax,%rsi,8), %xmm4
	paddq	%xmm1, %xmm4
	paddq	%xmm2, %xmm4
	movdqu	80(%rax,%rsi,8), %xmm2
	paddq	%xmm3, %xmm2
	paddq	%xmm0, %xmm2
	movdqu	96(%rax,%rsi,8), %xmm0
	paddq	%xmm4, %xmm0
	movdqu	112(%rax,%rsi,8), %xmm1
	paddq	%xmm2, %xmm1
	addq	$16, %rsi
	addq	$-4, %rdi
	jne	LBB0_8
LBB0_9:
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.10:
	leaq	(%rax,%rsi,8), %rsi
	addq	$16, %rsi
	shlq	$5, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rsi,%rdi), %xmm2
	paddq	%xmm2, %xmm0
	movdqu	(%rsi,%rdi), %xmm2
	paddq	%xmm2, %xmm1
	addq	$32, %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_11
LBB0_12:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rdx
	cmpq	%r9, %r8
	je	LBB0_16
## %bb.13:
	leaq	(%rax,%r9,8), %rax
LBB0_14:
	movl	%ecx, %esi
	subl	%r9d, %esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	addq	(%rax,%rdi,8), %rdx
	incq	%rdi
	cmpl	%edi, %esi
	jne	LBB0_15
LBB0_16:
	leaq	(%rdx,%rcx,4), %rdi
	movl	$16, %esi
	popq	%rbp
	jmp	_ALIGN                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ath10k_coredump_get_ramdump_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_coredump_get_ramdump_size
_ath10k_coredump_get_ramdump_size:      ; @ath10k_coredump_get_ramdump_size
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_ath10k_coredump_get_mem_layout
	cbz	x0, LBB0_4
; %bb.1:
	ldrsw	x8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	ldr	x13, [x0, #8]
	sub	w9, w8, #1
	cmp	w9, #7
	b.hs	LBB0_6
; %bb.3:
	mov	w10, #0
	mov	x12, #0
	mov	x9, x13
	b	LBB0_9
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x12, #0
	b	LBB0_11
LBB0_6:
	add	x11, x9, #1
	and	x10, x11, #0x1fffffff8
	add	x9, x13, x10, lsl #3
	add	x12, x13, #32
	movi.2d	v0, #0000000000000000
	mov	x13, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12], #64
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	subs	x13, x13, #8
	b.ne	LBB0_7
; %bb.8:
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x12, d0
	cmp	x11, x10
	b.eq	LBB0_11
LBB0_9:
	sub	w10, w8, w10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #8
	add	x12, x11, x12
	subs	w10, w10, #1
	b.ne	LBB0_10
LBB0_11:
	add	x0, x12, x8, lsl #2
	mov	w1, #16
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_ALIGN
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ath10k_coredump_get_ramdump_size
.subsections_via_symbols
