	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c_can_do_tx
_c_can_do_tx:                           ## @c_can_do_tx
	.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	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rdi
	movq	_C_CAN_INTPND2_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, %r14
	callq	*(%rdi)
	testl	%eax, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movl	%eax, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	bsfl	%r15d, %r14d
	movl	$-2, %r12d
	movl	%r14d, %ecx
	roll	%cl, %r12d
	movq	_C_CAN_MSG_OBJ_TX_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%r14d, %edx
	movq	_IF_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %ebx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_c_can_inval_tx_object
	movq	%r13, %rdi
	movl	%ebx, %r13d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%r14d, %esi
	callq	_can_get_echo_skb
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	addl	(%rax,%r14,4), %ebx
	incl	%r13d
	andl	%r12d, %r15d
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
LBB0_4:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$16, %rsi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_atomic_sub
	movq	_C_CAN_MSG_OBJ_TX_NUM@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	decb	%al
	movzbl	%al, %eax
	btl	%eax, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jae	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_netif_wake_queue
LBB0_6:
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.8:
	addl	%ebx, 4(%r15)
	addl	%r13d, (%r15)
	movq	_CAN_LED_EVENT_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_can_led_event                  ## TAILCALL
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C_CAN_INTPND2_REG,4,2          ## @C_CAN_INTPND2_REG
	.comm	_C_CAN_MSG_OBJ_TX_FIRST,4,2     ## @C_CAN_MSG_OBJ_TX_FIRST
	.comm	_IF_RX,4,2                      ## @IF_RX
	.comm	_C_CAN_MSG_OBJ_TX_NUM,4,2       ## @C_CAN_MSG_OBJ_TX_NUM
	.comm	_CAN_LED_EVENT_TX,4,2           ## @CAN_LED_EVENT_TX
	.no_dead_strip	_c_can_do_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c_can_do_tx
_c_can_do_tx:                           ; @c_can_do_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _C_CAN_INTPND2_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _C_CAN_INTPND2_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	blr	x8
	mov	x21, x0
	movi.2d	v0, #0000000000000000
	cbz	w0, LBB0_3
; %bb.1:
	mov	w23, #1
Lloh3:
	adrp	x24, _C_CAN_MSG_OBJ_TX_FIRST@GOTPAGE
Lloh4:
	ldr	x24, [x24, _C_CAN_MSG_OBJ_TX_FIRST@GOTPAGEOFF]
Lloh5:
	adrp	x25, _IF_RX@GOTPAGE
Lloh6:
	ldr	x25, [x25, _IF_RX@GOTPAGEOFF]
	mov	x26, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	q0, [sp]                        ; 16-byte Folded Spill
	rbit	w8, w26
	clz	w22, w8
	lsl	w8, w23, w22
	bic	w26, w26, w8
	ldr	w8, [x24]
	add	w2, w8, w22
	ldr	w1, [x25]
	mov	x0, x19
	bl	_c_can_inval_tx_object
	mov	x0, x19
	mov	x1, x22
	bl	_can_get_echo_skb
	ldr	x8, [x20, #8]
	add	x8, x8, w22, uxtw #2
	movi.2s	v0, #1
	ld1.s	{ v0 }[1], [x8]
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	add.2s	v1, v0, v1
	str	q1, [sp]                        ; 16-byte Folded Spill
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	cbnz	w26, LBB0_2
LBB0_3:
	str	q0, [sp]                        ; 16-byte Folded Spill
	add	x1, x20, #16
	mov	x0, x21
	bl	_atomic_sub
Lloh7:
	adrp	x8, _C_CAN_MSG_OBJ_TX_NUM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _C_CAN_MSG_OBJ_TX_NUM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	sub	w8, w8, #1
	lsr	w8, w21, w8
	tbz	w8, #0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_5:
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	fmov	w8, s1
	cbz	w8, LBB0_7
; %bb.6:
	ldr	d0, [x19]
	add.2s	v0, v0, v1
	str	d0, [x19]
Lloh10:
	adrp	x8, _CAN_LED_EVENT_TX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CAN_LED_EVENT_TX@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	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
	add	sp, sp, #96
	b	_can_led_event
LBB0_7:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_C_CAN_INTPND2_REG,4,2          ; @C_CAN_INTPND2_REG
	.comm	_C_CAN_MSG_OBJ_TX_FIRST,4,2     ; @C_CAN_MSG_OBJ_TX_FIRST
	.comm	_IF_RX,4,2                      ; @IF_RX
	.comm	_C_CAN_MSG_OBJ_TX_NUM,4,2       ; @C_CAN_MSG_OBJ_TX_NUM
	.comm	_CAN_LED_EVENT_TX,4,2           ; @CAN_LED_EVENT_TX
	.no_dead_strip	_c_can_do_tx
.subsections_via_symbols
