	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_copy_pd_uresp
_ocrdma_copy_pd_uresp:                  ## @ocrdma_copy_pd_uresp
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_get_ocrdma_ucontext
	movq	%rax, %rbx
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	(%r13), %eax
	movl	%eax, -88(%rbp)
	movq	16(%r13), %rcx
	movq	%rcx, -64(%rbp)
	movq	24(%r13), %rcx
	movl	(%rcx), %r14d
	imull	%r14d, %eax
	movslq	%eax, %r15
	addq	16(%rcx), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_ocrdma_add_mmap
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 16(%r13)
	je	LBB0_2
## %bb.3:
	movq	24(%r13), %rax
	movslq	(%r13), %rbx
	movq	_OCRDMA_DPP_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	imulq	%rdx, %rbx
	addq	8(%rax), %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ocrdma_add_mmap
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	%rbx, %rdi
	callq	_upper_32_bits
	movl	%eax, -72(%rbp)
	movq	%rbx, -80(%rbp)
	jmp	LBB0_5
LBB0_2:
	xorl	%ebx, %ebx
LBB0_5:
	leaq	-88(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$32, %edx
	callq	_ib_copy_to_udata
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r12d
	cmpq	$0, 16(%r13)
	je	LBB0_9
## %bb.8:
	movq	8(%r13), %rdi
	movq	_OCRDMA_DPP_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_ocrdma_del_mmap
LBB0_9:
	movq	8(%r13), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_ocrdma_del_mmap
	jmp	LBB0_10
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r13)
	xorl	%r12d, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_DPP_PAGE_SIZE,4,2       ## @OCRDMA_DPP_PAGE_SIZE
	.no_dead_strip	_ocrdma_copy_pd_uresp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_copy_pd_uresp
_ocrdma_copy_pd_uresp:                  ; @ocrdma_copy_pd_uresp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x2
	mov	x19, x0
	mov	x0, x1
	bl	_get_ocrdma_ucontext
	mov	x22, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [x19]
	str	w8, [sp]
	ldp	x9, x10, [x19, #16]
	str	x9, [sp, #24]
	ldr	x9, [x10, #16]
	ldr	w20, [x10]
	mul	w8, w20, w8
	add	x21, x9, w8, sxtw
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_ocrdma_add_mmap
	mov	x24, x0
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldrsw	x9, [x19]
Lloh0:
	adrp	x10, _OCRDMA_DPP_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _OCRDMA_DPP_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x2, [x10]
	madd	x25, x2, x9, x8
	mov	x0, x22
	mov	x1, x25
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_ocrdma_add_mmap
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.3:
	mov	x0, x25
	bl	_upper_32_bits
	str	w0, [sp, #16]
	str	x25, [sp, #8]
	b	LBB0_5
LBB0_4:
	mov	x25, #0
LBB0_5:
	mov	x1, sp
	mov	x0, x23
	mov	w2, #32
	bl	_ib_copy_to_udata
	mov	x24, x0
	cbz	w0, LBB0_9
; %bb.6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x8, _OCRDMA_DPP_PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OCRDMA_DPP_PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x25
	bl	_ocrdma_del_mmap
LBB0_8:
	ldr	x0, [x19, #8]
	mov	x1, x21
	mov	x2, x20
	bl	_ocrdma_del_mmap
	b	LBB0_10
LBB0_9:
	str	x22, [x19, #8]
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_DPP_PAGE_SIZE,4,2       ; @OCRDMA_DPP_PAGE_SIZE
	.no_dead_strip	_ocrdma_copy_pd_uresp
.subsections_via_symbols
