	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucan_tx_complete_msg
_ucan_tx_complete_msg:                  ## @ucan_tx_complete_msg
	.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, %r12
	movl	8(%rsi), %edi
	callq	_le16_to_cpu
	movq	_UCAN_IN_HDR_SIZE@GOTPCREL(%rip), %rcx
	movl	%eax, %r14d
	subl	(%rcx), %r14d
	jl	LBB0_13
## %bb.1:
	andl	$1, %eax
	jne	LBB0_13
## %bb.2:
	cmpl	$2, %r14d
	jl	LBB0_12
## %bb.3:
	shrl	%r14d
	xorl	%r13d, %r13d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %rdi
	incl	12(%rdi)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %r13
	decq	%r14
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%r13), %rbx
	cmpq	24(%r12), %rbx
	jae	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r12), %rax
	leaq	(%rax,%rbx,4), %r15
	movl	(%rax,%rbx,4), %edi
	callq	_READ_ONCE
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	callq	_ucan_release_context
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rax
	movq	_UCAN_TX_COMPLETE_SUCCESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%r12), %rdi
	testl	%ecx, 8(%rax,%r13)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	8(%rdi)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, 4(%rdi)
	movq	%rbx, %rsi
	callq	_can_get_echo_skb
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	(%rdi)
	movq	%rbx, %rsi
	callq	_can_free_echo_skb
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_11
LBB0_13:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UCAN_IN_HDR_SIZE,4,2           ## @UCAN_IN_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid tx complete length\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid echo_index %d received\n"

	.comm	_UCAN_TX_COMPLETE_SUCCESS,4,2   ## @UCAN_TX_COMPLETE_SUCCESS
	.no_dead_strip	_ucan_tx_complete_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucan_tx_complete_msg
_ucan_tx_complete_msg:                  ; @ucan_tx_complete_msg
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #8]
	bl	_le16_to_cpu
Lloh0:
	adrp	x8, _UCAN_IN_HDR_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UCAN_IN_HDR_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w9, w0, #0x1
	subs	w8, w0, w8
	ccmp	w9, #0, #0, ge
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_netdev_err
LBB0_2:
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.3:
	mov	x25, #0
	lsr	w26, w8, #1
Lloh5:
	adrp	x27, _UCAN_TX_COMPLETE_SUCCESS@GOTPAGE
Lloh6:
	ldr	x27, [x27, _UCAN_TX_COMPLETE_SUCCESS@GOTPAGEOFF]
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x19, #8]
	ldr	w8, [x0, #12]
	add	w8, w8, #1
	str	w8, [x0, #12]
	str	x22, [sp]
	mov	x1, x21
	bl	_netdev_err
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #16
	subs	x26, x26, #1
	b.eq	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x22, [x8, x25]
	ldr	x8, [x19, #24]
	cmp	x22, x8
	b.hs	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #16]
	add	x24, x8, x22, lsl #2
	ldr	w0, [x24]
	bl	_READ_ONCE
	mov	x23, x0
	mov	x0, x19
	mov	x1, x24
	bl	_ucan_release_context
	cbz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	add	x8, x8, x25
	ldr	w8, [x8, #8]
	ldr	w9, [x27]
	ldr	x0, [x19, #8]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	d0, [x0, #4]
	movi.2s	v1, #1
	mov.s	v1[0], w23
	add.2s	v0, v0, v1
	stur	d0, [x0, #4]
	mov	x1, x22
	bl	_can_get_echo_skb
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
	mov	x1, x22
	bl	_can_free_echo_skb
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	b	LBB0_5
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_UCAN_IN_HDR_SIZE,4,2           ; @UCAN_IN_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid tx complete length\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid echo_index %d received\n"

	.comm	_UCAN_TX_COMPLETE_SUCCESS,4,2   ; @UCAN_TX_COMPLETE_SUCCESS
	.no_dead_strip	_ucan_tx_complete_msg
.subsections_via_symbols
