	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yellowfin_start_xmit
_yellowfin_start_xmit:                  ## @yellowfin_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movl	(%r15), %eax
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rbx
	cltd
	idivl	(%rbx)
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	_gx_fix@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movl	(%r13), %r12d
	movl	8(%r13), %eax
	addl	%r12d, %eax
	andl	$31, %eax
	leal	-25(%rax), %ecx
	cmpl	$-25, %ecx
	ja	LBB0_4
## %bb.2:
	subl	%eax, %r12d
	addl	$33, %r12d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_skb_padto
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	48(%r15), %rax
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movq	$0, (%rax,%rcx,8)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_wake_queue
	jmp	LBB0_11
LBB0_4:
	movq	48(%r15), %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %ecx
	movq	%r13, (%rax,%rcx,8)
	movq	32(%r15), %rax
	leal	(%r14,%r14), %r12d
	shlq	$5, %r12
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rax,%r12)
	movl	40(%r15), %edi
	movq	8(%r13), %rsi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	32(%r15), %rcx
	movq	%rax, 16(%rcx,%r12)
	movl	(%r15), %eax
	incl	%eax
	movl	%eax, (%r15)
	cltd
	idivl	(%rbx)
	movl	%edx, %ebx
	movq	_CMD_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	32(%r15), %rcx
	addl	%ebx, %ebx
	shlq	$5, %rbx
	movq	%rax, 8(%rcx,%rbx)
	imull	$-1431655765, %r14d, %edx       ## imm = 0xAAAAAAAB
	rorl	%edx
	xorl	%edi, %edi
	movq	_CMD_TX_PKT@GOTPCREL(%rip), %rcx
	movq	_BRANCH_IFTRUE@GOTPCREL(%rip), %rax
	cmpl	$715827883, %edx                ## imm = 0x2AAAAAAB
	jae	LBB0_6
## %bb.5:
	movq	_INTR_ALWAYS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
LBB0_6:
	orl	(%rcx), %edi
	orl	(%rax), %edi
	orl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	callq	_cpu_to_le32
	movq	32(%r15), %rcx
	movq	%rax, 8(%rcx,%r12)
	movq	_TxCtrl@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r15), %rsi
	movl	$268439552, %edi                ## imm = 0x10001000
	callq	_iowrite32
	movslq	(%r15), %rax
	subq	8(%r15), %rax
	movq	_TX_QUEUE_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_start_queue
	jmp	LBB0_9
LBB0_8:
	movl	$1, 16(%r15)
LBB0_9:
	movq	_yellowfin_debug@GOTPCREL(%rip), %rax
	cmpl	$5, (%rax)
	jl	LBB0_11
## %bb.10:
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	(%r15), %rcx
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_netdev_printk
LBB0_11:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_gx_fix,8,3                     ## @gx_fix
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_CMD_STOP,4,2                   ## @CMD_STOP
	.comm	_CMD_TX_PKT,4,2                 ## @CMD_TX_PKT
	.comm	_INTR_ALWAYS,4,2                ## @INTR_ALWAYS
	.comm	_BRANCH_IFTRUE,4,2              ## @BRANCH_IFTRUE
	.comm	_TxCtrl,8,3                     ## @TxCtrl
	.comm	_TX_QUEUE_SIZE,8,3              ## @TX_QUEUE_SIZE
	.comm	_yellowfin_debug,4,2            ## @yellowfin_debug
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Yellowfin transmit frame #%d queued in slot %d\n"

	.comm	_BRANCH_ALWAYS,4,2              ## @BRANCH_ALWAYS
	.no_dead_strip	_yellowfin_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yellowfin_start_xmit
_yellowfin_start_xmit:                  ; @yellowfin_start_xmit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x23, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	w22, [x23]
	mov	x0, x19
	bl	_netif_stop_queue
	ldr	w8, [x20]
Lloh0:
	adrp	x24, _TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w9, [x24]
	sdiv	w10, w8, w9
	msub	w21, w10, w9, w8
Lloh2:
	adrp	x8, _gx_fix@GOTPAGE
Lloh3:
	ldr	x8, [x8, _gx_fix@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w9, [x23, #8]
	ldr	w8, [x23]
	add	w9, w8, w9
	and	w9, w9, #0x1f
	sub	w10, w9, #25
	cmn	w10, #25
	b.hi	LBB0_4
; %bb.2:
	sub	w8, w8, w9
	add	w22, w8, #33
	mov	x0, x23
	mov	x1, x22
	bl	_skb_padto
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x20, #48]
	str	xzr, [x8, w21, uxtw #3]
	mov	x0, x19
	bl	_netif_wake_queue
	b	LBB0_9
LBB0_4:
	ldr	x8, [x20, #48]
	str	x23, [x8, w21, uxtw #3]
	ldr	x8, [x20, #32]
	lsl	w9, w21, #1
	lsl	x25, x9, #5
	str	w22, [x8, x25]
	ldr	w0, [x20, #40]
	ldr	x1, [x23, #8]
Lloh5:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x2, x22
	bl	_pci_map_single
	bl	_cpu_to_le32
	ldr	x8, [x20, #32]
	add	x8, x8, x25
	str	x0, [x8, #16]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldr	w9, [x24]
	sdiv	w10, w8, w9
	msub	w23, w10, w9, w8
Lloh8:
	adrp	x8, _CMD_STOP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMD_STOP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x20, #32]
	lsl	w9, w23, #1
	add	x8, x8, x9, lsl #5
Lloh11:
	adrp	x9, _CMD_TX_PKT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CMD_TX_PKT@GOTPAGEOFF]
	str	x0, [x8, #8]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _BRANCH_IFTRUE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BRANCH_IFTRUE@GOTPAGEOFF]
Lloh16:
	adrp	x10, _INTR_ALWAYS@GOTPAGE
Lloh17:
	ldr	x10, [x10, _INTR_ALWAYS@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	ldr	w10, [x10]
	mov	w11, #43691
	movk	w11, #43690, lsl #16
	mul	w11, w21, w11
	ror	w11, w11, #1
	mov	w12, #43691
	movk	w12, #10922, lsl #16
	cmp	w11, w12
	csel	w10, w10, wzr, lo
	orr	w8, w8, w10
	orr	w8, w9, w8
	orr	w0, w8, w22
	bl	_cpu_to_le32
	ldp	x9, x8, [x20, #24]
	add	x8, x8, x25
	str	x0, [x8, #8]
Lloh20:
	adrp	x8, _TxCtrl@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TxCtrl@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	x1, x8, x9
	mov	w0, #268439552
	bl	_iowrite32
	ldrsw	x8, [x20]
	ldr	x9, [x20, #8]
Lloh23:
	adrp	x10, _TX_QUEUE_SIZE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _TX_QUEUE_SIZE@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	sub	x8, x8, x9
	cmp	x8, x10
	b.ge	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_netif_start_queue
	b	LBB0_7
LBB0_6:
	mov	w8, #1
	str	w8, [x20, #16]
LBB0_7:
Lloh26:
	adrp	x8, _yellowfin_debug@GOTPAGE
Lloh27:
	ldr	x8, [x8, _yellowfin_debug@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w8, #5
	b.lt	LBB0_9
; %bb.8:
Lloh29:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldrsw	x3, [x20]
Lloh32:
	adrp	x2, l_.str@PAGE
Lloh33:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x19
	mov	x4, x21
	bl	_netdev_printk
LBB0_9:
Lloh34:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_gx_fix,8,3                     ; @gx_fix
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_CMD_STOP,4,2                   ; @CMD_STOP
	.comm	_CMD_TX_PKT,4,2                 ; @CMD_TX_PKT
	.comm	_INTR_ALWAYS,4,2                ; @INTR_ALWAYS
	.comm	_BRANCH_IFTRUE,4,2              ; @BRANCH_IFTRUE
	.comm	_TxCtrl,8,3                     ; @TxCtrl
	.comm	_TX_QUEUE_SIZE,8,3              ; @TX_QUEUE_SIZE
	.comm	_yellowfin_debug,4,2            ; @yellowfin_debug
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Yellowfin transmit frame #%d queued in slot %d\n"

	.comm	_BRANCH_ALWAYS,4,2              ; @BRANCH_ALWAYS
	.no_dead_strip	_yellowfin_start_xmit
.subsections_via_symbols
