	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m_can_rx_handler
_m_can_rx_handler:                      ## @m_can_rx_handler
	.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, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	(%rax), %r14d
	movq	_M_CAN_IR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_m_can_read
	movl	%eax, %r12d
	orl	%r14d, %r12d
	je	LBB0_1
## %bb.2:
	cmpl	$31, 4(%rbx)
	jg	LBB0_7
## %bb.3:
	movq	_IR_MRAF@GOTPCREL(%rip), %r14
	testl	%r12d, (%r14)
	je	LBB0_7
## %bb.4:
	movq	_M_CAN_ECR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_m_can_read
	movq	_ECR_RP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	___m_can_get_berr_counter
	cmpl	$127, -48(%rbp)
	jne	LBB0_7
## %bb.6:
	movl	(%r13), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_m_can_write
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, %r12d
LBB0_7:
	movq	_M_CAN_PSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_m_can_read
	movl	%eax, %r13d
	movq	_IR_ERR_STATE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_m_can_handle_state_errors
	movq	%rax, %rbx
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_8:
	xorl	%ebx, %ebx
LBB0_10:
	movq	_IR_ERR_BUS_30X@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_m_can_handle_bus_errors
	addl	%eax, %ebx
LBB0_12:
	movq	_IR_RF0N@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_14
## %bb.13:
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	subl	%ebx, %esi
	movq	%r15, %rdi
	callq	_m_can_do_rx_poll
	addl	%ebx, %eax
	movl	%eax, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_CAN_IR,4,2                   ## @M_CAN_IR
	.comm	_IR_MRAF,4,2                    ## @IR_MRAF
	.comm	_M_CAN_ECR,4,2                  ## @M_CAN_ECR
	.comm	_ECR_RP,4,2                     ## @ECR_RP
	.comm	_M_CAN_PSR,4,2                  ## @M_CAN_PSR
	.comm	_IR_ERR_STATE,4,2               ## @IR_ERR_STATE
	.comm	_IR_ERR_BUS_30X,4,2             ## @IR_ERR_BUS_30X
	.comm	_IR_RF0N,4,2                    ## @IR_RF0N
	.no_dead_strip	_m_can_rx_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m_can_rx_handler
_m_can_rx_handler:                      ; @m_can_rx_handler
	.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	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x22, x0
	ldr	w21, [x0]
Lloh0:
	adrp	x23, _M_CAN_IR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _M_CAN_IR@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_m_can_read
	orr	w21, w0, w21
	cbz	w21, LBB0_8
; %bb.1:
	ldr	w8, [x22, #4]
	cmp	w8, #31
	b.gt	LBB0_6
; %bb.2:
Lloh2:
	adrp	x24, _IR_MRAF@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IR_MRAF@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.3:
Lloh4:
	adrp	x8, _M_CAN_ECR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_CAN_ECR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_m_can_read
Lloh7:
	adrp	x8, _ECR_RP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ECR_RP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
	add	x1, sp, #8
	mov	x0, x19
	bl	___m_can_get_berr_counter
	ldr	w8, [sp, #8]
	cmp	w8, #127
	b.ne	LBB0_6
; %bb.5:
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x22
	bl	_m_can_write
	ldr	w8, [x24]
	bic	w21, w21, w8
LBB0_6:
Lloh10:
	adrp	x8, _M_CAN_PSR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _M_CAN_PSR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_m_can_read
	mov	x23, x0
Lloh13:
	adrp	x8, _IR_ERR_STATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IR_ERR_STATE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x19
	mov	x1, x23
	bl	_m_can_handle_state_errors
	mov	x22, x0
	b	LBB0_10
LBB0_8:
	mov	w22, #0
	b	LBB0_14
LBB0_9:
	mov	w22, #0
LBB0_10:
Lloh16:
	adrp	x8, _IR_ERR_BUS_30X@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IR_ERR_BUS_30X@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_m_can_handle_bus_errors
	add	w22, w22, w0
LBB0_12:
Lloh19:
	adrp	x8, _IR_RF0N@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IR_RF0N@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_14
; %bb.13:
	sub	w1, w20, w22
	mov	x0, x19
	bl	_m_can_do_rx_poll
	add	w22, w22, w0
LBB0_14:
	mov	x0, x22
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_M_CAN_IR,4,2                   ; @M_CAN_IR
	.comm	_IR_MRAF,4,2                    ; @IR_MRAF
	.comm	_M_CAN_ECR,4,2                  ; @M_CAN_ECR
	.comm	_ECR_RP,4,2                     ; @ECR_RP
	.comm	_M_CAN_PSR,4,2                  ; @M_CAN_PSR
	.comm	_IR_ERR_STATE,4,2               ; @IR_ERR_STATE
	.comm	_IR_ERR_BUS_30X,4,2             ; @IR_ERR_BUS_30X
	.comm	_IR_RF0N,4,2                    ; @IR_RF0N
	.no_dead_strip	_m_can_rx_handler
.subsections_via_symbols
