	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucan_start_xmit
_ucan_start_xmit:                       ## @ucan_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, %r13
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%r15), %r14
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_can_dropped_invalid_skb
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ucan_alloc_context
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_3:
	shlq	$2, %r12
	movq	%r14, %rax
	subq	%r12, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_ucan_prepare_tx_urb
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %r12
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rsi
	movq	%r15, %rdi
	movq	%r14, %r15
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_can_put_echo_skb
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rsi
	addq	$20, %rsi
	movq	%r12, %rdi
	callq	_usb_anchor_urb
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_usb_unanchor_urb
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ucan_clean_up_tx_urb
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_ucan_release_context
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_can_free_echo_skb
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rdi
	addl	%r14d, %eax
	jne	LBB0_9
## %bb.8:
	callq	_netif_device_detach
	jmp	LBB0_15
LBB0_11:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ucan_release_context
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_netdev_err
LBB0_13:
	movq	%r15, %rdi
	callq	_dev_kfree_skb
	jmp	LBB0_14
LBB0_10:
	movq	%r13, %rdi
	callq	_netif_trans_update
	movq	%r12, %rdi
	callq	_usb_free_urb
	jmp	LBB0_15
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_netdev_warn
LBB0_14:
	movq	8(%rbx), %rax
	incl	(%rax)
LBB0_15:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rcx
LBB0_16:
	movl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xmit err: failed to release context\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"xmit err: failed to submit urb %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"xmit drop: failed to release context\n"

	.no_dead_strip	_ucan_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucan_start_xmit
_ucan_start_xmit:                       ; @ucan_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	x20, x1
	mov	x23, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x24, [x23]
	mov	x0, x20
	mov	x1, x23
	bl	_can_dropped_invalid_skb
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_ucan_alloc_context
	mov	x22, x0
	ldrsw	x21, [x19]
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
LBB0_4:
	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
LBB0_5:
	sub	x21, x22, x21, lsl #2
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	mov	x3, x21
	bl	_ucan_prepare_tx_urb
	cbz	x0, LBB0_11
; %bb.6:
	mov	x25, x0
	add	x24, x19, #16
	mov	x0, x24
	bl	_spin_lock_irqsave
	ldr	x1, [x19, #8]
	mov	x0, x23
	mov	x2, x21
	bl	_can_put_echo_skb
	mov	x0, x24
	bl	_spin_unlock_irqrestore
	add	x1, x19, #20
	mov	x0, x25
	bl	_usb_anchor_urb
Lloh4:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_usb_submit_urb
	cbz	w0, LBB0_14
; %bb.7:
	mov	x23, x0
	mov	x0, x25
	bl	_usb_unanchor_urb
	mov	x0, x19
	mov	x1, x25
	bl	_ucan_clean_up_tx_urb
	mov	x0, x19
	mov	x1, x22
	bl	_ucan_release_context
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_9:
	mov	x0, x24
	bl	_spin_lock_irqsave
	ldr	x0, [x19, #8]
	mov	x1, x21
	bl	_can_free_echo_skb
	mov	x0, x24
	bl	_spin_unlock_irqrestore
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x0, [x19, #8]
	cmn	w23, w8
	b.ne	LBB0_15
; %bb.10:
	bl	_netif_device_detach
	b	LBB0_1
LBB0_11:
	mov	x0, x19
	mov	x1, x22
	bl	_ucan_release_context
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_err
LBB0_13:
	mov	x0, x23
	bl	_dev_kfree_skb
	b	LBB0_16
LBB0_14:
	mov	x0, x20
	bl	_netif_trans_update
	mov	x0, x25
	bl	_usb_free_urb
	b	LBB0_1
LBB0_15:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_netdev_warn
LBB0_16:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xmit err: failed to release context\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"xmit err: failed to submit urb %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"xmit drop: failed to release context\n"

	.no_dead_strip	_ucan_start_xmit
.subsections_via_symbols
