	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdma_set_ctxt_sge
_rdma_set_ctxt_sge:                     ## @rdma_set_ctxt_sge
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, (%rsi)
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rsi)
	testl	%r9d, %r9d
	jle	LBB0_8
## %bb.1:
	movq	%rcx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%r9d, %ecx
	movq	8(%rsi), %rax
	addq	$8, %rbx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rsi
	xorl	%r13d, %r13d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, (%rax,%r13)
	movq	(%rdx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax,%r13)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%rbx), %rcx
	movq	%rcx, 8(%rax,%r13)
	addq	%rcx, (%r8)
	addq	$24, %r13
	addq	$16, %rbx
	cmpq	%r13, %rsi
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, 8(%rax,%r13)
	movq	(%rbx), %rdi
	testq	%rdx, %rdx
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_virt_to_page
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	(%rbx), %rdi
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	notq	%r14
	andq	%rdi, %r14
	movq	8(%r15), %rax
	movl	(%rax), %r12d
	callq	_virt_to_page
	movq	-8(%rbx), %rcx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	%r12d, %edi
	movq	%rax, %rsi
	movq	%r14, %rdx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	callq	_ib_dma_map_page
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%r13)
	movq	8(%r15), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_ib_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %eax
	movq	8(%r14), %rcx
	movl	%eax, 16(%rcx,%r13)
	movq	%r15, %rdi
	callq	_atomic_inc
	movq	8(%r14), %rax
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rdma_set_ctxt_sge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdma_set_ctxt_sge
_rdma_set_ctxt_sge:                     ; @rdma_set_ctxt_sge
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w5, [x1]
Lloh0:
	adrp	x25, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [x1, #16]
	cmp	w5, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x4
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x26, #0
	ldr	x8, [x1, #8]
	add	x27, x3, #8
	mov	w9, #24
	umull	x28, w5, w9
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x0, [x9]
	ldr	x10, [x20]
	ldr	w10, [x10]
	str	w10, [x9, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldur	x9, [x27, #-8]
	add	x10, x8, x26
	str	x9, [x10, #8]
	ldr	x10, [x19]
	add	x9, x10, x9
	str	x9, [x19]
	add	x26, x26, #24
	add	x27, x27, #16
	cmp	x28, x26
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x8, x26
	str	xzr, [x9, #8]
	ldr	x0, [x27]
	cbnz	x20, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_virt_to_page
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x0, [x27]
Lloh2:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	bic	x23, x0, x8
	ldr	x8, [x22, #8]
	ldr	w24, [x8]
	bl	_virt_to_page
	mov	x1, x0
	ldur	x3, [x27, #-8]
	ldr	w4, [x25]
	mov	x0, x24
	mov	x2, x23
	bl	_ib_dma_map_page
	mov	x1, x0
	ldr	x8, [x21, #8]
	str	x0, [x8, x26]
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	bl	_ib_dma_mapping_error
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22, #4]
	ldr	x9, [x21, #8]
	add	x9, x9, x26
	str	w8, [x9, #16]
	mov	x0, x22
	bl	_atomic_inc
	ldr	x8, [x21, #8]
	b	LBB0_3
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rdma_set_ctxt_sge
.subsections_via_symbols
