	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	20(%r12), %eax
	movl	%eax, -40(%rbp)
	movl	$1, -80(%rbp)
	movl	16(%r12), %edi
	callq	_virt_to_phys
	movq	-64(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	12(%r12), %eax
	movl	%eax, -68(%rbp)
	movq	(%r12), %rax
	movslq	(%rax), %rax
	movslq	(%rbx), %rcx
	imulq	%rcx, %rax
	addq	8(%rbx), %rax
	movq	%rax, -48(%rbp)
	movl	%ecx, -76(%rbp)
	movl	8(%r12), %eax
	movl	%eax, -52(%rbp)
	movq	%rbx, %rdi
	callq	_ocrdma_get_asic_type
	movq	_OCRDMA_ASIC_GEN_SKH_R@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_RQ_OFFSET@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_OCRDMA_DB_RQ_OFFSET@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movl	%eax, -72(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$48, %edx
	callq	_ib_copy_to_udata
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	(%r12), %rax
	movl	4(%rax), %edi
	movq	-64(%rbp), %rax
	movl	(%rax), %esi
	movl	-68(%rbp), %edx
	callq	_ocrdma_add_mmap
LBB0_5:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_ASIC_GEN_SKH_R,8,3      ## @OCRDMA_ASIC_GEN_SKH_R
	.comm	_OCRDMA_DB_GEN2_RQ_OFFSET,4,2   ## @OCRDMA_DB_GEN2_RQ_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, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	w8, #1
	ldp	w0, w9, [x19, #16]
	str	w9, [sp, #40]
	str	w8, [sp]
	bl	_virt_to_phys
	ldr	x8, [sp, #16]
	str	w0, [x8]
	ldp	w9, w8, [x19, #8]
	str	w8, [sp, #12]
	ldr	x8, [x21, #8]
	ldr	x10, [x19]
	ldrsw	x10, [x10]
	ldrsw	x11, [x21]
	madd	x8, x11, x10, x8
	str	x8, [sp, #32]
	str	w11, [sp, #4]
	str	w9, [sp, #28]
	mov	x0, x21
	bl	_ocrdma_get_asic_type
Lloh0:
	adrp	x8, _OCRDMA_ASIC_GEN_SKH_R@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCRDMA_ASIC_GEN_SKH_R@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #16
	mov	w10, #24
Lloh3:
	adrp	x11, _OCRDMA_DB_GEN2_RQ_OFFSET@GOTPAGE
Lloh4:
	ldr	x11, [x11, _OCRDMA_DB_GEN2_RQ_OFFSET@GOTPAGEOFF]
Lloh5:
	adrp	x12, _OCRDMA_DB_RQ_OFFSET@GOTPAGE
Lloh6:
	ldr	x12, [x12, _OCRDMA_DB_RQ_OFFSET@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x11, x12, eq
	csel	w9, w10, w9, 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, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_ASIC_GEN_SKH_R,8,3      ; @OCRDMA_ASIC_GEN_SKH_R
	.comm	_OCRDMA_DB_GEN2_RQ_OFFSET,4,2   ; @OCRDMA_DB_GEN2_RQ_OFFSET
	.comm	_OCRDMA_DB_RQ_OFFSET,4,2        ; @OCRDMA_DB_RQ_OFFSET
	.no_dead_strip	_ocrdma_copy_srq_uresp
.subsections_via_symbols
