	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_canfd_channel_probe
_rcar_canfd_channel_probe:              ## @rcar_canfd_channel_probe
	.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
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	24(%rdi), %r14
	movq	_RCANFD_FIFO_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_alloc_candev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rbx, %rcx
	movq	%rax, %rbx
	movq	_rcar_canfd_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	movq	_IFF_ECHO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	movq	%r12, 72(%rbx)
	movl	16(%r15), %eax
	movl	%eax, 64(%rbx)
	movq	%rcx, (%rbx)
	movq	%r13, 56(%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_dev_info
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.3:
	movq	_rcar_canfd_nom_bittiming_const@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_rcar_canfd_data_bittiming_const@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movq	_CAN_CTRLMODE_FD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_can_set_static_ctrlmode
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_8
LBB0_4:
	movq	_rcar_canfd_bittiming_const@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
LBB0_5:
	movq	_CAN_CTRLMODE_BERR_REPORTING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_rcar_canfd_do_set_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_rcar_canfd_get_berr_counter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r15, 16(%rbx)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %r14
	movq	_rcar_canfd_rx_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RCANFD_NAPI_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_netif_napi_add
	movq	%r12, %rdi
	callq	_register_candev
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %rdi
	callq	_netif_napi_del
	movq	%r12, %rdi
	callq	_free_candev
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	addq	$12, %rdi
	callq	_spin_lock_init
	movq	%r12, %rdi
	callq	_devm_can_led_init
	movq	(%r15), %rax
	movq	(%rbx), %rdx
	movq	%rbx, (%rax,%rdx,8)
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_info
	xorl	%r13d, %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_RCANFD_FIFO_DEPTH,4,2          ## @RCANFD_FIFO_DEPTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alloc_candev() failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rcar_canfd_netdev_ops,4,2      ## @rcar_canfd_netdev_ops
	.comm	_IFF_ECHO,4,2                   ## @IFF_ECHO
L_.str.1:                               ## @.str.1
	.asciz	"can_clk rate is %u\n"

	.comm	_rcar_canfd_nom_bittiming_const,4,2 ## @rcar_canfd_nom_bittiming_const
	.comm	_rcar_canfd_data_bittiming_const,4,2 ## @rcar_canfd_data_bittiming_const
	.comm	_CAN_CTRLMODE_FD,4,2            ## @CAN_CTRLMODE_FD
	.comm	_CAN_CTRLMODE_BERR_REPORTING,8,3 ## @CAN_CTRLMODE_BERR_REPORTING
	.comm	_rcar_canfd_bittiming_const,4,2 ## @rcar_canfd_bittiming_const
	.comm	_rcar_canfd_do_set_mode,4,2     ## @rcar_canfd_do_set_mode
	.comm	_rcar_canfd_get_berr_counter,4,2 ## @rcar_canfd_get_berr_counter
	.comm	_rcar_canfd_rx_poll,4,2         ## @rcar_canfd_rx_poll
	.comm	_RCANFD_NAPI_WEIGHT,4,2         ## @RCANFD_NAPI_WEIGHT
L_.str.2:                               ## @.str.2
	.asciz	"register_candev() failed, error %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"device registered (channel %u)\n"

	.no_dead_strip	_rcar_canfd_channel_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_canfd_channel_probe
_rcar_canfd_channel_probe:              ; @rcar_canfd_channel_probe
	.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	x23, x2
	mov	x24, x1
	mov	x21, x0
	ldr	x19, [x0, #24]
Lloh0:
	adrp	x8, _RCANFD_FIFO_DEPTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCANFD_FIFO_DEPTH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_alloc_candev
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_netdev_priv
	mov	x22, x0
Lloh3:
	adrp	x8, _rcar_canfd_netdev_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rcar_canfd_netdev_ops@GOTPAGEOFF]
	str	x8, [x20, #8]
Lloh5:
	adrp	x8, _IFF_ECHO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IFF_ECHO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	str	x20, [x0, #72]
	ldr	w8, [x21, #16]
	str	w8, [x0, #64]
	str	x24, [x0]
	str	x23, [x0, #56]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_info
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _rcar_canfd_nom_bittiming_const@GOTPAGE
Lloh11:
	ldr	x8, [x8, _rcar_canfd_nom_bittiming_const@GOTPAGEOFF]
Lloh12:
	adrp	x9, _rcar_canfd_data_bittiming_const@GOTPAGE
Lloh13:
	ldr	x9, [x9, _rcar_canfd_data_bittiming_const@GOTPAGEOFF]
	stp	x8, x9, [x22, #40]
Lloh14:
	adrp	x8, _CAN_CTRLMODE_FD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CAN_CTRLMODE_FD@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_can_set_static_ctrlmode
	b	LBB0_5
LBB0_3:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_8
LBB0_4:
Lloh22:
	adrp	x8, _rcar_canfd_bittiming_const@GOTPAGE
Lloh23:
	ldr	x8, [x8, _rcar_canfd_bittiming_const@GOTPAGEOFF]
	str	x8, [x22, #40]
LBB0_5:
Lloh24:
	adrp	x8, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [x22, #32]
Lloh27:
	adrp	x8, _rcar_canfd_do_set_mode@GOTPAGE
Lloh28:
	ldr	x8, [x8, _rcar_canfd_do_set_mode@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _rcar_canfd_get_berr_counter@GOTPAGE
Lloh31:
	ldr	x9, [x9, _rcar_canfd_get_berr_counter@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #24]
	str	x21, [x22, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_SET_NETDEV_DEV
	add	x23, x22, #8
Lloh33:
	adrp	x8, _rcar_canfd_rx_poll@GOTPAGE
Lloh34:
	ldr	x8, [x8, _rcar_canfd_rx_poll@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
Lloh36:
	adrp	x8, _RCANFD_NAPI_WEIGHT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RCANFD_NAPI_WEIGHT@GOTPAGEOFF]
Lloh38:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x23
	bl	_netif_napi_add
	mov	x0, x20
	bl	_register_candev
	mov	x24, x0
	cbz	w0, LBB0_7
; %bb.6:
	str	x24, [sp]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x23
	bl	_netif_napi_del
	mov	x0, x20
	bl	_free_candev
	b	LBB0_8
LBB0_7:
	add	x0, x22, #12
	bl	_spin_lock_init
	mov	x0, x20
	bl	_devm_can_led_init
	ldr	x8, [x21]
	ldr	x2, [x22]
	str	x22, [x8, x2, lsl #3]
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_8:
	mov	x0, x24
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_RCANFD_FIFO_DEPTH,4,2          ; @RCANFD_FIFO_DEPTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alloc_candev() failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rcar_canfd_netdev_ops,4,2      ; @rcar_canfd_netdev_ops
	.comm	_IFF_ECHO,4,2                   ; @IFF_ECHO
l_.str.1:                               ; @.str.1
	.asciz	"can_clk rate is %u\n"

	.comm	_rcar_canfd_nom_bittiming_const,4,2 ; @rcar_canfd_nom_bittiming_const
	.comm	_rcar_canfd_data_bittiming_const,4,2 ; @rcar_canfd_data_bittiming_const
	.comm	_CAN_CTRLMODE_FD,4,2            ; @CAN_CTRLMODE_FD
	.comm	_CAN_CTRLMODE_BERR_REPORTING,8,3 ; @CAN_CTRLMODE_BERR_REPORTING
	.comm	_rcar_canfd_bittiming_const,4,2 ; @rcar_canfd_bittiming_const
	.comm	_rcar_canfd_do_set_mode,4,2     ; @rcar_canfd_do_set_mode
	.comm	_rcar_canfd_get_berr_counter,4,2 ; @rcar_canfd_get_berr_counter
	.comm	_rcar_canfd_rx_poll,4,2         ; @rcar_canfd_rx_poll
	.comm	_RCANFD_NAPI_WEIGHT,4,2         ; @RCANFD_NAPI_WEIGHT
l_.str.2:                               ; @.str.2
	.asciz	"register_candev() failed, error %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"device registered (channel %u)\n"

	.no_dead_strip	_rcar_canfd_channel_probe
.subsections_via_symbols
