	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp251x_hw_rx
_mcp251x_hw_rx:                         ## @mcp251x_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
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_spi_get_drvdata
	movq	%rax, %r15
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_SPI_TRANSFER_BUF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	(%r15), %rdi
	leaq	-56(%rbp), %rsi
	callq	_alloc_can_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_mcp251x_hw_rx_frame
	movq	_RXBSIDL_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	(%r12,%rdx,4), %eax
	movq	_RXBSIDL_IDE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_CAN_EFF_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	_RXBSIDL_EID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r12,%rdx,4), %edi
	movl	$2, %esi
	callq	_SET_BYTE
	movl	%eax, %r13d
	movq	_RXBEID8_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r12,%rax,4), %edi
	movl	$1, %esi
	callq	_SET_BYTE
	movl	%eax, %ebx
	movq	_RXBEID0_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r12,%rax,4), %edi
	xorl	%esi, %esi
	callq	_SET_BYTE
	orl	%ebx, %eax
	orl	%r13d, %eax
	movq	_RXBSIDH_OFF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r12,%rcx,4), %edx
	movq	_RXBSIDH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_RXBSIDL_OFF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r12,%rcx,4), %esi
	movq	_RXBSIDL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %esi
	orl	%edx, %esi
	shll	$18, %esi
	movq	-56(%rbp), %rcx
	orl	(%rcx), %eax
	orl	%esi, %eax
	movl	%eax, (%rcx)
	movq	_RXBDLC_OFF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_RXBDLC_RTR@GOTPCREL(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	(%r15), %rax
	incl	8(%rax)
	jmp	LBB0_8
LBB0_4:
	movq	_RXBSIDH_OFF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r12,%rcx,4), %esi
	movq	_RXBSIDH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_RXBSIDL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	orl	%esi, %eax
	movq	-56(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	_RXBSIDL_SRR@GOTPCREL(%rip), %rsi
LBB0_5:
	movl	(%rsi), %esi
	testl	%esi, (%r12,%rdx,4)
	je	LBB0_7
## %bb.6:
	movq	_CAN_RTR_FLAG@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%rcx)
LBB0_7:
	movq	_RXBDLC_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_RXBDLC_LEN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	(%r12,%rax,4), %edi
	callq	_get_can_dlc
	movq	-56(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movl	16(%rcx), %edi
	movq	_RXBDAT_OFF@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%r12,%rcx,4), %rsi
	movq	%rax, %rdx
	callq	_memcpy
	movq	(%r15), %rdi
	incl	4(%rdi)
	movq	-56(%rbp), %rax
	movl	8(%rax), %eax
	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_8:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_TRANSFER_BUF_LEN,4,2       ## @SPI_TRANSFER_BUF_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate RX skb\n"

	.comm	_RXBSIDL_OFF,8,3                ## @RXBSIDL_OFF
	.comm	_RXBSIDL_IDE,4,2                ## @RXBSIDL_IDE
	.comm	_CAN_EFF_FLAG,4,2               ## @CAN_EFF_FLAG
	.comm	_RXBSIDL_EID,4,2                ## @RXBSIDL_EID
	.comm	_RXBEID8_OFF,8,3                ## @RXBEID8_OFF
	.comm	_RXBEID0_OFF,8,3                ## @RXBEID0_OFF
	.comm	_RXBSIDH_OFF,8,3                ## @RXBSIDH_OFF
	.comm	_RXBSIDH_SHIFT,4,2              ## @RXBSIDH_SHIFT
	.comm	_RXBSIDL_SHIFT,4,2              ## @RXBSIDL_SHIFT
	.comm	_RXBDLC_OFF,8,3                 ## @RXBDLC_OFF
	.comm	_RXBDLC_RTR,4,2                 ## @RXBDLC_RTR
	.comm	_CAN_RTR_FLAG,4,2               ## @CAN_RTR_FLAG
	.comm	_RXBSIDL_SRR,4,2                ## @RXBSIDL_SRR
	.comm	_RXBDLC_LEN_MASK,4,2            ## @RXBDLC_LEN_MASK
	.comm	_RXBDAT_OFF,4,2                 ## @RXBDAT_OFF
	.comm	_CAN_LED_EVENT_RX,4,2           ## @CAN_LED_EVENT_RX
	.no_dead_strip	_mcp251x_hw_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp251x_hw_rx
_mcp251x_hw_rx:                         ; @mcp251x_hw_rx
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x23, x1
	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, #-72]
	bl	_spi_get_drvdata
	mov	x19, x0
	mov	x24, sp
Lloh3:
	adrp	x8, _SPI_TRANSFER_BUF_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPI_TRANSFER_BUF_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	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, #80
	bl	_alloc_can_skb
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_mcp251x_hw_rx_frame
Lloh8:
	adrp	x25, _RXBSIDL_OFF@GOTPAGE
Lloh9:
	ldr	x25, [x25, _RXBSIDL_OFF@GOTPAGEOFF]
	ldr	x10, [x25]
	ldr	w8, [x21, x10, lsl #2]
Lloh10:
	adrp	x9, _RXBSIDL_IDE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RXBSIDL_IDE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x23, _RXBDLC_OFF@GOTPAGE
Lloh14:
	ldr	x23, [x23, _RXBDLC_OFF@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh15:
	adrp	x8, _CAN_EFF_FLAG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CAN_EFF_FLAG@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldur	x9, [x29, #-80]
	str	w8, [x9]
	ldr	w8, [x21, x10, lsl #2]
Lloh18:
	adrp	x9, _RXBSIDL_EID@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RXBSIDL_EID@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w0, w9, w8
	mov	w1, #2
	bl	_SET_BYTE
	mov	x22, x0
Lloh21:
	adrp	x8, _RXBEID8_OFF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RXBEID8_OFF@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	w0, [x21, x8, lsl #2]
	mov	w1, #1
	bl	_SET_BYTE
	orr	w22, w0, w22
Lloh24:
	adrp	x8, _RXBEID0_OFF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RXBEID0_OFF@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	w0, [x21, x8, lsl #2]
	mov	w1, #0
	bl	_SET_BYTE
	orr	w9, w22, w0
Lloh27:
	adrp	x8, _RXBSIDH_OFF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RXBSIDH_OFF@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	w8, [x21, x8, lsl #2]
Lloh30:
	adrp	x10, _RXBSIDH_SHIFT@GOTPAGE
Lloh31:
	ldr	x10, [x10, _RXBSIDH_SHIFT@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	ldr	x11, [x25]
	ldr	w11, [x21, x11, lsl #2]
	lsl	w8, w8, w10
Lloh33:
	adrp	x10, _RXBSIDL_SHIFT@GOTPAGE
Lloh34:
	ldr	x10, [x10, _RXBSIDL_SHIFT@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	asr	w10, w11, w10
	orr	w10, w10, w8
	ldur	x8, [x29, #-80]
	ldr	w11, [x8]
	orr	w9, w9, w11
	orr	w9, w9, w10, lsl #18
	str	w9, [x8]
	ldr	x10, [x23]
	ldr	w10, [x21, x10, lsl #2]
Lloh36:
	adrp	x11, _RXBDLC_RTR@GOTPAGE
Lloh37:
	ldr	x11, [x11, _RXBDLC_RTR@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	ldr	x8, [x19]
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	b	LBB0_8
LBB0_4:
Lloh40:
	adrp	x9, _RXBSIDH_OFF@GOTPAGE
Lloh41:
	ldr	x9, [x9, _RXBSIDH_OFF@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	ldr	w9, [x21, x9, lsl #2]
Lloh43:
	adrp	x11, _RXBSIDH_SHIFT@GOTPAGE
Lloh44:
	ldr	x11, [x11, _RXBSIDH_SHIFT@GOTPAGEOFF]
Lloh45:
	ldr	w11, [x11]
Lloh46:
	adrp	x12, _RXBSIDL_SHIFT@GOTPAGE
Lloh47:
	ldr	x12, [x12, _RXBSIDL_SHIFT@GOTPAGEOFF]
	lsl	w9, w9, w11
Lloh48:
	ldr	w11, [x12]
	asr	w8, w8, w11
	orr	w9, w8, w9
	ldur	x8, [x29, #-80]
	str	w9, [x8]
	ldr	w10, [x21, x10, lsl #2]
Lloh49:
	adrp	x11, _RXBSIDL_SRR@GOTPAGE
Lloh50:
	ldr	x11, [x11, _RXBSIDL_SRR@GOTPAGEOFF]
LBB0_5:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_7
; %bb.6:
Lloh51:
	adrp	x10, _CAN_RTR_FLAG@GOTPAGE
Lloh52:
	ldr	x10, [x10, _CAN_RTR_FLAG@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_7:
	ldr	x8, [x23]
	ldr	w8, [x21, x8, lsl #2]
Lloh54:
	adrp	x9, _RXBDLC_LEN_MASK@GOTPAGE
Lloh55:
	ldr	x9, [x9, _RXBDLC_LEN_MASK@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_get_can_dlc
	mov	x2, x0
	ldur	x8, [x29, #-80]
	str	x0, [x8, #8]
	ldr	w0, [x8, #16]
Lloh57:
	adrp	x8, _RXBDAT_OFF@GOTPAGE
Lloh58:
	ldr	x8, [x8, _RXBDAT_OFF@GOTPAGEOFF]
Lloh59:
	ldrsw	x8, [x8]
	add	x1, x21, x8, lsl #2
	bl	_memcpy
	ldr	x0, [x19]
	ldur	x8, [x29, #-80]
	add	x8, x8, #8
	movi.2s	v0, #1
	ld1.s	{ v0 }[0], [x8]
	ldr	d1, [x0]
	add.2s	v0, v1, v0
	str	d0, [x0]
Lloh60:
	adrp	x8, _CAN_LED_EVENT_RX@GOTPAGE
Lloh61:
	ldr	x8, [x8, _CAN_LED_EVENT_RX@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	bl	_can_led_event
	mov	x0, x20
	bl	_netif_rx_ni
LBB0_8:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh63:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh64:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_TRANSFER_BUF_LEN,4,2       ; @SPI_TRANSFER_BUF_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate RX skb\n"

	.comm	_RXBSIDL_OFF,8,3                ; @RXBSIDL_OFF
	.comm	_RXBSIDL_IDE,4,2                ; @RXBSIDL_IDE
	.comm	_CAN_EFF_FLAG,4,2               ; @CAN_EFF_FLAG
	.comm	_RXBSIDL_EID,4,2                ; @RXBSIDL_EID
	.comm	_RXBEID8_OFF,8,3                ; @RXBEID8_OFF
	.comm	_RXBEID0_OFF,8,3                ; @RXBEID0_OFF
	.comm	_RXBSIDH_OFF,8,3                ; @RXBSIDH_OFF
	.comm	_RXBSIDH_SHIFT,4,2              ; @RXBSIDH_SHIFT
	.comm	_RXBSIDL_SHIFT,4,2              ; @RXBSIDL_SHIFT
	.comm	_RXBDLC_OFF,8,3                 ; @RXBDLC_OFF
	.comm	_RXBDLC_RTR,4,2                 ; @RXBDLC_RTR
	.comm	_CAN_RTR_FLAG,4,2               ; @CAN_RTR_FLAG
	.comm	_RXBSIDL_SRR,4,2                ; @RXBSIDL_SRR
	.comm	_RXBDLC_LEN_MASK,4,2            ; @RXBDLC_LEN_MASK
	.comm	_RXBDAT_OFF,4,2                 ; @RXBDAT_OFF
	.comm	_CAN_LED_EVENT_RX,4,2           ; @CAN_LED_EVENT_RX
	.no_dead_strip	_mcp251x_hw_rx
.subsections_via_symbols
