	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_pci_dump_memory
_ath10k_pci_dump_memory:                ## @ath10k_pci_dump_memory
	.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	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_lockdep_assert_held
	testq	%r14, %r14
	je	LBB0_16
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath10k_coredump_get_mem_layout
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %r12
	movq	(%r14), %rbx
	movq	8(%r14), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	cmpl	$0, (%r15)
	jle	LBB0_16
## %bb.3:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	cmpq	%rbx, %rcx
	ja	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r12), %eax
	movq	_ATH10K_MEM_REGION_TYPE_IRAM1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ATH10K_MEM_REGION_TYPE_IRAM2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%r12), %eax
	sarl	$20, %eax
	movslq	%eax, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath10k_pci_set_ram_config
	testl	%eax, %eax
	jne	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r12), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	96(%r13), %rdx
	cmpl	$129, %eax
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_ath10k_pci_dump_memory_sram
	movq	%rax, %r14
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_ath10k_pci_dump_memory_reg
	movq	%rax, %r14
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_ath10k_pci_dump_memory_generic
	movl	%eax, %r14d
	testl	%eax, %eax
	movl	$0, %eax
	cmovlel	%eax, %r14d
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	8(%r12), %rdi
	callq	_cpu_to_le32
	movq	%rax, 16(%r13)
	movslq	12(%r12), %rdi
	callq	_cpu_to_le32
	movq	%rax, 8(%r13)
	movq	%r14, %rdi
	callq	_cpu_to_le32
	movq	%rax, (%r13)
	testq	%r14, %r14
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	$-24, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,4), %r13
	subq	%r14, %rbx
	addq	$24, %r12
	incl	%r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r15d
	jl	LBB0_4
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	16(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%rbx, %r8
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_warn                    ## TAILCALL
LBB0_18:
	movl	16(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_warn                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memory region %s size %d is larger that remaining ramdump buffer size %zu\n"

	.comm	_ATH10K_MEM_REGION_TYPE_IRAM1,4,2 ## @ATH10K_MEM_REGION_TYPE_IRAM1
	.comm	_ATH10K_MEM_REGION_TYPE_IRAM2,4,2 ## @ATH10K_MEM_REGION_TYPE_IRAM2
L_.str.1:                               ## @.str.1
	.asciz	"failed to switch ram config to IRAM for section %s: %d\n"

	.no_dead_strip	_ath10k_pci_dump_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_pci_dump_memory
_ath10k_pci_dump_memory:                ; @ath10k_pci_dump_memory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x19, x0
	bl	_lockdep_assert_held
	cbz	x22, LBB0_16
; %bb.1:
	mov	x0, x19
	bl	_ath10k_coredump_get_mem_layout
	cbz	x0, LBB0_16
; %bb.2:
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldp	x22, x23, [x22]
	mov	x0, x23
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.3:
	mov	w26, #0
Lloh0:
	adrp	x27, _ATH10K_MEM_REGION_TYPE_IRAM1@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ATH10K_MEM_REGION_TYPE_IRAM1@GOTPAGEOFF]
Lloh2:
	adrp	x28, _ATH10K_MEM_REGION_TYPE_IRAM2@GOTPAGE
Lloh3:
	ldr	x28, [x28, _ATH10K_MEM_REGION_TYPE_IRAM2@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x3, [x21]
	cmp	x3, x22
	b.hi	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #8]
	ldr	w9, [x27]
	ldr	w10, [x28]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #12]
	sbfx	x1, x8, #20, #12
	mov	x0, x19
	bl	_ath10k_pci_set_ram_config
	cbnz	w0, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x23, #96
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	cmp	w8, #129
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_ath10k_pci_dump_memory_sram
	mov	x25, x0
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_ath10k_pci_dump_memory_reg
	mov	x25, x0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_ath10k_pci_dump_memory_generic
	cmp	w0, #0
	csel	w25, w0, wzr, gt
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x0, [x21, #8]
	bl	_cpu_to_le32
	str	x0, [x23, #16]
	ldrsw	x0, [x21, #12]
	bl	_cpu_to_le32
	str	x0, [x23, #8]
	mov	x0, x25
	bl	_cpu_to_le32
	str	x0, [x23]
	cbz	x25, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x22, #24
	add	x23, x24, x25, lsl #2
	sub	x22, x8, x25
	add	x21, x21, #24
	add	w26, w26, #1
	ldr	w8, [x20]
	cmp	w26, w8
	b.lt	LBB0_4
	b	LBB0_16
LBB0_15:
	ldr	w2, [x21, #16]
	str	x22, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_ath10k_warn
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	mov	x3, x0
	ldr	w2, [x21, #16]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ath10k_warn
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memory region %s size %d is larger that remaining ramdump buffer size %zu\n"

	.comm	_ATH10K_MEM_REGION_TYPE_IRAM1,4,2 ; @ATH10K_MEM_REGION_TYPE_IRAM1
	.comm	_ATH10K_MEM_REGION_TYPE_IRAM2,4,2 ; @ATH10K_MEM_REGION_TYPE_IRAM2
l_.str.1:                               ; @.str.1
	.asciz	"failed to switch ram config to IRAM for section %s: %d\n"

	.no_dead_strip	_ath10k_pci_dump_memory
.subsections_via_symbols
