	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hi3110_hw_rx
_hi3110_hw_rx:                          ## @hi3110_hw_rx
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_spi_get_drvdata
	movq	%rax, %r15
	movq	%rsp, %r13
	movq	_HI3110_RX_BUF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	(%r15), %rdi
	leaq	-56(%rbp), %rsi
	callq	_alloc_can_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_hi3110_hw_rx_frame
	movq	_HI3110_FIFO_WOTIME_TAG_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_HI3110_FIFO_WOTIME_TAG_IDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx,%rax,4)
	je	LBB0_4
## %bb.3:
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %r8
	movl	%ecx, (%r8)
	movq	_HI3110_FIFO_WOTIME_ID_OFF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rbx,%rdx,4), %esi
	movl	4(%rbx,%rdx,4), %eax
	shll	$21, %esi
	movl	%eax, %edi
	shll	$13, %edi
	andl	$1835008, %edi                  ## imm = 0x1C0000
	orl	%esi, %edi
	andl	$7, %eax
	shll	$15, %eax
	orl	%edi, %eax
	movl	8(%rbx,%rdx,4), %esi
	shll	$7, %esi
	movl	12(%rbx,%rdx,4), %edx
	sarl	%edx
	orl	%ecx, %esi
	orl	%edx, %esi
	orl	%eax, %esi
	movl	%esi, (%r8)
	jmp	LBB0_5
LBB0_1:
	movq	(%r15), %rax
	incl	8(%rax)
	jmp	LBB0_9
LBB0_4:
	movq	_HI3110_FIFO_WOTIME_ID_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %ecx
	movl	4(%rbx,%rax,4), %eax
	shrl	$5, %eax
	andl	$7, %eax
	leal	(%rax,%rcx,8), %eax
	movq	-56(%rbp), %rcx
	movl	%eax, (%rcx)
LBB0_5:
	movq	_HI3110_FIFO_WOTIME_DLC_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %edi
	andl	$15, %edi
	callq	_get_can_dlc
	movq	-56(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	_HI3110_FIFO_WOTIME_ID_OFF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_HI3110_FIFO_WOTIME_ID_RTR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, 12(%rbx,%rdx,4)
	je	LBB0_7
## %bb.6:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%rcx)
	jmp	LBB0_8
LBB0_7:
	movl	16(%rcx), %edi
	movq	_HI3110_FIFO_WOTIME_DAT_OFF@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rbx,%rcx,4), %rsi
	movq	%rax, %rdx
	callq	_memcpy
	movq	-56(%rbp), %rax
	movq	8(%rax), %rax
LBB0_8:
	movq	(%r15), %rdi
	incl	4(%rdi)
	addl	%eax, (%rdi)
	movq	_CAN_LED_EVENT_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_can_led_event
	movq	%r14, %rdi
	callq	_netif_rx_ni
LBB0_9:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HI3110_RX_BUF_LEN,4,2          ## @HI3110_RX_BUF_LEN
	.comm	_HI3110_FIFO_WOTIME_TAG_OFF,8,3 ## @HI3110_FIFO_WOTIME_TAG_OFF
	.comm	_HI3110_FIFO_WOTIME_TAG_IDE,4,2 ## @HI3110_FIFO_WOTIME_TAG_IDE
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_HI3110_FIFO_WOTIME_ID_OFF,8,3  ## @HI3110_FIFO_WOTIME_ID_OFF
	.comm	_HI3110_FIFO_WOTIME_DLC_OFF,8,3 ## @HI3110_FIFO_WOTIME_DLC_OFF
	.comm	_HI3110_FIFO_WOTIME_ID_RTR,4,2  ## @HI3110_FIFO_WOTIME_ID_RTR
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_HI3110_FIFO_WOTIME_DAT_OFF,4,2 ## @HI3110_FIFO_WOTIME_DAT_OFF
	.comm	_CAN_LED_EVENT_RX,4,2           ## @CAN_LED_EVENT_RX
	.no_dead_strip	_hi3110_hw_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hi3110_hw_rx
_hi3110_hw_rx:                          ; @hi3110_hw_rx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_spi_get_drvdata
	mov	x19, x0
	mov	x23, sp
Lloh3:
	adrp	x8, _HI3110_RX_BUF_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HI3110_RX_BUF_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w8, w8, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x0, [x0]
	sub	x1, x29, #64
	bl	_alloc_can_skb
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x22
	mov	x1, x21
	bl	_hi3110_hw_rx_frame
Lloh8:
	adrp	x8, _HI3110_FIFO_WOTIME_TAG_OFF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HI3110_FIFO_WOTIME_TAG_OFF@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w8, [x21, x8, lsl #2]
Lloh11:
	adrp	x9, _HI3110_FIFO_WOTIME_TAG_IDE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HI3110_FIFO_WOTIME_TAG_IDE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x22, _HI3110_FIFO_WOTIME_ID_OFF@GOTPAGE
Lloh15:
	ldr	x22, [x22, _HI3110_FIFO_WOTIME_ID_OFF@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh16:
	adrp	x8, _CAN_EFF_FLAG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldur	x9, [x29, #-64]
	str	w8, [x9]
	ldr	x10, [x22]
	add	x10, x21, x10, lsl #2
	ldp	w11, w12, [x10]
	lsl	w13, w12, #13
	and	w13, w13, #0x1c0000
	bfi	w13, w11, #21, #11
	bfi	w13, w12, #15, #3
	ldp	w11, w10, [x10, #8]
	orr	w8, w8, w11, lsl #7
	orr	w8, w8, w10, asr #1
	orr	w8, w8, w13
	str	w8, [x9]
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19]
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	b	LBB0_9
LBB0_4:
	ldr	x8, [x22]
	add	x8, x21, x8, lsl #2
	ldp	w9, w8, [x8]
	lsl	w9, w9, #3
	bfxil	w9, w8, #5, #3
	ldur	x8, [x29, #-64]
	str	w9, [x8]
LBB0_5:
Lloh19:
	adrp	x8, _HI3110_FIFO_WOTIME_DLC_OFF@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HI3110_FIFO_WOTIME_DLC_OFF@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w8, [x21, x8, lsl #2]
	and	w0, w8, #0xf
	bl	_get_can_dlc
	mov	x2, x0
	ldur	x8, [x29, #-64]
	str	x0, [x8, #8]
	ldr	x9, [x22]
	add	x9, x21, x9, lsl #2
	ldr	w9, [x9, #12]
Lloh22:
	adrp	x10, _HI3110_FIFO_WOTIME_ID_RTR@GOTPAGE
Lloh23:
	ldr	x10, [x10, _HI3110_FIFO_WOTIME_ID_RTR@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
Lloh25:
	adrp	x9, _CAN_RTR_FLAG@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x8, #16]
Lloh28:
	adrp	x8, _HI3110_FIFO_WOTIME_DAT_OFF@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HI3110_FIFO_WOTIME_DAT_OFF@GOTPAGEOFF]
Lloh30:
	ldrsw	x8, [x8]
	add	x1, x21, x8, lsl #2
	bl	_memcpy
	ldur	x8, [x29, #-64]
	ldr	x2, [x8, #8]
LBB0_8:
	ldr	x0, [x19]
	movi.2s	v0, #1
	mov.s	v0[0], w2
	ldr	d1, [x0]
	add.2s	v0, v1, v0
	str	d0, [x0]
Lloh31:
	adrp	x8, _CAN_LED_EVENT_RX@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CAN_LED_EVENT_RX@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_can_led_event
	mov	x0, x20
	bl	_netif_rx_ni
LBB0_9:
	mov	sp, x23
	ldur	x8, [x29, #-56]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_HI3110_RX_BUF_LEN,4,2          ; @HI3110_RX_BUF_LEN
	.comm	_HI3110_FIFO_WOTIME_TAG_OFF,8,3 ; @HI3110_FIFO_WOTIME_TAG_OFF
	.comm	_HI3110_FIFO_WOTIME_TAG_IDE,4,2 ; @HI3110_FIFO_WOTIME_TAG_IDE
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_HI3110_FIFO_WOTIME_ID_OFF,8,3  ; @HI3110_FIFO_WOTIME_ID_OFF
	.comm	_HI3110_FIFO_WOTIME_DLC_OFF,8,3 ; @HI3110_FIFO_WOTIME_DLC_OFF
	.comm	_HI3110_FIFO_WOTIME_ID_RTR,4,2  ; @HI3110_FIFO_WOTIME_ID_RTR
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_HI3110_FIFO_WOTIME_DAT_OFF,4,2 ; @HI3110_FIFO_WOTIME_DAT_OFF
	.comm	_CAN_LED_EVENT_RX,4,2           ; @CAN_LED_EVENT_RX
	.no_dead_strip	_hi3110_hw_rx
.subsections_via_symbols
