	.file	"extr_if_ntb.c_ntb_transmit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"TX: ntb_transmit"
	.text
	.p2align 4
	.type	ntb_transmit, @function
ntb_transmit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	if_getsoftc@PLT
	mov	edi, DWORD PTR KTR_NTB[rip]
	lea	rsi, .LC0[rip]
	mov	rbp, rax
	call	CTR0@PLT
	mov	rdi, r12
	call	M_HASHTYPE_GET@PLT
	cmp	rax, QWORD PTR M_HASHTYPE_NONE[rip]
	je	.L2
	mov	eax, DWORD PTR [r12]
	cdq
	idiv	DWORD PTR 0[rbp]
.L3:
	movsx	rdx, edx
	mov	edi, r13d
	sal	rdx, 4
	add	rdx, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR 12[rdx]
	mov	rbp, rdx
	mov	rdx, r12
	call	drbr_enqueue@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L8
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	r13, 8[rbp]
	mov	rdi, r13
	call	mtx_trylock@PLT
	test	rax, rax
	je	.L5
	mov	rdi, rbp
	call	ntb_transmit_locked@PLT
	mov	rdi, r13
	call	mtx_unlock@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR curcpu[rip]
	cdq
	idiv	DWORD PTR 0[rbp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR 4[rbp]
	mov	rsi, rbp
	call	taskqueue_enqueue@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ntb_transmit, .-ntb_transmit
	.comm	curcpu,4,4
	.comm	M_HASHTYPE_NONE,8,8
	.comm	KTR_NTB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_if_ntb.c_ntb_transmit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TX: ntb_transmit\000"
	.global	__aeabi_idivmod
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ntb_transmit, %function
ntb_transmit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r6, r0
	bl	if_getsoftc
	ldr	r3, .L9
	ldr	r1, .L9+4
	mov	r5, r0
	ldr	r0, [r3]
	bl	CTR0
	mov	r0, r4
	bl	M_HASHTYPE_GET
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r0, r3
	ldreq	r3, .L9+12
	ldrne	r1, [r5]
	ldreq	r1, [r5]
	ldrne	r0, [r4]
	ldreq	r0, [r3]
	bl	__aeabi_idivmod
	ldr	r5, [r5, #4]
	mov	r2, r4
	add	r5, r5, r1, lsl #4
	mov	r0, r6
	ldr	r1, [r5, #12]
	bl	drbr_enqueue
	subs	r4, r0, #0
	beq	.L8
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	add	r6, r5, #8
	mov	r0, r6
	bl	mtx_trylock
	cmp	r0, #0
	beq	.L5
	mov	r0, r5
	bl	ntb_transmit_locked
	mov	r0, r6
	bl	mtx_unlock
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L5:
	mov	r1, r5
	ldr	r0, [r5, #4]
	bl	taskqueue_enqueue
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	KTR_NTB
	.word	.LC0
	.word	M_HASHTYPE_NONE
	.word	curcpu
	.size	ntb_transmit, .-ntb_transmit
	.comm	curcpu,4,4
	.comm	M_HASHTYPE_NONE,4,4
	.comm	KTR_NTB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
