	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_debugfs_mem_usage_read
_carl9170_debugfs_mem_usage_read:       ## @carl9170_debugfs_mem_usage_read
	.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, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_spin_lock_bh
	movl	(%r12), %esi
	movl	4(%rbx), %r8d
	movl	20(%rbx), %r9d
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_ADD
	movl	(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %esi
	movl	20(%rbx), %edi
	callq	_bitmap_weight
	movl	%eax, %r13d
	movl	4(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	16(%rbx), %rdi
	callq	_atomic_read
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	movl	%r13d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_ADD
	movl	(%r12), %r12d
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_atomic_read
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_atomic_read
                                        ## kill: def $eax killed $eax def $rax
	movl	8(%rbx), %ecx
	imull	%ecx, %eax
	leal	1023(%rax), %r9d
	testl	%eax, %eax
	cmovnsl	%eax, %r9d
	sarl	$10, %r9d
	imull	4(%rbx), %ecx
	leal	1023(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$10, %eax
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rcx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_ADD
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	%r14, %rax
	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	"jar: [%*pb]\n"

L_.str.1:                               ## @.str.1
	.asciz	"cookies: used:%3d / total:%3d, allocs:%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"memory: free:%3d (%3d KiB) / total:%3d KiB)\n"

	.no_dead_strip	_carl9170_debugfs_mem_usage_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_debugfs_mem_usage_read
_carl9170_debugfs_mem_usage_read:       ; @carl9170_debugfs_mem_usage_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_spin_lock_bh
	ldr	w1, [x22]
	ldr	w4, [x20, #4]
	ldr	w5, [x20, #20]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_ADD
	ldr	w23, [x22]
	ldr	w0, [x20, #20]
	ldr	w1, [x20, #4]
	bl	_bitmap_weight
	mov	x24, x0
	ldr	w25, [x20, #4]
	add	x0, x20, #16
	bl	_atomic_read
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	mov	x4, x24
	mov	x5, x25
	bl	_ADD
	ldr	w22, [x22]
	add	x23, x20, #12
	mov	x0, x23
	bl	_atomic_read
	mov	x24, x0
	mov	x0, x23
	bl	_atomic_read
	ldp	w9, w8, [x20, #4]
	mul	w10, w8, w0
	add	w11, w10, #1023
	cmp	w10, #0
	csel	w10, w11, w10, lt
	asr	w5, w10, #10
	mul	w8, w9, w8
	add	w9, w8, #1023
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #10
	str	x8, [sp]
Lloh4:
	adrp	x3, l_.str.2@PAGE
Lloh5:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x4, x24
	bl	_ADD
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"jar: [%*pb]\n"

l_.str.1:                               ; @.str.1
	.asciz	"cookies: used:%3d / total:%3d, allocs:%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"memory: free:%3d (%3d KiB) / total:%3d KiB)\n"

	.no_dead_strip	_carl9170_debugfs_mem_usage_read
.subsections_via_symbols
