	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kaweth_start_xmit
_kaweth_start_xmit:                     ## @kaweth_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, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rdi
	callq	_kaweth_async_set_rx_mode
	movq	%r15, %rdi
	callq	_netif_stop_queue
	movl	32(%rbx), %edi
	callq	_IS_BLOCKED
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	incl	8(%r15)
	movq	%r15, %rdi
	callq	_netif_start_queue
	movq	%r14, %rdi
	callq	_dev_kfree_skb_irq
LBB0_7:
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	jmp	LBB0_8
LBB0_1:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_skb_cow_head
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	incl	8(%r15)
	movq	%r15, %rdi
	callq	_netif_start_queue
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
LBB0_8:
	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
LBB0_3:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	___skb_push
	movq	%rax, %r12
	movl	(%r14), %edi
	addl	$-2, %edi
	callq	_cpu_to_le16
	movl	%eax, (%r12)
	movq	%r14, 24(%rbx)
	movl	4(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %r13d
	movl	%r13d, %edi
	movl	$2, %esi
	callq	_usb_sndbulkpipe
	movl	(%r14), %r8d
	movq	_kaweth_usb_transmit_complete@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%rbx, (%rsp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_usb_fill_bulk_urb
	movq	$0, 8(%rbx)
	movl	4(%rbx), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	12(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_5
LBB0_6:
	incl	4(%r15)
	movl	(%r14), %eax
	addl	%eax, (%r15)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_kaweth_usb_transmit_complete,4,2 ## @kaweth_usb_transmit_complete
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kaweth failed tx_urb %d\n"

	.no_dead_strip	_kaweth_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kaweth_start_xmit
_kaweth_start_xmit:                     ; @kaweth_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	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	bl	_spin_lock_irq
	mov	x0, x19
	bl	_kaweth_async_set_rx_mode
	mov	x0, x21
	bl	_netif_stop_queue
	ldr	w0, [x19, #32]
	bl	_IS_BLOCKED
	cbz	x0, LBB0_3
LBB0_1:
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
	mov	x0, x21
	bl	_netif_start_queue
	mov	x0, x20
	bl	_dev_kfree_skb_irq
LBB0_2:
	mov	x0, x19
	bl	_spin_unlock_irq
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	mov	w1, #2
	bl	_skb_cow_head
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
	mov	x0, x21
	bl	_netif_start_queue
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x20
	bl	_dev_kfree_skb_any
LBB0_5:
Lloh0:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh2:
	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
LBB0_6:
	mov	x0, x20
	mov	w1, #2
	bl	___skb_push
	mov	x22, x0
	ldr	w8, [x20]
	sub	w0, w8, #2
	bl	_cpu_to_le16
	str	w0, [x22]
	str	x20, [x19, #24]
	ldr	w23, [x19, #4]
	ldr	w24, [x19, #16]
	mov	x0, x24
	mov	w1, #2
	bl	_usb_sndbulkpipe
	mov	x2, x0
	ldr	w4, [x20]
Lloh3:
	adrp	x8, _kaweth_usb_transmit_complete@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kaweth_usb_transmit_complete@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	x0, x23
	mov	x1, x24
	mov	x3, x22
	mov	x6, x19
	bl	_usb_fill_bulk_urb
	str	xzr, [x19, #8]
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	cbz	w0, LBB0_8
; %bb.7:
	mov	x2, x0
	add	x0, x21, #12
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	b	LBB0_1
LBB0_8:
	ldr	d0, [x21]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x20]
	add.2s	v0, v0, v1
	str	d0, [x21]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_kaweth_usb_transmit_complete,4,2 ; @kaweth_usb_transmit_complete
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kaweth failed tx_urb %d\n"

	.no_dead_strip	_kaweth_start_xmit
.subsections_via_symbols
