	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_copy_srq_uresp
_ocrdma_copy_srq_uresp:                 ## @ocrdma_copy_srq_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-72(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	28(%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	$1, -72(%rbp)
	movl	24(%rbx), %eax
	movq	-56(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	20(%rbx), %eax
	movl	%eax, -60(%rbp)
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movslq	(%rax), %rax
	movslq	(%rcx), %rdx
	imulq	%rdx, %rax
	addq	16(%rcx), %rax
	movq	%rax, -40(%rbp)
	movl	%edx, -68(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	8(%rcx), %rax
	movq	_OCRDMA_GEN2_FAMILY@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	leal	16(,%rdx,8), %eax
	jne	LBB0_1
## %bb.2:
	movq	_OCRDMA_DB_GEN2_RQ1_OFFSET@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_OCRDMA_DB_RQ_OFFSET@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movl	%eax, -64(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$48, %edx
	callq	_ib_copy_to_udata
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	movq	-56(%rbp), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %edx
	callq	_ocrdma_add_mmap
LBB0_5:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_GEN2_FAMILY,8,3         ## @OCRDMA_GEN2_FAMILY
	.comm	_OCRDMA_DB_GEN2_RQ1_OFFSET,4,2  ## @OCRDMA_DB_GEN2_RQ1_OFFSET
	.comm	_OCRDMA_DB_RQ_OFFSET,4,2        ## @OCRDMA_DB_RQ_OFFSET
	.no_dead_strip	_ocrdma_copy_srq_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_srq_uresp
_ocrdma_copy_srq_uresp:                 ; @ocrdma_copy_srq_uresp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	w8, #1
	ldp	w10, w9, [x19, #24]
	str	w9, [sp, #40]
	str	w8, [sp]
	ldr	x8, [sp, #16]
	str	w10, [x8]
	ldp	w9, w8, [x19, #16]
	str	w8, [sp, #12]
	ldp	x10, x8, [x19]
	ldr	x11, [x8, #16]
	ldrsw	x10, [x10]
	ldrsw	x12, [x8]
	madd	x10, x12, x10, x11
	str	x10, [sp, #32]
	str	w12, [sp, #4]
	str	w9, [sp, #28]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x9, _OCRDMA_GEN2_FAMILY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OCRDMA_GEN2_FAMILY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, #16
	mov	w11, #24
Lloh3:
	adrp	x12, _OCRDMA_DB_GEN2_RQ1_OFFSET@GOTPAGE
Lloh4:
	ldr	x12, [x12, _OCRDMA_DB_GEN2_RQ1_OFFSET@GOTPAGEOFF]
Lloh5:
	adrp	x13, _OCRDMA_DB_RQ_OFFSET@GOTPAGE
Lloh6:
	ldr	x13, [x13, _OCRDMA_DB_RQ_OFFSET@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x12, x13, eq
	csel	w9, w11, w10, eq
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	w9, [sp, #8]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #48
	bl	_ib_copy_to_udata
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	ldr	x8, [sp, #16]
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	bl	_ocrdma_add_mmap
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_GEN2_FAMILY,8,3         ; @OCRDMA_GEN2_FAMILY
	.comm	_OCRDMA_DB_GEN2_RQ1_OFFSET,4,2  ; @OCRDMA_DB_GEN2_RQ1_OFFSET
	.comm	_OCRDMA_DB_RQ_OFFSET,4,2        ; @OCRDMA_DB_RQ_OFFSET
	.no_dead_strip	_ocrdma_copy_srq_uresp
.subsections_via_symbols
