	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ec_bhf_start_xmit
_ec_bhf_start_xmit:                     ## @ec_bhf_start_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	16(%r13), %r14
	leaq	(%rax,%rax,2), %r12
	leaq	(%r14,%r12,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	8(%r14,%r12,4), %esi
	movq	%rbx, %rdi
	callq	_skb_copy_and_csum_dev
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movl	%eax, 4(%r14,%r12,4)
	movq	_TX_HDR_PORT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14,%r12,4)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ec_bhf_send_packet
	movq	(%r13), %rax
	incq	%rax
	movslq	8(%r13), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	movq	%rdx, (%r13)
	leaq	(%rdx,%rdx,2), %rdi
	shlq	$2, %rdi
	addq	16(%r13), %rdi
	callq	_ec_bhf_desc_sent
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_stop_queue
LBB0_5:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 12(%r13)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_HDR_PORT_0,4,2              ## @TX_HDR_PORT_0
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_ec_bhf_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ec_bhf_start_xmit
_ec_bhf_start_xmit:                     ; @ec_bhf_start_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	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x0]
	mov	w24, #12
	madd	x23, x9, x24, x8
	ldr	w1, [x23, #8]
	mov	x0, x19
	bl	_skb_copy_and_csum_dev
	ldr	w22, [x19]
	mov	x0, x23
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x22
	bl	_cpu_to_le16
	str	w0, [x23, #4]
Lloh0:
	adrp	x8, _TX_HDR_PORT_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_HDR_PORT_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x23]
	mov	x0, x20
	mov	x1, x23
	bl	_ec_bhf_send_packet
	ldr	x8, [x20]
	add	x8, x8, #1
	ldrsw	x9, [x20, #8]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	str	x8, [x20]
	ldr	x9, [x20, #16]
	madd	x0, x8, x24, x9
	bl	_ec_bhf_desc_sent
	cbnz	w0, LBB0_2
; %bb.1:
	bl	_smp_wmb
	mov	x0, x21
	bl	_netif_stop_queue
LBB0_2:
	ldr	w8, [x20, #12]
	add	w8, w8, w22
	str	w8, [x20, #12]
	mov	x0, x19
	bl	_dev_kfree_skb
Lloh3:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_HDR_PORT_0,4,2              ; @TX_HDR_PORT_0
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_ec_bhf_start_xmit
.subsections_via_symbols
