	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_mbx_reg_mr_cont
_ocrdma_mbx_reg_mr_cont:                ## @ocrdma_mbx_reg_mr_cont
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_OCRDMA_CMD_REGISTER_NSMR_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$24, %esi
	callq	_ocrdma_init_emb_mqe
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movl	8(%r15), %eax
	movl	%eax, 16(%r13)
	movq	_OCRDMA_REG_NSMR_CONT_NUM_PBL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %eax
	shll	%cl, %eax
	movq	_OCRDMA_REG_NSMR_CONT_PBL_SHIFT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r12d, %ecx
	orl	%eax, %ecx
	movl	%ecx, (%r13)
	movq	_OCRDMA_REG_NSMR_CONT_LAST_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	movl	%r14d, 4(%r13)
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.4:
	movslq	%r12d, %r12
	movl	%ebx, %r14d
	movq	8(%r13), %rcx
	shlq	$2, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	addq	%r12, %rax
	movl	(%rax,%rbx,4), %edi
	movl	%edi, (%rcx,%rbx,8)
	callq	_upper_32_bits
	movq	8(%r13), %rcx
	movl	%eax, 4(%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ocrdma_mbx_cmd
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_kfree
	movl	%r14d, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_CMD_REGISTER_NSMR_CONT,4,2 ## @OCRDMA_CMD_REGISTER_NSMR_CONT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OCRDMA_REG_NSMR_CONT_NUM_PBL_SHIFT,4,2 ## @OCRDMA_REG_NSMR_CONT_NUM_PBL_SHIFT
	.comm	_OCRDMA_REG_NSMR_CONT_PBL_SHIFT_MASK,4,2 ## @OCRDMA_REG_NSMR_CONT_PBL_SHIFT_MASK
	.comm	_OCRDMA_REG_NSMR_CONT_LAST_SHIFT,4,2 ## @OCRDMA_REG_NSMR_CONT_LAST_SHIFT
	.no_dead_strip	_ocrdma_mbx_reg_mr_cont
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_mbx_reg_mr_cont
_ocrdma_mbx_reg_mr_cont:                ; @ocrdma_mbx_reg_mr_cont
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x24, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _OCRDMA_CMD_REGISTER_NSMR_CONT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCRDMA_CMD_REGISTER_NSMR_CONT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #24
	bl	_ocrdma_init_emb_mqe
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w8, [x20, #8]
	str	w8, [x0, #16]
Lloh3:
	adrp	x8, _OCRDMA_REG_NSMR_CONT_NUM_PBL_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OCRDMA_REG_NSMR_CONT_NUM_PBL_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w23, w8
Lloh6:
	adrp	x9, _OCRDMA_REG_NSMR_CONT_PBL_SHIFT_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OCRDMA_REG_NSMR_CONT_PBL_SHIFT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w22
	orr	w8, w9, w8
	str	w8, [x0]
Lloh9:
	adrp	x8, _OCRDMA_REG_NSMR_CONT_LAST_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OCRDMA_REG_NSMR_CONT_LAST_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w24, w8
	str	w8, [x0, #4]
	cmp	w23, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x24, #0
	mov	w9, w23
	ldr	x8, [x21, #8]
	sbfiz	x22, x22, #2, #32
	lsl	x23, x9, #3
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	w0, [x9, x22]
	str	w0, [x8, x24]
	bl	_upper_32_bits
	ldr	x8, [x21, #8]
	add	x9, x8, x24
	str	w0, [x9, #4]
	add	x22, x22, #4
	add	x24, x24, #8
	cmp	x23, x24
	b.ne	LBB0_3
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	bl	_ocrdma_mbx_cmd
	mov	x19, x0
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_CMD_REGISTER_NSMR_CONT,4,2 ; @OCRDMA_CMD_REGISTER_NSMR_CONT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OCRDMA_REG_NSMR_CONT_NUM_PBL_SHIFT,4,2 ; @OCRDMA_REG_NSMR_CONT_NUM_PBL_SHIFT
	.comm	_OCRDMA_REG_NSMR_CONT_PBL_SHIFT_MASK,4,2 ; @OCRDMA_REG_NSMR_CONT_PBL_SHIFT_MASK
	.comm	_OCRDMA_REG_NSMR_CONT_LAST_SHIFT,4,2 ; @OCRDMA_REG_NSMR_CONT_LAST_SHIFT
	.no_dead_strip	_ocrdma_mbx_reg_mr_cont
.subsections_via_symbols
