	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_tx_xmit_frame
_lan743x_tx_xmit_frame:                 ## @lan743x_tx_xmit_frame
	.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, %r14
	movq	%rdi, %r15
	callq	_lan743x_tx_get_desc_cnt
	movl	%eax, %ebx
	leaq	8(%r15), %r12
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_lan743x_tx_get_avail_desc
	cmpl	%eax, %ebx
	jle	LBB0_3
## %bb.1:
	cmpl	(%r15), %ebx
	jge	LBB0_7
## %bb.2:
	movq	%r14, 24(%r15)
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_netif_stop_queue
	jmp	LBB0_22
LBB0_3:
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	_SKBTX_HW_TSTAMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.4:
	movq	_TX_TS_FLAG_TIMESTAMPING_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_9
## %bb.5:
	movq	16(%r15), %rdi
	callq	_lan743x_ptp_request_tx_timestamp
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	_SKBTX_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_skb_shinfo
	orl	%ebx, (%rax)
	movq	_TX_TS_FLAG_ONE_STEP_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	testl	%eax, 4(%r15)
	setne	%cl
	movl	$1, %r13d
	jmp	LBB0_10
LBB0_9:
	xorl	%ecx, %ecx
LBB0_10:
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_skb_headlen
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_skb_pagelen
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_skb_shinfo
	movl	4(%rax), %r12d
	movq	%r14, %rdi
	callq	_skb_is_gso
	movl	%eax, %ebx
	movl	%r13d, %ecx
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_skb_shinfo
	movl	16(%rax), %edi
	movl	$8, %esi
	callq	_max
	movl	%eax, %ecx
LBB0_12:
	movl	8(%r14), %esi
	movq	(%r14), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rdx
	xorl	%r9d, %r9d
	cmpq	(%rdx), %rax
	sete	%r9b
	movq	%r15, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_lan743x_tx_frame_start
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	jmp	LBB0_21
LBB0_7:
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	jmp	LBB0_22
LBB0_14:
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_lan743x_tx_frame_add_lso
LBB0_16:
	testl	%r12d, %r12d
	jle	LBB0_20
## %bb.17:
	shlq	$2, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_lan743x_tx_frame_add_fragment
	testq	%rax, %rax
	jne	LBB0_13
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	addq	$4, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_18
LBB0_20:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_lan743x_tx_frame_end
LBB0_21:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_22:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	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	_SKBTX_HW_TSTAMP,4,2            ## @SKBTX_HW_TSTAMP
	.comm	_TX_TS_FLAG_TIMESTAMPING_ENABLED,4,2 ## @TX_TS_FLAG_TIMESTAMPING_ENABLED
	.comm	_SKBTX_IN_PROGRESS,4,2          ## @SKBTX_IN_PROGRESS
	.comm	_TX_TS_FLAG_ONE_STEP_SYNC,4,2   ## @TX_TS_FLAG_ONE_STEP_SYNC
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_lan743x_tx_xmit_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_tx_xmit_frame
_lan743x_tx_xmit_frame:                 ; @lan743x_tx_xmit_frame
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x21, x0
	bl	_lan743x_tx_get_desc_cnt
	mov	x22, x0
	add	x19, x21, #8
	mov	x0, x19
	mov	x1, #0
	bl	_spin_lock_irqsave
	mov	x0, x21
	bl	_lan743x_tx_get_avail_desc
	cmp	w22, w0
	b.le	LBB0_3
; %bb.1:
	ldr	w8, [x21]
	cmp	w22, w8
	b.ge	LBB0_11
; %bb.2:
	str	x20, [x21, #24]
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_netif_stop_queue
	b	LBB0_12
LBB0_3:
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SKBTX_HW_TSTAMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SKBTX_HW_TSTAMP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	ldr	w8, [x21, #4]
Lloh3:
	adrp	x9, _TX_TS_FLAG_TIMESTAMPING_ENABLED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TX_TS_FLAG_TIMESTAMPING_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	x0, [x21, #16]
	bl	_lan743x_ptp_request_tx_timestamp
	cbz	x0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _SKBTX_IN_PROGRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SKBTX_IN_PROGRESS@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	orr	w8, w8, w22
	str	w8, [x0]
	ldr	w8, [x21, #4]
Lloh9:
	adrp	x9, _TX_TS_FLAG_ONE_STEP_SYNC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TX_TS_FLAG_ONE_STEP_SYNC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w23, ne
	mov	w22, #1
	b	LBB0_8
LBB0_7:
	mov	w22, #0
	mov	w23, #0
LBB0_8:
	mov	x0, x20
	bl	_skb_headlen
	mov	x26, x0
	mov	x0, x20
	bl	_skb_pagelen
	mov	x24, x0
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w25, [x0, #4]
	mov	x0, x20
	bl	_skb_is_gso
	mov	x27, x0
	mov	x3, x24
	cbz	w0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w0, [x0, #16]
	mov	w1, #8
	bl	_max
	mov	x3, x0
LBB0_10:
	ldr	w1, [x20, #8]
	ldr	x8, [x20]
Lloh12:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w5, eq
	mov	x0, x21
	mov	x2, x26
	mov	x4, x22
	bl	_lan743x_tx_frame_start
	cbz	x0, LBB0_13
LBB0_11:
	mov	x0, x20
	bl	_dev_kfree_skb
LBB0_12:
	mov	x0, x19
	mov	x1, #0
	bl	_spin_unlock_irqrestore
Lloh15:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	cbz	w27, LBB0_15
; %bb.14:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x25
	bl	_lan743x_tx_frame_add_lso
LBB0_15:
	cmp	w25, #1
	b.lt	LBB0_19
; %bb.16:
	mov	x26, #0
	lsl	x25, x25, #2
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x1, x8, x26
	mov	x0, x21
	mov	x2, x24
	bl	_lan743x_tx_frame_add_fragment
	cbnz	x0, LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x26, x26, #4
	cmp	x25, x26
	b.ne	LBB0_17
LBB0_19:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	bl	_lan743x_tx_frame_end
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SKBTX_HW_TSTAMP,4,2            ; @SKBTX_HW_TSTAMP
	.comm	_TX_TS_FLAG_TIMESTAMPING_ENABLED,4,2 ; @TX_TS_FLAG_TIMESTAMPING_ENABLED
	.comm	_SKBTX_IN_PROGRESS,4,2          ; @SKBTX_IN_PROGRESS
	.comm	_TX_TS_FLAG_ONE_STEP_SYNC,4,2   ; @TX_TS_FLAG_ONE_STEP_SYNC
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_lan743x_tx_xmit_frame
.subsections_via_symbols
