	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_dma_map_tx               ## -- Begin function ipoib_dma_map_tx
	.p2align	4, 0x90
_ipoib_dma_map_tx:                      ## @ipoib_dma_map_tx
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r15
	movq	8(%rsi), %r13
	movq	%r13, %rdi
	callq	_skb_headlen
	xorl	%r12d, %r12d
	testq	%rax, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%r13, %rbx
	movl	(%r13), %r13d
	movq	%rbx, %rdi
	callq	_skb_headlen
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	%rax, %rdx
	callq	_ib_dma_map_single
	movl	%eax, (%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ib_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_12
## %bb.3:
	movl	$1, %r14d
	movq	%rbx, %r13
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_1:
	movq	%rax, %rbx
	xorl	%r14d, %r14d
LBB0_4:
	movq	%r13, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.5:
	xorl	%ecx, %ecx
	cmpq	$1, %rbx
	movl	$0, %eax
	sbbq	%rax, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r14,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rbx
	addq	%r15, %rbx
	movq	%rbx, %rdi
	callq	_skb_frag_page
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_skb_frag_off
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rbx
	callq	_skb_frag_size
	movl	(%rbx), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_ib_dma_map_page
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r15)
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ib_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movq	%r13, %rdi
	callq	_skb_shinfo
	movslq	(%rax), %rax
	addq	$4, %r15
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	decq	%rcx
	cmpq	%rax, %r14
	jl	LBB0_6
## %bb.14:
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_7:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	movq	%r13, %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_10
## %bb.8:
	addq	$-4, %r15
	movl	$1, %r13d
	subq	%rax, %r13
	subq	%rax, %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rdi
	addq	%r15, %rdi
	movl	%ebx, %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %ebx
	callq	_skb_frag_size
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_ib_dma_unmap_page
	decq	%rbx
	decq	%r13
	addq	$-4, %r15
	cmpq	$1, %r13
	jg	LBB0_9
LBB0_10:
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_12
## %bb.11:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_skb_headlen
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_ib_dma_unmap_single
LBB0_12:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_dma_map_tx               ; -- Begin function ipoib_dma_map_tx
	.p2align	2
_ipoib_dma_map_tx:                      ; @ipoib_dma_map_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	ldp	x25, x20, [x1]
	mov	x0, x20
	bl	_skb_headlen
	mov	x23, x0
Lloh0:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w22, [x20]
	mov	x0, x20
	bl	_skb_headlen
	mov	x2, x0
	ldr	w3, [x26]
	mov	x0, x19
	mov	x1, x22
	bl	_ib_dma_map_single
	mov	x1, x0
	str	w0, [x25]
	mov	x0, x19
	bl	_ib_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_14
; %bb.2:
	mov	w21, #1
	b	LBB0_4
LBB0_3:
	mov	x21, #0
LBB0_4:
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	mov	x27, #0
	mov	x28, #-4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x22, x8, x27, lsl #2
	mov	x0, x22
	bl	_skb_frag_page
	mov	x23, x0
	mov	x0, x22
	bl	_skb_frag_off
	mov	x24, x0
	mov	x0, x22
	bl	_skb_frag_size
	mov	x3, x0
	ldr	w4, [x26]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_ib_dma_map_page
	mov	x1, x0
	add	x8, x27, x21
	str	w0, [x25, x8, lsl #2]
	mov	x0, x19
	bl	_ib_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x27, #1
	mov	x0, x20
	bl	_skb_shinfo
	ldrsw	x8, [x0]
	add	x28, x28, #4
	cmp	x27, x8
	b.lt	LBB0_6
LBB0_8:
	mov	w0, #0
	b	LBB0_15
LBB0_9:
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	cbz	w27, LBB0_12
; %bb.10:
	cmp	x23, #0
	csetm	x21, eq
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x0, x8, x28
	add	w8, w21, w27
	ldr	w22, [x25, w8, uxtw #2]
	bl	_skb_frag_size
	mov	x2, x0
	ldr	w3, [x26]
	mov	x0, x19
	mov	x1, x22
	bl	_ib_dma_unmap_page
	sub	x28, x28, #4
	subs	x27, x27, #1
	b.gt	LBB0_11
LBB0_12:
	cbz	x23, LBB0_14
; %bb.13:
	ldr	w21, [x25]
	mov	x0, x20
	bl	_skb_headlen
	mov	x2, x0
	ldr	w3, [x26]
	mov	x0, x19
	mov	x1, x21
	bl	_ib_dma_unmap_single
LBB0_14:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
