	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcba_usb_start_xmit
_mcba_usb_start_xmit:                   ## @mcba_usb_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%r13), %r12
	movq	(%rax), %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_MBCA_CMD_TRANSMIT_MESSAGE_EV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_can_dropped_invalid_skb
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_1
LBB0_10:
	movl	(%rbx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mcba_usb_get_free_ctx
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	(%r14), %rsi
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_can_put_echo_skb
	movl	(%r12), %edi
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_MCBA_SIDL_EXID_MASK@GOTPCREL(%rip), %rax
	movl	%edi, %ecx
	shrl	$13, %ecx
	andl	$65504, %ecx                    ## imm = 0xFFE0
	shrl	$16, %edi
	andl	$3, %edi
	orl	%ecx, %edi
	orl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	callq	_put_unaligned_be16
	movzwl	(%r12), %edi
	leaq	-72(%rbp), %rsi
	callq	_put_unaligned_be16
	jmp	LBB0_6
LBB0_2:
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_5:
	movq	_CAN_SFF_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	shll	$5, %edi
	leaq	-64(%rbp), %rsi
	callq	_put_unaligned_be16
	movq	$0, -72(%rbp)
LBB0_6:
	movl	8(%r12), %edx
	movl	%edx, -80(%rbp)
	movl	-76(%rbp), %edi
	movl	4(%r12), %esi
	callq	_memcpy
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_8
## %bb.7:
	movq	_MCBA_DLC_RTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -80(%rbp)
LBB0_8:
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_mcba_usb_xmit
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	(%r14), %rdi
	movl	(%r15), %esi
	callq	_can_free_echo_skb
	movq	%r15, %rdi
	callq	_mcba_usb_free_ctx
	movq	%r13, %rdi
	callq	_dev_kfree_skb
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MBCA_CMD_TRANSMIT_MESSAGE_EV,4,2 ## @MBCA_CMD_TRANSMIT_MESSAGE_EV
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_MCBA_SIDL_EXID_MASK,4,2        ## @MCBA_SIDL_EXID_MASK
	.comm	_CAN_SFF_MASK,4,2               ## @CAN_SFF_MASK
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_MCBA_DLC_RTR_MASK,4,2          ## @MCBA_DLC_RTR_MASK
	.no_dead_strip	_mcba_usb_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcba_usb_start_xmit
_mcba_usb_start_xmit:                   ; @mcba_usb_start_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x22, [x19]
	ldr	x23, [x0]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
Lloh0:
	adrp	x8, _MBCA_CMD_TRANSMIT_MESSAGE_EV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBCA_CMD_TRANSMIT_MESSAGE_EV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	mov	x0, x21
	mov	x1, x19
	bl	_can_dropped_invalid_skb
	cbz	x0, LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	ret
LBB0_3:
	mov	x0, x20
	mov	x1, x22
	bl	_mcba_usb_get_free_ctx
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
	ldr	x1, [x20]
	ldr	w2, [x0]
	mov	x0, x19
	bl	_can_put_echo_skb
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _CAN_EFF_FLAG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
Lloh8:
	adrp	x9, _MCBA_SIDL_EXID_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MCBA_SIDL_EXID_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsr	w10, w8, #13
	and	w10, w10, #0xffe0
	bfxil	w10, w8, #16, #2
	orr	w0, w10, w9
	mov	x24, sp
	add	x1, x24, #16
	bl	_put_unaligned_be16
	ldrh	w0, [x22]
	orr	x1, x24, #0x8
	bl	_put_unaligned_be16
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
Lloh13:
	adrp	x9, _CAN_SFF_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CAN_SFF_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w8, w9, w8
	lsl	w0, w8, #5
	mov	x8, sp
	add	x1, x8, #16
	bl	_put_unaligned_be16
	str	xzr, [sp, #8]
LBB0_8:
	ldp	w1, w2, [x22, #4]
	str	w2, [sp]
	ldr	w0, [sp, #4]
	bl	_memcpy
	ldr	w8, [x22]
Lloh16:
	adrp	x9, _CAN_RTR_FLAG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh19:
	adrp	x8, _MCBA_DLC_RTR_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MCBA_DLC_RTR_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [sp]
	orr	w8, w9, w8
	str	w8, [sp]
LBB0_10:
	mov	x1, sp
	mov	x0, x20
	mov	x2, x21
	bl	_mcba_usb_xmit
	cbz	w0, LBB0_1
; %bb.11:
	ldr	x0, [x20]
	ldr	w1, [x21]
	bl	_can_free_echo_skb
	mov	x0, x21
	bl	_mcba_usb_free_ctx
	mov	x0, x19
	bl	_dev_kfree_skb
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MBCA_CMD_TRANSMIT_MESSAGE_EV,4,2 ; @MBCA_CMD_TRANSMIT_MESSAGE_EV
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_MCBA_SIDL_EXID_MASK,4,2        ; @MCBA_SIDL_EXID_MASK
	.comm	_CAN_SFF_MASK,4,2               ; @CAN_SFF_MASK
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_MCBA_DLC_RTR_MASK,4,2          ; @MCBA_DLC_RTR_MASK
	.no_dead_strip	_mcba_usb_start_xmit
.subsections_via_symbols
