	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_mem_db
_store_mem_db:                          ## @store_mem_db
	.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, %r15
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	_ADD_MANAGED_RESOURCE@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_sscanf
	cmpl	$2, %eax
	je	LBB0_5
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_3
## %bb.2:
	movq	_REMOVE_MANAGED_RESOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_6
## %bb.4:
	movl	(%r13), %r12d
LBB0_5:
	movq	-48(%rbp), %rax
	cmpq	-56(%rbp), %rax
	jae	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_adjust_memory
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	cmovnel	%ebx, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADD_MANAGED_RESOURCE,4,2       ## @ADD_MANAGED_RESOURCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"+ 0x%lx - 0x%lx"

L_.str.1:                               ## @.str.1
	.asciz	"- 0x%lx - 0x%lx"

	.comm	_REMOVE_MANAGED_RESOURCE,4,2    ## @REMOVE_MANAGED_RESOURCE
L_.str.2:                               ## @.str.2
	.asciz	"0x%lx - 0x%lx"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_store_mem_db
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_mem_db
_store_mem_db:                          ; @store_mem_db
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x23, _ADD_MANAGED_RESOURCE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ADD_MANAGED_RESOURCE@GOTPAGEOFF]
	ldr	w22, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #2
	b.eq	LBB0_5
; %bb.1:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _REMOVE_MANAGED_RESOURCE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REMOVE_MANAGED_RESOURCE@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_6
; %bb.4:
	ldr	w22, [x23]
LBB0_5:
	ldp	x8, x9, [sp]
	cmp	x8, x9
	b.hs	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_mutex_lock
	ldp	x3, x2, [sp]
	mov	x0, x20
	mov	x1, x22
	bl	_adjust_memory
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	cmp	w21, #0
	csel	w0, w19, w21, eq
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ADD_MANAGED_RESOURCE,4,2       ; @ADD_MANAGED_RESOURCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"+ 0x%lx - 0x%lx"

l_.str.1:                               ; @.str.1
	.asciz	"- 0x%lx - 0x%lx"

	.comm	_REMOVE_MANAGED_RESOURCE,4,2    ; @REMOVE_MANAGED_RESOURCE
l_.str.2:                               ; @.str.2
	.asciz	"0x%lx - 0x%lx"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_store_mem_db
.subsections_via_symbols
