	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_send_routine
_get_send_routine:                      ## @get_send_routine
	.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
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_dd_from_ibdev
	movq	%rax, %r13
	movq	16(%rbx), %r15
	movq	8(%r12), %r14
	movq	_HFI1_HAS_SEND_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r13), %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	addq	$8, %r13
	jmp	LBB0_12
LBB0_2:
	movl	4(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$131, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$130, %eax
	je	LBB0_1
	jmp	LBB0_11
LBB0_6:
	movl	(%r15), %eax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	addl	(%r14), %eax
	movl	%eax, %r14d
	shrl	$31, %r14d
	addl	%eax, %r14d
	sarl	%r14d
	movl	%r14d, (%r15)
	movq	_piothreshold@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_11
## %bb.7:
	movl	(%rbx), %esi
	callq	_min
	cmpl	%eax, %r14d
	jg	LBB0_11
## %bb.8:
	movq	_OPMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r12), %edi
	callq	_BIT
	movq	_pio_opmask@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r12), %edx
	sarl	$5, %edx
	movslq	%edx, %rdx
	testl	%eax, (%rcx,%rdx,4)
	je	LBB0_11
## %bb.9:
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_iowait_sdma_pending
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$4, %rdi
	callq	_sdma_txreq_built
	testl	%eax, %eax
	je	LBB0_1
LBB0_11:
	addq	$4, %r13
LBB0_12:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFI1_HAS_SEND_DMA,4,2          ## @HFI1_HAS_SEND_DMA
	.comm	_piothreshold,4,2               ## @piothreshold
	.comm	_OPMASK,4,2                     ## @OPMASK
	.comm	_pio_opmask,8,3                 ## @pio_opmask
	.no_dead_strip	_get_send_routine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_send_routine
_get_send_routine:                      ; @get_send_routine
	.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	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_dd_from_ibdev
	mov	x19, x0
	ldr	x23, [x21, #16]
	ldr	x22, [x20, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _HFI1_HAS_SEND_DMA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HFI1_HAS_SEND_DMA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
	add	x8, x19, #8
	b	LBB0_11
LBB0_2:
	ldr	w8, [x21, #4]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #131
	b.eq	LBB0_5
; %bb.4:
	cmp	w8, #130
	b.eq	LBB0_1
	b	LBB0_10
LBB0_5:
	ldr	w8, [x22]
	ldr	w9, [x23]
	add	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w24, w8, #1
	str	w24, [x23]
Lloh3:
	adrp	x8, _piothreshold@GOTPAGE
Lloh4:
	ldr	x8, [x8, _piothreshold@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	cbz	w0, LBB0_10
; %bb.6:
	ldr	w1, [x21]
	bl	_min
	cmp	w24, w0
	b.gt	LBB0_10
; %bb.7:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _OPMASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OPMASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_BIT
Lloh9:
	adrp	x8, _pio_opmask@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pio_opmask@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w9, [x20]
	asr	w9, w9, #5
	ldr	w8, [x8, w9, sxtw #2]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.8:
	add	x0, x23, #4
	bl	_iowait_sdma_pending
	cbnz	w0, LBB0_10
; %bb.9:
	add	x0, x22, #4
	bl	_sdma_txreq_built
	cbz	w0, LBB0_1
LBB0_10:
	add	x8, x19, #4
LBB0_11:
	ldr	w0, [x8]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HFI1_HAS_SEND_DMA,4,2          ; @HFI1_HAS_SEND_DMA
	.comm	_piothreshold,4,2               ; @piothreshold
	.comm	_OPMASK,4,2                     ; @OPMASK
	.comm	_pio_opmask,8,3                 ; @pio_opmask
	.no_dead_strip	_get_send_routine
.subsections_via_symbols
