	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_verbs_send_dma            ## -- Begin function hfi1_verbs_send_dma
	.p2align	4, 0x90
_hfi1_verbs_send_dma:                   ## @hfi1_verbs_send_dma
	.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	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	8(%rax), %rsi
	movq	(%r15), %r13
	movq	24(%r15), %rdi
	movl	(%r13), %ebx
	movl	4(%r13), %r12d
	movq	32(%r15), %rcx
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	cmpq	$0, 8(%r13)
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	leal	(,%rbx,4), %edi
	movl	%r12d, %esi
	callq	_hfi1_get_16b_padding
                                        ## kill: def $eax killed $eax def $rax
	addl	%r12d, %eax
	movq	_SIZE_OF_CRC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rax,%rcx,4), %eax
	movq	_SIZE_OF_LT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movq	(%r15), %r13
	jmp	LBB0_3
LBB0_2:
	leal	3(%r12), %eax
LBB0_3:
	sarl	$2, %eax
	addl	%eax, %ebx
	incl	%ebx
	leaq	16(%r13), %r14
	movq	%r14, %rdi
	callq	_sdma_txreq_built
	testl	%eax, %eax
	je	LBB0_4
LBB0_14:
	movl	%ebx, %r12d
	movl	20(%r13), %edi
	movl	8(%r15), %ecx
	movl	12(%r15), %esi
	movq	%r14, %rdx
	callq	_sdma_send_txreq
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_ECOMM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	addl	%ebx, %eax
	cmovel	%ecx, %ebx
	jmp	LBB0_19
LBB0_4:
	xorl	%edi, %edi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_dd_from_ibdev
	movl	%eax, %edi
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_sc_to_vlt
	movl	%eax, %r8d
	movq	(%r15), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.7:
	movq	_PBC_PACKET_BYPASS@GOTPCREL(%rip), %rax
	movq	_PBC_INSERT_BYPASS_ICRC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	jmp	LBB0_9
LBB0_16:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_update_tx_opstats
	movl	(%r14), %edi
	callq	_dd_from_ibdev
	movl	%eax, %r14d
	movq	(%r15), %r15
	addq	$8, %r15
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_ib_is_sc5
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_trace_sdma_output_ibhdr
	jmp	LBB0_19
LBB0_5:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	jmp	LBB0_13
LBB0_8:
	movl	%ebx, %edi
	movl	%r8d, %ebx
	callq	_ib_is_sc5
	movl	%ebx, %r8d
	movl	%eax, %esi
	movq	_PBC_DC_INFO_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
LBB0_9:
	orl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r8d, %ecx
	movl	%r12d, %ebx
	movq	%rax, %r12
	movl	%ebx, %r8d
	callq	_create_pbc
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%r15), %esi
	movq	%r12, %rdi
	callq	_hfi1_dbg_should_fault_tx
	movl	%eax, %edi
	callq	_unlikely
	movl	16(%r15), %esi
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_hfi1_fault_tx
	jmp	LBB0_12
LBB0_11:
	movl	%esi, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_update_hcrc
LBB0_12:
	movl	%eax, %r8d
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, %rax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_13:
	movl	4(%rax), %eax
	movl	%eax, 24(%r13)
	movl	20(%r13), %edi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_build_verbs_tx_desc
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.17:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_wait_kmem
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movq	(%r15), %rdi
	callq	_hfi1_put_txreq
	movq	$0, (%r15)
	xorl	%ebx, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_OF_CRC,4,2                ## @SIZE_OF_CRC
	.comm	_SIZE_OF_LT,4,2                 ## @SIZE_OF_LT
	.comm	_PBC_PACKET_BYPASS,4,2          ## @PBC_PACKET_BYPASS
	.comm	_PBC_INSERT_BYPASS_ICRC,4,2     ## @PBC_INSERT_BYPASS_ICRC
	.comm	_PBC_DC_INFO_SHIFT,4,2          ## @PBC_DC_INFO_SHIFT
	.comm	_ECOMM,4,2                      ## @ECOMM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_verbs_send_dma            ; -- Begin function hfi1_verbs_send_dma
	.p2align	2
_hfi1_verbs_send_dma:                   ; @hfi1_verbs_send_dma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x28, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x8, #8]
	ldr	x24, [x1]
	ldp	w21, w26, [x24]
	ldp	x22, x23, [x1, #24]
	ldr	w8, [x8]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	x8, [x24, #8]
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	cbz	x8, LBB0_2
; %bb.1:
	lsl	w0, w21, #2
	mov	x1, x26
	bl	_hfi1_get_16b_padding
	add	w8, w0, w26
Lloh0:
	adrp	x9, _SIZE_OF_CRC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIZE_OF_CRC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w8, w8, w9, lsl #2
Lloh3:
	adrp	x9, _SIZE_OF_LT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SIZE_OF_LT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w8, w9
	ldr	x24, [x19]
	b	LBB0_3
LBB0_2:
	add	w8, w26, #3
LBB0_3:
	add	w8, w21, w8, asr #2
	add	w25, w8, #1
	add	x27, x24, #16
	mov	x0, x27
	bl	_sdma_txreq_built
	cbz	w0, LBB0_6
LBB0_4:
	ldr	w0, [x24, #20]
	ldp	w3, w1, [x19, #8]
	mov	x2, x27
	bl	_sdma_send_txreq
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.5:
Lloh6:
	adrp	x8, _ECOMM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ECOMM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w22, w8
	csel	w22, wzr, w22, eq
	b	LBB0_18
LBB0_6:
	cmp	w28, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_15
; %bb.7:
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w0, [x20]
	bl	_dd_from_ibdev
	ldr	w23, [sp, #28]                  ; 4-byte Folded Reload
	mov	x1, x23
	bl	_sc_to_vlt
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_10
; %bb.8:
Lloh9:
	adrp	x8, _PBC_PACKET_BYPASS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PBC_PACKET_BYPASS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _PBC_INSERT_BYPASS_ICRC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PBC_INSERT_BYPASS_ICRC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	bl	_update_tx_opstats
	ldr	w0, [x20]
	bl	_dd_from_ibdev
	mov	x20, x0
	ldr	x8, [x19]
	add	x19, x8, #8
	ldr	w0, [sp, #28]                   ; 4-byte Folded Reload
	bl	_ib_is_sc5
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_trace_sdma_output_ibhdr
	b	LBB0_18
LBB0_10:
	mov	x0, x23
	bl	_ib_is_sc5
Lloh15:
	adrp	x8, _PBC_DC_INFO_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PBC_DC_INFO_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	lsl	w8, w0, w8
LBB0_11:
	orr	w1, w8, w28
	ldr	w2, [x20, #8]
	mov	x0, x22
	mov	x3, x21
	mov	x4, x25
	bl	_create_pbc
	mov	x21, x0
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_hfi1_dbg_should_fault_tx
	bl	_unlikely
	ldr	w1, [x19, #16]
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x2, x21
	bl	_hfi1_fault_tx
	b	LBB0_14
LBB0_13:
	mov	x0, x1
	mov	x1, x21
	bl	_update_hcrc
LBB0_14:
	mov	x28, x0
LBB0_15:
	ldr	x3, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w8, [x20, #4]
	str	w8, [x24, #24]
	ldr	w0, [x24, #20]
	mov	x1, x26
	mov	x2, x24
	mov	x4, x28
	bl	_build_verbs_tx_desc
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.16:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_wait_kmem
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.17:
	ldr	x0, [x19]
	bl	_hfi1_put_txreq
	str	xzr, [x19]
LBB0_18:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_OF_CRC,4,2                ; @SIZE_OF_CRC
	.comm	_SIZE_OF_LT,4,2                 ; @SIZE_OF_LT
	.comm	_PBC_PACKET_BYPASS,4,2          ; @PBC_PACKET_BYPASS
	.comm	_PBC_INSERT_BYPASS_ICRC,4,2     ; @PBC_INSERT_BYPASS_ICRC
	.comm	_PBC_DC_INFO_SHIFT,4,2          ; @PBC_DC_INFO_SHIFT
	.comm	_ECOMM,4,2                      ; @ECOMM
.subsections_via_symbols
