	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_gbe_tx_queue
_pch_gbe_tx_queue:                      ## @pch_gbe_tx_queue
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rax
	movq	_PCH_GBE_SHORT_PKT@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setl	%dil
	callq	_unlikely
	xorl	%ecx, %ecx
	testq	%rax, %rax
	movq	_PCH_GBE_TXD_CTRL_APAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %r15d
	cmovel	%ecx, %r15d
	movq	(%r13), %rsi
	movq	8(%r13), %rcx
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_PCH_GBE_TXD_CTRL_TCPIP_ACC_OFF@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r14d
	movl	%r14d, %edi
	orl	%r15d, %edi
	cmpq	%rdx, %rcx
	cmovel	%edi, %r15d
	cmpq	(%rbx), %rsi
	cmovll	%edi, %r15d
	jge	LBB0_9
## %bb.1:
	cmpq	%rdx, %rcx
	je	LBB0_9
## %bb.2:
	orl	%eax, %r14d
	movq	16(%r13), %rbx
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	jne	LBB0_8
## %bb.3:
	movq	%r13, %rdi
	callq	_ip_hdr
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_skb_transport_offset
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.4:
	movq	$0, 32(%r13)
	movq	%r13, %rdi
	callq	_tcp_hdr
	movq	$0, (%rax)
	movq	(%r13), %rdx
	movl	%r12d, %esi
	movl	%r12d, %r12d
	subq	%r12, %rdx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_skb_checksum
	movq	%rax, 32(%r13)
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	(%r13), %rdx
	subq	%r12, %rdx
	movq	(%r15), %rcx
	movq	%rax, %r8
	callq	_csum_tcpudp_magic
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_tcp_hdr
	jmp	LBB0_7
LBB0_5:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_8
## %bb.6:
	movq	$0, 32(%r13)
	movq	%r13, %rdi
	callq	_udp_hdr
	movq	$0, (%rax)
	movq	(%r13), %rdx
	movl	%r12d, %esi
	movl	%r12d, %r12d
	subq	%r12, %rdx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_skb_checksum
	movq	%rax, 32(%r13)
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	(%r13), %rdx
	subq	%r12, %rdx
	movq	(%r15), %rcx
	movq	%rax, %r8
	callq	_csum_tcpudp_magic
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_udp_hdr
LBB0_7:
	movq	%rbx, (%rax)
LBB0_8:
	movl	%r14d, %r15d
LBB0_9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %r12d
	leal	1(%r12), %r14d
	xorl	%edi, %edi
	cmpl	4(%rbx), %r14d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	$0, %eax
	cmovel	%r14d, %eax
	movl	%eax, (%rbx)
	movq	16(%rbx), %r14
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r12,4), %r12
	movq	32(%r14,%r12,8), %rbx
	movq	24(%rbx), %rdi
	movq	24(%r13), %rsi
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_memcpy
	movq	24(%rbx), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	movq	$0, (%rax,%rcx,4)
	movq	(%r13), %rcx
	movq	%rcx, (%rbx)
	movq	(%rdx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$8, %rdi
	leaq	(,%rcx,4), %rsi
	addq	24(%r13), %rsi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rdx
	subq	%rcx, %rdx
	callq	_memcpy
	movq	(%rbx), %rdx
	movq	%rdx, (%r14,%r12,8)
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rdi
	movq	24(%rbx), %rsi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	leaq	(%r14,%r12,8), %rcx
	addq	$16, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, 16(%r14,%r12,8)
	movq	8(%r13), %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	xorps	%xmm0, %xmm0
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, (%rax)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	$1, 8(%r14,%r12,8)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r14,%r12,8)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	16(%r14), %rax
	movq	%rax, 16(%rsp)
	movups	(%r14), %xmm0
	movups	%xmm0, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_PCH_GBE_TX_DESC
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rax)
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	addq	$3, %rcx
	movq	%rcx, 8(%rax)
	movl	%r15d, 16(%rax)
	movq	_DSC_INIT16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	xorl	%edi, %edi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	cmpl	4(%r14), %ebx
	sete	%dil
	callq	_unlikely
	shll	$5, %ebx
	xorl	%edi, %edi
	testq	%rax, %rax
	cmoveq	%rbx, %rdi
	addq	8(%r14), %rdi
	movq	16(%r13), %rsi
	callq	_iowrite32
	movq	%r13, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_pch_tx_timestamp
	movq	%rbx, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_kfree_skb_any              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCH_GBE_SHORT_PKT,8,3          ## @PCH_GBE_SHORT_PKT
	.comm	_PCH_GBE_TXD_CTRL_APAD,4,2      ## @PCH_GBE_TXD_CTRL_APAD
	.comm	_CHECKSUM_NONE,8,3              ## @CHECKSUM_NONE
	.comm	_PCH_GBE_TXD_CTRL_TCPIP_ACC_OFF,4,2 ## @PCH_GBE_TXD_CTRL_TCPIP_ACC_OFF
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX DMA map failed\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_DSC_INIT16,4,2                 ## @DSC_INIT16
	.no_dead_strip	_pch_gbe_tx_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_gbe_tx_queue
_pch_gbe_tx_queue:                      ; @pch_gbe_tx_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x2]
Lloh0:
	adrp	x22, _PCH_GBE_SHORT_PKT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PCH_GBE_SHORT_PKT@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, lt
	bl	_unlikely
Lloh2:
	adrp	x8, _PCH_GBE_TXD_CTRL_APAD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCH_GBE_TXD_CTRL_APAD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w10, wzr, w8, eq
Lloh5:
	adrp	x9, _CHECKSUM_NONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x9]
Lloh8:
	adrp	x9, _PCH_GBE_TXD_CTRL_TCPIP_ACC_OFF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PCH_GBE_TXD_CTRL_TCPIP_ACC_OFF@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w12, w9, w10
	ldp	x14, x13, [x19]
	cmp	x13, x11
	csel	w10, w12, w10, eq
	ldr	x15, [x22]
	cmp	x14, x15
	csel	w24, w10, w12, ge
	ccmp	x13, x11, #4, lt
	b.eq	LBB0_7
; %bb.1:
	orr	w24, w9, w8
	ldr	x22, [x19, #16]
Lloh11:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_ip_hdr
	mov	x22, x0
	mov	x0, x19
	bl	_skb_transport_offset
	mov	x23, x0
	ldr	x8, [x22]
Lloh14:
	adrp	x25, _IPPROTO_TCP@GOTPAGE
Lloh15:
	ldr	x25, [x25, _IPPROTO_TCP@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	str	xzr, [x19, #32]
	mov	x0, x19
	bl	_tcp_hdr
	str	xzr, [x0]
	ldr	x8, [x19]
	mov	w26, w23
	sub	x2, x8, x26
	mov	x0, x19
	mov	x1, x23
	mov	w3, #0
	bl	_skb_checksum
	mov	x4, x0
	str	x0, [x19, #32]
	ldp	w1, w0, [x22, #8]
	ldr	x8, [x19]
	sub	x2, x8, x26
	ldr	x3, [x25]
	bl	_csum_tcpudp_magic
	mov	x22, x0
	mov	x0, x19
	bl	_tcp_hdr
	b	LBB0_6
LBB0_4:
Lloh16:
	adrp	x25, _IPPROTO_UDP@GOTPAGE
Lloh17:
	ldr	x25, [x25, _IPPROTO_UDP@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	str	xzr, [x19, #32]
	mov	x0, x19
	bl	_udp_hdr
	str	xzr, [x0]
	ldr	x8, [x19]
	mov	w26, w23
	sub	x2, x8, x26
	mov	x0, x19
	mov	x1, x23
	mov	w3, #0
	bl	_skb_checksum
	mov	x4, x0
	str	x0, [x19, #32]
	ldp	w1, w0, [x22, #8]
	ldr	x8, [x19]
	sub	x2, x8, x26
	ldr	x3, [x25]
	bl	_csum_tcpudp_magic
	mov	x22, x0
	mov	x0, x19
	bl	_udp_hdr
LBB0_6:
	str	x22, [x0]
LBB0_7:
	ldp	w22, w8, [x21]
	add	w23, w22, #1
	cmp	w23, w8
	cset	w0, eq
	bl	_unlikely
	cmp	x0, #0
	csinc	w8, wzr, w22, ne
	str	w8, [x21]
	ldr	x27, [x21, #16]
	mov	w8, #40
	umaddl	x25, w22, w8, x27
	ldr	x26, [x25, #32]
	ldr	x0, [x26, #24]
	ldr	x1, [x19, #24]
Lloh18:
	adrp	x28, _ETH_HLEN@GOTPAGE
Lloh19:
	ldr	x28, [x28, _ETH_HLEN@GOTPAGEOFF]
	ldr	x2, [x28]
	bl	_memcpy
	ldr	x8, [x26, #24]
	ldr	x9, [x28]
	add	x9, x8, x9, lsl #2
	str	xzr, [x9]
	ldr	x9, [x19]
	str	x9, [x26]
	ldr	x9, [x28]
	lsl	x10, x9, #2
	add	x8, x10, x8
	add	x0, x8, #8
	ldr	x8, [x19, #24]
	add	x1, x8, x10
	ldr	x8, [x19]
	sub	x2, x8, x9
	bl	_memcpy
	ldr	x2, [x26]
	str	x2, [x25]
	ldr	x0, [x20, #8]
	ldr	x1, [x26, #24]
Lloh20:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	bl	_dma_map_single
	mov	x1, x0
	str	x0, [x25, #16]!
	ldr	x0, [x20, #8]
	bl	_dma_mapping_error
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x20]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	stp	xzr, xzr, [x25]
	str	w22, [x21]
	b	LBB0_10
LBB0_9:
	mov	w8, #40
	madd	x8, x22, x8, x27
	mov	w9, #1
	str	w9, [x8, #8]
Lloh25:
	adrp	x9, _jiffies@GOTPAGE
Lloh26:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	str	x9, [x8, #24]
	ldr	q0, [x21]
	str	q0, [sp]
	ldr	x8, [x21, #16]
	str	x8, [sp, #16]
	mov	x0, sp
	mov	x1, x22
	bl	_PCH_GBE_TX_DESC
	ldr	x8, [x25]
	str	x8, [x0, #24]
	ldr	x8, [x26]
	add	x9, x8, #3
	stp	x8, x9, [x0]
Lloh28:
	adrp	x8, _DSC_INIT16@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DSC_INIT16@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	stp	w24, w8, [x0, #16]
	ldr	w8, [x21, #4]
	cmp	w23, w8
	cset	w0, eq
	bl	_unlikely
	ldr	x8, [x21, #8]
	lsl	w9, w23, #5
	cmp	x0, #0
	csel	x9, x9, xzr, eq
	add	x0, x9, x8
	ldr	x1, [x20, #16]
	bl	_iowrite32
	mov	x0, x20
	mov	x1, x19
	bl	_pch_tx_timestamp
	mov	x0, x19
	bl	_dev_kfree_skb_any
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PCH_GBE_SHORT_PKT,8,3          ; @PCH_GBE_SHORT_PKT
	.comm	_PCH_GBE_TXD_CTRL_APAD,4,2      ; @PCH_GBE_TXD_CTRL_APAD
	.comm	_CHECKSUM_NONE,8,3              ; @CHECKSUM_NONE
	.comm	_PCH_GBE_TXD_CTRL_TCPIP_ACC_OFF,4,2 ; @PCH_GBE_TXD_CTRL_TCPIP_ACC_OFF
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX DMA map failed\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_DSC_INIT16,4,2                 ; @DSC_INIT16
	.no_dead_strip	_pch_gbe_tx_queue
.subsections_via_symbols
