	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etnaviv_buffer_dump
_etnaviv_buffer_dump:                   ## @etnaviv_buffer_dump
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rsi, %rax
	movl	(%rsi), %ebx
	movslq	%edx, %r12
	leaq	(,%r12,4), %r14
	addq	8(%rsi), %r14
	movl	8(%rdi), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rsi
	movq	%rax, %rdi
	callq	_etnaviv_cmdbuf_get_va
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12), %ecx
	movl	%r15d, %r13d
	shll	$2, %r13d
	leal	(%r12,%r15,4), %eax
	subl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rdx
	movl	%ebx, %r8d
	callq	_dev_info
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$16, %ecx
	movl	$4, %r8d
	movq	%r14, %r9
	pushq	$0
	pushq	%r13
	callq	_print_hex_dump
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"virt %p phys 0x%08x free 0x%08x\n"

	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
L_.str.1:                               ## @.str.1
	.asciz	"cmd "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ## @DUMP_PREFIX_OFFSET
	.no_dead_strip	_etnaviv_buffer_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etnaviv_buffer_dump
_etnaviv_buffer_dump:                   ; @etnaviv_buffer_dump
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x8, x1
	ldr	w23, [x1]
	ldr	x9, [x1, #8]
	add	x21, x9, w2, sxtw #2
	ldr	w22, [x0, #8]
	ldr	x1, [x0]
	mov	x0, x8
	bl	_etnaviv_cmdbuf_get_va
	add	w3, w0, w20
	lsl	w19, w19, #2
	add	w8, w19, w20
	sub	w4, w23, w8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_dev_info
Lloh2:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh4:
	adrp	x9, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	ldr	w2, [x9]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w3, #16
	mov	w4, #4
	mov	x5, x21
	mov	x6, x19
	mov	w7, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_print_hex_dump
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"virt %p phys 0x%08x free 0x%08x\n"

	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
l_.str.1:                               ; @.str.1
	.asciz	"cmd "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ; @DUMP_PREFIX_OFFSET
	.no_dead_strip	_etnaviv_buffer_dump
.subsections_via_symbols
