	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_release_dev_space
_carl9170_release_dev_space:            ## @carl9170_release_dev_space
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %rax
	movl	(%rax), %r15d
	movl	$0, (%rax)
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpl	12(%r14), %r15d
	setg	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%rbx), %edi
	movl	16(%r14), %esi
	callq	_DIV_ROUND_UP
	leaq	8(%r14), %rsi
	movl	%eax, %edi
	callq	_atomic_add
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movl	4(%r14), %edi
	decl	%r15d
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_bitmap_release_region
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_carl9170_release_dev_space
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_release_dev_space
_carl9170_release_dev_space:            ; @carl9170_release_dev_space
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	ldr	w21, [x8]
	str	wzr, [x8]
	cmp	w21, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19, #12]
	cmp	w21, w8
	cset	w0, gt
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w0, [x20]
	ldr	w1, [x19, #16]
	bl	_DIV_ROUND_UP
	add	x1, x19, #8
	bl	_atomic_add
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	w0, [x19, #4]
	sub	w1, w21, #1
	mov	w2, #0
	bl	_bitmap_release_region
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_bh
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_carl9170_release_dev_space
.subsections_via_symbols
