	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esd_usb2_rx_event
_esd_usb2_rx_event:                     ## @esd_usb2_rx_event
	.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, %rbx
	movq	%rdi, %r15
	movq	40(%rdi), %r12
	movl	8(%rsi), %edi
	callq	_le32_to_cpu
	movq	_ESD_IDMASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_ESD_EV_CAN_ERROR_EXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.1:
	movq	(%rbx), %rax
	movl	(%rax), %r13d
	movl	4(%rax), %ebx
	movl	8(%rax), %r14d
	movl	12(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	40(%r15), %rdi
	leaq	-56(%rbp), %rsi
	callq	_alloc_can_err_skb
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rdi
	cmpl	(%r15), %r13d
	jne	LBB0_4
## %bb.11:
	incl	24(%r15)
	incl	8(%r12)
	movq	_CAN_ERR_PROT@GOTPCREL(%rip), %rax
	movq	_CAN_ERR_BUSERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	-56(%rbp), %rax
	orl	%ecx, (%rax)
	movq	_SJA1000_ECC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	cmpl	$128, %ecx
	je	LBB0_17
## %bb.12:
	cmpl	$129, %ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_16
## %bb.13:
	cmpl	$130, %ecx
	jne	LBB0_18
## %bb.14:
	movq	_CAN_ERR_PROT_BIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_2:
	incl	12(%r12)
	jmp	LBB0_29
LBB0_4:
	movl	%r13d, (%r15)
	movq	_ESD_BUSSTATE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	cmpl	$131, %r13d
	je	LBB0_8
## %bb.5:
	cmpl	$132, %r13d
	je	LBB0_9
## %bb.6:
	cmpl	$133, %r13d
	jne	LBB0_10
## %bb.7:
	movq	_CAN_STATE_BUS_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	_CAN_ERR_BUSOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx
	orl	%eax, (%rcx)
	incl	36(%r15)
	movq	%rdi, %rbx
	movq	40(%r15), %rdi
	callq	_can_bus_off
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_28
LBB0_17:
	movq	_CAN_ERR_PROT_STUFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rax), %rax
	orl	%ecx, 8(%rax)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_19
LBB0_16:
	movq	_CAN_ERR_PROT_FORM@GOTPCREL(%rip), %rcx
LBB0_15:
	movl	(%rcx), %ecx
	movq	8(%rax), %rax
	orl	%ecx, 8(%rax)
	jmp	LBB0_19
LBB0_18:
	movq	_SJA1000_ECC_SEG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	movq	8(%rax), %rax
	movl	%ecx, 12(%rax)
LBB0_19:
	movq	_SJA1000_ECC_DIR@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	jne	LBB0_21
## %bb.20:
	movq	_CAN_ERR_PROT_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%rax)
LBB0_21:
	movq	16(%r15), %rcx
	movq	_CAN_STATE_ERROR_WARNING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_23
## %bb.22:
	movq	_CAN_STATE_ERROR_PASSIVE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_27
LBB0_23:
	cmpl	%esi, %r14d
	jle	LBB0_24
## %bb.25:
	movq	_CAN_ERR_CRTL_TX_PASSIVE@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_8:
	movq	_CAN_STATE_ERROR_WARNING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	incl	32(%r15)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_28
LBB0_9:
	movq	_CAN_STATE_ERROR_PASSIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	incl	28(%r15)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_28
LBB0_24:
	movq	_CAN_ERR_CRTL_RX_PASSIVE@GOTPCREL(%rip), %rcx
LBB0_26:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
LBB0_27:
	movl	%r14d, 24(%rax)
	movl	%esi, 28(%rax)
LBB0_28:
	movl	%r14d, 4(%r15)
	movl	%esi, 8(%r15)
	incl	4(%r12)
	movq	-56(%rbp), %rax
	movl	16(%rax), %eax
	addl	%eax, (%r12)
	callq	_netif_rx
LBB0_29:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_CAN_STATE_ERROR_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_ESD_IDMASK,8,3                 ## @ESD_IDMASK
	.comm	_ESD_EV_CAN_ERROR_EXT,8,3       ## @ESD_EV_CAN_ERROR_EXT
	.comm	_ESD_BUSSTATE_MASK,4,2          ## @ESD_BUSSTATE_MASK
	.comm	_CAN_STATE_BUS_OFF,8,3          ## @CAN_STATE_BUS_OFF
	.comm	_CAN_ERR_BUSOFF,4,2             ## @CAN_ERR_BUSOFF
	.comm	_CAN_STATE_ERROR_WARNING,8,3    ## @CAN_STATE_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_PASSIVE,8,3    ## @CAN_STATE_ERROR_PASSIVE
	.comm	_CAN_STATE_ERROR_ACTIVE,8,3     ## @CAN_STATE_ERROR_ACTIVE
	.comm	_CAN_ERR_PROT,4,2               ## @CAN_ERR_PROT
	.comm	_CAN_ERR_BUSERROR,4,2           ## @CAN_ERR_BUSERROR
	.comm	_SJA1000_ECC_MASK,4,2           ## @SJA1000_ECC_MASK
	.comm	_CAN_ERR_PROT_BIT,4,2           ## @CAN_ERR_PROT_BIT
	.comm	_CAN_ERR_PROT_FORM,4,2          ## @CAN_ERR_PROT_FORM
	.comm	_CAN_ERR_PROT_STUFF,4,2         ## @CAN_ERR_PROT_STUFF
	.comm	_SJA1000_ECC_SEG,4,2            ## @SJA1000_ECC_SEG
	.comm	_SJA1000_ECC_DIR,4,2            ## @SJA1000_ECC_DIR
	.comm	_CAN_ERR_PROT_TX,4,2            ## @CAN_ERR_PROT_TX
	.comm	_CAN_ERR_CRTL_TX_PASSIVE,4,2    ## @CAN_ERR_CRTL_TX_PASSIVE
	.comm	_CAN_ERR_CRTL_RX_PASSIVE,4,2    ## @CAN_ERR_CRTL_RX_PASSIVE
	.no_dead_strip	_esd_usb2_rx_event
.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_event
_esd_usb2_rx_event:                     ; @esd_usb2_rx_event
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #40]
	ldr	w0, [x1, #8]
	bl	_le32_to_cpu
Lloh0:
	adrp	x8, _ESD_IDMASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESD_IDMASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh3:
	adrp	x9, _ESD_EV_CAN_ERROR_EXT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ESD_EV_CAN_ERROR_EXT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.1:
	ldr	x8, [x20]
	ldp	w25, w24, [x8]
	ldp	w22, w23, [x8, #8]
	ldr	x0, [x19, #40]
	add	x1, sp, #8
	bl	_alloc_can_err_skb
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w25, w8
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
Lloh6:
	adrp	x8, _CAN_ERR_PROT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAN_ERR_PROT@GOTPAGEOFF]
Lloh8:
	adrp	x9, _CAN_ERR_BUSERROR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CAN_ERR_BUSERROR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w9, w9, w8
	ldr	x8, [sp, #8]
	ldr	w10, [x8]
	orr	w9, w9, w10
	str	w9, [x8]
Lloh12:
	adrp	x9, _SJA1000_ECC_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SJA1000_ECC_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w9, w9, w24
	cmp	w9, #128
	b.eq	LBB0_12
; %bb.4:
	cmp	w9, #129
	b.eq	LBB0_13
; %bb.5:
	cmp	w9, #130
	b.ne	LBB0_15
; %bb.6:
Lloh15:
	adrp	x9, _CAN_ERR_PROT_BIT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CAN_ERR_PROT_BIT@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
	ldr	w8, [x21, #12]
	add	w8, w8, #1
	str	w8, [x21, #12]
	b	LBB0_26
LBB0_8:
	str	w25, [x19]
Lloh17:
	adrp	x8, _ESD_BUSSTATE_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ESD_BUSSTATE_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	and	w8, w8, w25
	cmp	w8, #131
	b.eq	LBB0_22
; %bb.9:
	cmp	w8, #132
	b.eq	LBB0_23
; %bb.10:
	cmp	w8, #133
	b.ne	LBB0_24
; %bb.11:
Lloh20:
	adrp	x8, _CAN_STATE_BUS_OFF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CAN_STATE_BUS_OFF@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh23:
	adrp	x8, _CAN_ERR_BUSOFF@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CAN_ERR_BUSOFF@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	ldr	w8, [x19, #36]
	add	w8, w8, #1
	str	w8, [x19, #36]
	ldr	x0, [x19, #40]
	bl	_can_bus_off
	b	LBB0_25
LBB0_12:
Lloh26:
	adrp	x9, _CAN_ERR_PROT_STUFF@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CAN_ERR_PROT_STUFF@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh28:
	adrp	x9, _CAN_ERR_PROT_FORM@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CAN_ERR_PROT_FORM@GOTPAGEOFF]
LBB0_14:
	ldr	w9, [x9]
	ldr	x8, [x8, #8]
	ldr	w10, [x8, #8]
	orr	w9, w10, w9
	str	w9, [x8, #8]
	b	LBB0_16
LBB0_15:
Lloh30:
	adrp	x9, _SJA1000_ECC_SEG@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SJA1000_ECC_SEG@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	and	w9, w9, w24
	ldr	x8, [x8, #8]
	str	w9, [x8, #12]
LBB0_16:
Lloh33:
	adrp	x9, _SJA1000_ECC_DIR@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SJA1000_ECC_DIR@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w24
	b.ne	LBB0_18
; %bb.17:
Lloh36:
	adrp	x9, _CAN_ERR_PROT_TX@GOTPAGE
Lloh37:
	ldr	x9, [x9, _CAN_ERR_PROT_TX@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	ldr	w10, [x8, #8]
	orr	w9, w10, w9
	str	w9, [x8, #8]
LBB0_18:
	ldr	x9, [x19, #16]
Lloh39:
	adrp	x10, _CAN_STATE_ERROR_WARNING@GOTPAGE
Lloh40:
	ldr	x10, [x10, _CAN_STATE_ERROR_WARNING@GOTPAGEOFF]
Lloh41:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_20
; %bb.19:
Lloh42:
	adrp	x10, _CAN_STATE_ERROR_PASSIVE@GOTPAGE
Lloh43:
	ldr	x10, [x10, _CAN_STATE_ERROR_PASSIVE@GOTPAGEOFF]
Lloh44:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_21
LBB0_20:
Lloh45:
	adrp	x9, _CAN_ERR_CRTL_TX_PASSIVE@GOTPAGE
Lloh46:
	ldr	x9, [x9, _CAN_ERR_CRTL_TX_PASSIVE@GOTPAGEOFF]
Lloh47:
	adrp	x10, _CAN_ERR_CRTL_RX_PASSIVE@GOTPAGE
Lloh48:
	ldr	x10, [x10, _CAN_ERR_CRTL_RX_PASSIVE@GOTPAGEOFF]
	cmp	w22, w23
	csel	x9, x9, x10, gt
	ldr	w9, [x9]
	str	w9, [x8, #4]
LBB0_21:
	stp	w22, w23, [x8, #24]
	b	LBB0_25
LBB0_22:
Lloh49:
	adrp	x8, _CAN_STATE_ERROR_WARNING@GOTPAGE
Lloh50:
	ldr	x8, [x8, _CAN_STATE_ERROR_WARNING@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
	b	LBB0_25
LBB0_23:
Lloh52:
	adrp	x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _CAN_STATE_ERROR_PASSIVE@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
	b	LBB0_25
LBB0_24:
Lloh55:
	adrp	x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _CAN_STATE_ERROR_ACTIVE@GOTPAGEOFF]
Lloh57:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_25:
	stp	w22, w23, [x19, #4]
	ldr	x8, [sp, #8]
	add	x8, x8, #16
	ldr	d0, [x21]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x21]
	mov	x0, x20
	bl	_netif_rx
LBB0_26:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_ESD_IDMASK,8,3                 ; @ESD_IDMASK
	.comm	_ESD_EV_CAN_ERROR_EXT,8,3       ; @ESD_EV_CAN_ERROR_EXT
	.comm	_ESD_BUSSTATE_MASK,4,2          ; @ESD_BUSSTATE_MASK
	.comm	_CAN_STATE_BUS_OFF,8,3          ; @CAN_STATE_BUS_OFF
	.comm	_CAN_ERR_BUSOFF,4,2             ; @CAN_ERR_BUSOFF
	.comm	_CAN_STATE_ERROR_WARNING,8,3    ; @CAN_STATE_ERROR_WARNING
	.comm	_CAN_STATE_ERROR_PASSIVE,8,3    ; @CAN_STATE_ERROR_PASSIVE
	.comm	_CAN_STATE_ERROR_ACTIVE,8,3     ; @CAN_STATE_ERROR_ACTIVE
	.comm	_CAN_ERR_PROT,4,2               ; @CAN_ERR_PROT
	.comm	_CAN_ERR_BUSERROR,4,2           ; @CAN_ERR_BUSERROR
	.comm	_SJA1000_ECC_MASK,4,2           ; @SJA1000_ECC_MASK
	.comm	_CAN_ERR_PROT_BIT,4,2           ; @CAN_ERR_PROT_BIT
	.comm	_CAN_ERR_PROT_FORM,4,2          ; @CAN_ERR_PROT_FORM
	.comm	_CAN_ERR_PROT_STUFF,4,2         ; @CAN_ERR_PROT_STUFF
	.comm	_SJA1000_ECC_SEG,4,2            ; @SJA1000_ECC_SEG
	.comm	_SJA1000_ECC_DIR,4,2            ; @SJA1000_ECC_DIR
	.comm	_CAN_ERR_PROT_TX,4,2            ; @CAN_ERR_PROT_TX
	.comm	_CAN_ERR_CRTL_TX_PASSIVE,4,2    ; @CAN_ERR_CRTL_TX_PASSIVE
	.comm	_CAN_ERR_CRTL_RX_PASSIVE,4,2    ; @CAN_ERR_CRTL_RX_PASSIVE
	.no_dead_strip	_esd_usb2_rx_event
.subsections_via_symbols
