	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_can_stop
_rcar_can_stop:                         ## @rcar_can_stop
	.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
	callq	_netdev_priv
	movq	%rax, %r12
	movq	8(%rax), %rdi
	callq	_readw
	movl	%eax, %r14d
	movq	_RCAR_CAN_CTLR_CANM_FORCE_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	8(%r12), %rsi
	movl	%r14d, %edi
	callq	_writew
	movq	_MAX_STR_READS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	movq	_RCAR_CAN_STR_RSTST@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	addq	$20, %rdi
	callq	_readw
	testl	%eax, (%r13)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_3
LBB0_4:
	movq	8(%r12), %rsi
	addq	$16, %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	8(%r12), %rsi
	addq	$12, %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	8(%r12), %rsi
	addq	$8, %rsi
	xorl	%edi, %edi
	callq	_writeb
	movq	8(%r12), %rsi
	addq	$4, %rsi
	xorl	%edi, %edi
	callq	_writeb
	movq	_RCAR_CAN_CTLR_SLPM@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	8(%r12), %rsi
	movl	%r14d, %edi
	callq	_writew
	movq	_CAN_STATE_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCAR_CAN_CTLR_CANM_FORCE_RESET,4,2 ## @RCAR_CAN_CTLR_CANM_FORCE_RESET
	.comm	_MAX_STR_READS,4,2              ## @MAX_STR_READS
	.comm	_RCAR_CAN_STR_RSTST,4,2         ## @RCAR_CAN_STR_RSTST
	.comm	_RCAR_CAN_CTLR_SLPM,4,2         ## @RCAR_CAN_CTLR_SLPM
	.comm	_CAN_STATE_STOPPED,4,2          ## @CAN_STATE_STOPPED
	.no_dead_strip	_rcar_can_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_can_stop
_rcar_can_stop:                         ; @rcar_can_stop
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_readw
Lloh0:
	adrp	x8, _RCAR_CAN_CTLR_CANM_FORCE_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCAR_CAN_CTLR_CANM_FORCE_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w20, w8, w0
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_writew
Lloh3:
	adrp	x21, _MAX_STR_READS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAX_STR_READS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w22, #0
Lloh5:
	adrp	x23, _RCAR_CAN_STR_RSTST@GOTPAGE
Lloh6:
	ldr	x23, [x23, _RCAR_CAN_STR_RSTST@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, #20
	bl	_readw
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w22, #1
	ldr	w8, [x21]
	cmp	w22, w8
	b.lt	LBB0_2
LBB0_4:
	ldr	x8, [x19, #8]
	add	x1, x8, #16
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #8]
	add	x1, x8, #12
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #8]
	add	x1, x8, #8
	mov	w0, #0
	bl	_writeb
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	mov	w0, #0
	bl	_writeb
Lloh7:
	adrp	x8, _RCAR_CAN_CTLR_SLPM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RCAR_CAN_CTLR_SLPM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w0, w8, w20
	ldr	x1, [x19, #8]
	bl	_writew
Lloh10:
	adrp	x8, _CAN_STATE_STOPPED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CAN_STATE_STOPPED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19]
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RCAR_CAN_CTLR_CANM_FORCE_RESET,4,2 ; @RCAR_CAN_CTLR_CANM_FORCE_RESET
	.comm	_MAX_STR_READS,4,2              ; @MAX_STR_READS
	.comm	_RCAR_CAN_STR_RSTST,4,2         ; @RCAR_CAN_STR_RSTST
	.comm	_RCAR_CAN_CTLR_SLPM,4,2         ; @RCAR_CAN_CTLR_SLPM
	.comm	_CAN_STATE_STOPPED,4,2          ; @CAN_STATE_STOPPED
	.no_dead_strip	_rcar_can_stop
.subsections_via_symbols
