	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8169_start_xmit
_rtl8169_start_xmit:                    ## @rtl8169_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	$88, %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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	(%rax), %eax
	movq	_NUM_TX_DESC@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%edx, %r13d
	movq	16(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_tp_to_dev
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_skb_shinfo
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl_tx_slots_avail
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_netif_err
	jmp	LBB0_2
LBB0_3:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	leaq	(,%r13,2), %rbx
	addq	%r13, %rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,4), %r12
	movl	(%r12), %edi
	callq	_le32_to_cpu
	movq	_DescOwn@GOTPCREL(%rip), %r15
	andl	(%r15), %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	callq	_netif_stop_queue
	incl	(%r14)
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rbx
LBB0_23:
	movl	(%rbx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_25
## %bb.24:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	callq	_rtl8169_tx_vlan_tag
	movl	%eax, -52(%rbp)
	movl	(%r15), %eax
	movl	%eax, -56(%rbp)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_rtl_chip_supports_csum_v2
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_rtl8169_tso_csum_v2
	testl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_7
	jmp	LBB0_22
LBB0_6:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_rtl8169_tso_csum_v1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_7:
	movq	%r13, %rdi
	callq	_skb_headlen
	movl	%eax, %r12d
	movl	4(%r13), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_dma_map_single
	movq	%rbx, %rdi
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_22
## %bb.9:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_netif_err
	jmp	LBB0_22
LBB0_10:
	movq	8(%r15), %rax
	movq	%r15, %rbx
	movq	-112(%rbp), %r15                ## 8-byte Reload
	shlq	$4, %r15
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	movl	%r12d, (%rax,%r15)
	movl	-88(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le64
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, 8(%rcx,%rdx,4)
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_rtl8169_xmit_frags
	testl	%eax, %eax
	js	LBB0_21
## %bb.11:
	movl	%eax, %r12d
	movq	_FirstFrag@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_13
## %bb.12:
	orl	%eax, -56(%rbp)
	jmp	LBB0_14
LBB0_21:
	addq	8(%rbx), %r15
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	callq	_rtl8169_unmap_tx_skb
LBB0_22:
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	incl	(%r14)
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
	jmp	LBB0_23
LBB0_13:
	movq	_LastFrag@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, -56(%rbp)
	movq	8(%rbx), %rax
	movq	%r13, 8(%rax,%r15)
LBB0_14:
	movl	-52(%rbp), %edi
	callq	_cpu_to_le32
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, 4(%rcx,%rdx,4)
	movq	%r13, %rdi
	callq	_skb_tx_timestamp
	xorl	%eax, %eax
	callq	_dma_wmb
	movl	(%r13), %r15d
	xorl	%eax, %eax
	callq	_netdev_xmit_more
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	___netdev_sent_queue
	movl	%eax, %r15d
	movl	-56(%rbp), %edi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_rtl8169_get_txd_opts1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_wmb
	movl	(%rbx), %eax
	addl	%r12d, %eax
	incl	%eax
	movl	%eax, (%rbx)
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl_tx_slots_avail
	xorl	%r12d, %r12d
	testq	%rax, %rax
	sete	%r12b
	movl	%r12d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_16:
	testl	%r15d, %r15d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_18
LBB0_17:
	movq	%r15, %rdi
	callq	_rtl8169_doorbell
LBB0_18:
	movl	%r12d, %edi
	callq	_unlikely
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:
	xorl	%eax, %eax
	callq	_smp_mb
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rtl_tx_slots_avail
	testq	%rax, %rax
	je	LBB0_23
## %bb.20:
	movq	%r14, %rdi
	callq	_netif_start_queue
	jmp	LBB0_23
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_TX_DESC,4,2                ## @NUM_TX_DESC
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUG! Tx Ring full when queue awake!\n"

	.comm	_DescOwn,4,2                    ## @DescOwn
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to map TX DMA!\n"

	.comm	_FirstFrag,4,2                  ## @FirstFrag
	.comm	_LastFrag,4,2                   ## @LastFrag
	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.no_dead_strip	_rtl8169_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8169_start_xmit
_rtl8169_start_xmit:                    ; @rtl8169_start_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	w22, [x0]
Lloh3:
	adrp	x8, _NUM_TX_DESC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_TX_DESC@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	ldr	x27, [x0, #16]
	bl	_tp_to_dev
	mov	x24, x0
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w1, [x0]
	mov	x0, x20
	bl	_rtl_tx_slots_avail
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _drv@GOTPAGE
Lloh7:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_err
	b	LBB0_3
LBB0_2:
	udiv	w8, w22, w23
	msub	w23, w8, w23, w22
	mov	w8, #12
	umaddl	x22, w23, w8, x27
	ldr	w0, [x22]
	bl	_le32_to_cpu
Lloh11:
	adrp	x25, _DescOwn@GOTPAGE
Lloh12:
	ldr	x25, [x25, _DescOwn@GOTPAGEOFF]
	ldr	w8, [x25]
	and	w0, w8, w0
	bl	_unlikely
	cbz	x0, LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_netif_stop_queue
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
Lloh13:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldr	x8, [sp, #8]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	mov	x0, x21
	bl	_rtl8169_tx_vlan_tag
	ldr	w8, [x25]
	stp	w8, w0, [sp]
	mov	x0, x20
	bl	_rtl_chip_supports_csum_v2
	cbz	x0, LBB0_8
; %bb.7:
	mov	x2, sp
	mov	x0, x20
	mov	x1, x21
	bl	_rtl8169_tso_csum_v2
	cbnz	w0, LBB0_9
	b	LBB0_16
LBB0_8:
	mov	x1, sp
	mov	x0, x21
	bl	_rtl8169_tso_csum_v1
LBB0_9:
	mov	x0, x21
	bl	_skb_headlen
	mov	x25, x0
	ldr	w1, [x21, #4]
Lloh18:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x2, x25
	bl	_dma_map_single
	mov	x26, x0
	mov	x0, x24
	mov	x1, x26
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.10:
	bl	_net_ratelimit
	cbz	x0, LBB0_16
; %bb.11:
Lloh21:
	adrp	x8, _drv@GOTPAGE
Lloh22:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x3, l_.str.1@PAGE
Lloh25:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_err
	b	LBB0_16
LBB0_12:
	ldr	x8, [x20, #8]
	lsl	x9, x23, #4
	str	w25, [x8, x9]
	mov	x0, x26
	bl	_cpu_to_le64
	mov	w8, #12
	madd	x8, x23, x8, x27
	str	w0, [x8, #8]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x21
	bl	_rtl8169_xmit_frags
	tbnz	w0, #31, LBB0_15
; %bb.13:
	mov	x26, x0
Lloh26:
	adrp	x8, _FirstFrag@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FirstFrag@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cbz	w0, LBB0_18
; %bb.14:
	ldr	w9, [sp]
	orr	w8, w9, w8
	str	w8, [sp]
	b	LBB0_19
LBB0_15:
	ldr	x8, [x20, #8]
	add	x1, x8, x23, lsl #4
	mov	x0, x24
	mov	x2, x22
	bl	_rtl8169_unmap_tx_skb
LBB0_16:
	mov	x0, x21
	bl	_dev_kfree_skb_any
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_17:
Lloh29:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
	b	LBB0_4
LBB0_18:
Lloh31:
	adrp	x9, _LastFrag@GOTPAGE
Lloh32:
	ldr	x9, [x9, _LastFrag@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp]
	orr	w8, w8, w9
	str	w8, [sp]
	ldr	x8, [x20, #8]
	add	x8, x8, x23, lsl #4
	str	x21, [x8, #8]
LBB0_19:
	ldr	w0, [sp, #4]
	bl	_cpu_to_le32
	mov	w8, #12
	madd	x8, x23, x8, x27
	str	w0, [x8, #4]
	mov	x0, x21
	bl	_skb_tx_timestamp
	bl	_dma_wmb
	ldr	w21, [x21]
	bl	_netdev_xmit_more
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	___netdev_sent_queue
	mov	x21, x0
	ldr	w0, [sp]
	mov	x1, x25
	mov	x2, x23
	bl	_rtl8169_get_txd_opts1
	str	w0, [x22]
	bl	_wmb
	ldr	w8, [x20]
	add	w8, w26, w8
	add	w8, w8, #1
	str	w8, [x20]
Lloh34:
	adrp	x23, _MAX_SKB_FRAGS@GOTPAGE
Lloh35:
	ldr	x23, [x23, _MAX_SKB_FRAGS@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_rtl_tx_slots_avail
	cmp	x0, #0
	cset	w22, eq
	mov	x0, x22
	bl	_unlikely
	cbz	x0, LBB0_21
; %bb.20:
	bl	_smp_wmb
	mov	x0, x19
	bl	_netif_stop_queue
	b	LBB0_22
LBB0_21:
	cbz	w21, LBB0_23
LBB0_22:
	mov	x0, x20
	bl	_rtl8169_doorbell
LBB0_23:
	mov	x0, x22
	bl	_unlikely
	cbz	x0, LBB0_17
; %bb.24:
	bl	_smp_mb
	ldr	w1, [x23]
	mov	x0, x20
	bl	_rtl_tx_slots_avail
	cbz	x0, LBB0_17
; %bb.25:
	mov	x0, x19
	bl	_netif_start_queue
	b	LBB0_17
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_TX_DESC,4,2                ; @NUM_TX_DESC
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG! Tx Ring full when queue awake!\n"

	.comm	_DescOwn,4,2                    ; @DescOwn
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to map TX DMA!\n"

	.comm	_FirstFrag,4,2                  ; @FirstFrag
	.comm	_LastFrag,4,2                   ; @LastFrag
	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.no_dead_strip	_rtl8169_start_xmit
.subsections_via_symbols
