	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a6xx_get_crashdumper_registers
_a6xx_get_crashdumper_registers:        ## @a6xx_get_crashdumper_registers
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	(%r8), %r13
	movq	_A6XX_CD_DATA_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	addl	8(%r8), %r15d
	movl	20(%rdx), %esi
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %edx
	movq	%r13, %rdi
	callq	_CRASHDUMP_WRITE
	leaq	(%r13,%rax,4), %r13
LBB0_2:
	xorl	%r14d, %r14d
	cmpl	$0, (%rbx)
	jle	LBB0_6
## %bb.3:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movl	%r12d, %esi
	callq	_RANGE
	movl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_CRASHDUMP_READ
	leaq	(%r13,%rax,4), %r13
	leal	(%r15,%rbx,4), %r15d
	addl	%ebx, %r14d
	addq	$2, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	%r12d, (%rax)
	jg	LBB0_4
## %bb.5:
	movslq	%r14d, %r14
	shlq	$2, %r14
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:
	movq	%r13, %rdi
	callq	_CRASHDUMP_FINI
	movq	_A6XX_CD_DATA_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	%rax, %r14
	seta	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_a6xx_crashdumper_run
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, 8(%r15)
	movq	_A6XX_CD_DATA_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r12), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_state_kmemdup
	movl	%eax, (%r15)
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A6XX_CD_DATA_OFFSET,4,2        ## @A6XX_CD_DATA_OFFSET
	.comm	_A6XX_CD_DATA_SIZE,4,2          ## @A6XX_CD_DATA_SIZE
	.no_dead_strip	_a6xx_get_crashdumper_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a6xx_get_crashdumper_registers
_a6xx_get_crashdumper_registers:        ; @a6xx_get_crashdumper_registers
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x24, [x4]
	ldr	w26, [x4, #8]
Lloh0:
	adrp	x8, _A6XX_CD_DATA_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A6XX_CD_DATA_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
	ldr	w1, [x2, #20]
	cbz	w1, LBB0_2
; %bb.1:
	ldr	w2, [x22, #16]
	mov	x0, x24
	bl	_CRASHDUMP_WRITE
	add	x24, x24, x0, lsl #2
LBB0_2:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x25, #0
	mov	w28, #0
	add	w26, w27, w26
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22, #8]
	mov	x1, x25
	bl	_RANGE
	mov	x27, x0
	ldr	x8, [x22, #8]
	ldr	w1, [x8, x25, lsl #2]
	mov	x0, x24
	mov	x2, x27
	mov	x3, x26
	bl	_CRASHDUMP_READ
	add	x24, x24, x0, lsl #2
	add	w26, w26, w27, lsl #2
	add	w28, w27, w28
	add	x25, x25, #2
	ldr	w8, [x22]
	cmp	w8, w25
	b.gt	LBB0_4
; %bb.5:
	sbfiz	x25, x28, #2, #32
	b	LBB0_7
LBB0_6:
	mov	x25, #0
LBB0_7:
	mov	x0, x24
	bl	_CRASHDUMP_FINI
Lloh3:
	adrp	x8, _A6XX_CD_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A6XX_CD_DATA_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	cmp	x25, x8
	cset	w0, hi
	bl	_WARN_ON
	cbnz	x0, LBB0_10
; %bb.8:
	mov	x0, x23
	mov	x1, x21
	bl	_a6xx_crashdumper_run
	cbnz	x0, LBB0_10
; %bb.9:
	str	x22, [x19, #8]
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _A6XX_CD_DATA_OFFSET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _A6XX_CD_DATA_OFFSET@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x20
	mov	x2, x25
	bl	_state_kmemdup
	str	w0, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_A6XX_CD_DATA_OFFSET,4,2        ; @A6XX_CD_DATA_OFFSET
	.comm	_A6XX_CD_DATA_SIZE,4,2          ; @A6XX_CD_DATA_SIZE
	.no_dead_strip	_a6xx_get_crashdumper_registers
.subsections_via_symbols
