	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpcrdma_map_one
_rpcrdma_map_one:                       ## @rpcrdma_map_one
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	testl	%edx, %edx
	jne	LBB0_1
## %bb.2:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	24(%rbx), %edx
	movl	%edx, 4(%rbx)
	movq	16(%rbx), %r14
	movq	(%rdi), %rax
	movl	(%rax), %r15d
	movl	8(%rbx), %esi
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movl	%esi, %edi
	callq	_offset_in_page
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_ib_dma_map_page
	jmp	LBB0_6
LBB0_5:
	movl	%r15d, %edi
	callq	_ib_dma_map_single
LBB0_6:
	movl	%eax, 12(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_rpcrdma_map_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpcrdma_map_one
_rpcrdma_map_one:                       ; @rpcrdma_map_one
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
Lloh0:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DMA_TO_DEVICE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DMA_TO_DEVICE@GOTPAGEOFF]
	cmp	w2, #0
	csel	x8, x9, x8, eq
	ldr	w3, [x8]
	ldr	w2, [x1, #24]
	stp	w3, w2, [x1]
	ldr	x21, [x1, #16]
	ldr	x8, [x0]
	ldr	w20, [x8]
	ldr	w1, [x1, #8]
	cbz	x21, LBB0_2
; %bb.1:
	mov	x0, x1
	bl	_offset_in_page
	mov	x2, x0
	ldp	w4, w3, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_ib_dma_map_page
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_ib_dma_map_single
LBB0_3:
	str	w0, [x19, #12]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_rpcrdma_map_one
.subsections_via_symbols
