	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_dealloc_pd              ## -- Begin function ocrdma_dealloc_pd
	.p2align	4, 0x90
_ocrdma_dealloc_pd:                     ## @ocrdma_dealloc_pd
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_get_ocrdma_pd
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_get_ocrdma_dev
	movq	%rax, %r14
	movq	8(%r12), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	cmpq	$0, 16(%r12)
	je	LBB0_3
## %bb.2:
	movslq	(%r12), %rsi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	imulq	%rdx, %rsi
	addq	8(%r14), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ocrdma_del_mmap
LBB0_3:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ocrdma_get_db_addr
	movq	8(%r12), %rdi
	movl	(%r14), %edx
	movq	%rax, %rsi
	callq	_ocrdma_del_mmap
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_is_ucontext_pd
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ocrdma_release_ucontext_pd     ## TAILCALL
LBB0_5:
	movq	%r14, %rdi
	movq	%r12, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__ocrdma_dealloc_pd             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_dealloc_pd              ; -- Begin function ocrdma_dealloc_pd
	.p2align	2
_ocrdma_dealloc_pd:                     ; @ocrdma_dealloc_pd
	.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, x0
	bl	_get_ocrdma_pd
	mov	x19, x0
	ldr	w0, [x20]
	bl	_get_ocrdma_dev
	mov	x20, x0
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_5
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	ldrsw	x9, [x19]
Lloh0:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x2, [x10]
	madd	x1, x2, x9, x8
	mov	x0, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_ocrdma_del_mmap
LBB0_3:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_ocrdma_get_db_addr
	mov	x1, x0
	ldr	x0, [x19, #8]
	ldr	w2, [x20]
	bl	_ocrdma_del_mmap
	mov	x0, x21
	mov	x1, x19
	bl	_is_ucontext_pd
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	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	_ocrdma_release_ucontext_pd
LBB0_5:
	mov	x0, x20
	mov	x1, 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	__ocrdma_dealloc_pd
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
.subsections_via_symbols
