	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aq_nic_xmit                    ## -- Begin function aq_nic_xmit
	.p2align	4, 0x90
_aq_nic_xmit:                           ## @aq_nic_xmit
	.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	(%rsi), %eax
	xorl	%edx, %edx
	divl	32(%rdi)
	movl	%edx, %r15d
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_skb_shinfo
	movl	(%rax), %r14d
	incl	%r14d
	movq	24(%rbx), %r13
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_AQ_NIC_TCVEC2RING
	movq	_AQ_CFG_SKB_FRAGS_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	jbe	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_2:
	movq	(%r13,%rax,8), %r15
	movq	%r15, %rdi
	callq	_aq_ring_update_queue_state
	movl	16(%rbx), %edi
	movl	8(%r15), %esi
	callq	___netif_subqueue_stopped
	testq	%rax, %rax
	je	LBB0_3
LBB0_6:
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	movq	%r12, %r14
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_aq_nic_map_skb
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	8(%rbx), %rax
	movl	(%rbx), %edi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	incl	4(%r15)
	movl	8(%r14), %ecx
	addl	%ecx, (%r15)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_AQ_CFG_SKB_FRAGS_MAX,4,2       ## @AQ_CFG_SKB_FRAGS_MAX
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aq_nic_xmit                    ; -- Begin function aq_nic_xmit
	.p2align	2
_aq_nic_xmit:                           ; @aq_nic_xmit
	.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	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	ldr	w9, [x0, #32]
	udiv	w10, w8, w9
	msub	w22, w10, w9, w8
Lloh0:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x1
	bl	_skb_shinfo
	ldr	w8, [x0]
	add	w24, w8, #1
	ldr	x23, [x20, #24]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	bl	_AQ_NIC_TCVEC2RING
Lloh3:
	adrp	x8, _AQ_CFG_SKB_FRAGS_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AQ_CFG_SKB_FRAGS_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ls	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_dev_kfree_skb_any
	b	LBB0_4
LBB0_2:
	ldr	x22, [x23, x0, lsl #3]
	mov	x0, x22
	bl	_aq_ring_update_queue_state
	ldr	w0, [x20, #16]
	ldr	w1, [x22, #8]
	bl	___netif_subqueue_stopped
	cbz	x0, LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
LBB0_4:
	mov	x0, x21
	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
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_aq_nic_map_skb
	mov	x21, x0
	bl	_likely
	cbz	x0, LBB0_3
; %bb.6:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w0, [x20]
	mov	x1, x22
	mov	x2, x21
	blr	x8
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.7:
	add	x8, x19, #8
	ldr	d0, [x22]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x22]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_AQ_CFG_SKB_FRAGS_MAX,4,2       ; @AQ_CFG_SKB_FRAGS_MAX
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
.subsections_via_symbols
