	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esd_usb2_rx_can_msg
_esd_usb2_rx_can_msg:                   ## @esd_usb2_rx_can_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_netif_device_present
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movl	16(%r12), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	movq	_ESD_EVENT@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_2
## %bb.12:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_esd_usb2_rx_event              ## TAILCALL
LBB0_2:
	movq	(%rbx), %rdi
	leaq	-48(%rbp), %rsi
	callq	_alloc_can_skb
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	_ESD_IDMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	movq	-48(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	_ESD_RTR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	notl	%edi
	andl	(%r12), %edi
	callq	_get_can_dlc
                                        ## kill: def $eax killed $eax def $rax
	movq	-48(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movq	_ESD_EXTID@GOTPCREL(%rip), %rdx
	testl	%r13d, (%rdx)
	je	LBB0_6
## %bb.5:
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%rcx)
LBB0_6:
	movl	(%rbx), %edx
	testl	%edx, (%r12)
	je	LBB0_7
## %bb.13:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%rcx)
	jmp	LBB0_10
LBB0_3:
	incl	8(%r14)
	jmp	LBB0_11
LBB0_7:
	testl	%eax, %eax
	jle	LBB0_10
## %bb.8:
	movq	8(%r12), %rdx
	movq	8(%rcx), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rdi,4), %eax
	movl	%eax, (%rsi,%rdi,4)
	incq	%rdi
	movslq	4(%rcx), %rax
	cmpq	%rax, %rdi
	jl	LBB0_9
LBB0_10:
	incl	4(%r14)
	addl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_netif_rx
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESD_EVENT,4,2                  ## @ESD_EVENT
	.comm	_ESD_IDMASK,4,2                 ## @ESD_IDMASK
	.comm	_ESD_RTR,4,2                    ## @ESD_RTR
	.comm	_ESD_EXTID,4,2                  ## @ESD_EXTID
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.no_dead_strip	_esd_usb2_rx_can_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esd_usb2_rx_can_msg
_esd_usb2_rx_can_msg:                   ; @esd_usb2_rx_can_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0]
	mov	x0, x19
	bl	_netif_device_present
	cbz	w0, LBB0_13
; %bb.1:
	ldr	w0, [x21, #16]
	bl	_le32_to_cpu
Lloh0:
	adrp	x8, _ESD_EVENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESD_EVENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	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
	add	sp, sp, #80
	b	_esd_usb2_rx_event
LBB0_3:
	mov	x22, x0
	ldr	x0, [x20]
	add	x1, sp, #8
	bl	_alloc_can_skb
	cbz	x0, LBB0_8
; %bb.4:
	mov	x20, x0
Lloh3:
	adrp	x8, _ESD_IDMASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ESD_IDMASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w22
	ldr	x9, [sp, #8]
	str	w8, [x9]
	ldr	w8, [x21]
Lloh6:
	adrp	x23, _ESD_RTR@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ESD_RTR@GOTPAGEOFF]
	ldr	w9, [x23]
	bic	w0, w8, w9
	bl	_get_can_dlc
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [sp, #8]
	str	w0, [x8, #4]
Lloh8:
	adrp	x9, _ESD_EXTID@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ESD_EXTID@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w22
	b.eq	LBB0_6
; %bb.5:
Lloh11:
	adrp	x9, _CAN_EFF_FLAG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_6:
	ldr	w9, [x21]
	ldr	w10, [x23]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.7:
Lloh14:
	adrp	x9, _CAN_RTR_FLAG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_12
LBB0_8:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_13
LBB0_9:
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x9, #0
	ldr	x10, [x21, #8]
	ldr	x11, [x8, #8]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x10, x12]
	str	w13, [x11, x12]
	add	x9, x9, #1
	ldrsw	x0, [x8, #4]
	cmp	x9, x0
	b.lt	LBB0_11
LBB0_12:
	ldr	d0, [x19]
	movi.2s	v1, #1
	mov.s	v1[0], w0
	add.2s	v0, v0, v1
	str	d0, [x19]
	mov	x0, x20
	bl	_netif_rx
LBB0_13:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ESD_EVENT,4,2                  ; @ESD_EVENT
	.comm	_ESD_IDMASK,4,2                 ; @ESD_IDMASK
	.comm	_ESD_RTR,4,2                    ; @ESD_RTR
	.comm	_ESD_EXTID,4,2                  ; @ESD_EXTID
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.no_dead_strip	_esd_usb2_rx_can_msg
.subsections_via_symbols
