	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pciefd_can_probe
_pciefd_can_probe:                      ## @pciefd_can_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	%rdi, %r15
	movq	(%rdi), %rsi
	movq	_PCIEFD_ECHO_SKB_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$112, %edi
	callq	_alloc_peak_canfd_dev
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_pciefd_pre_cmd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	_pciefd_write_cmd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_pciefd_post_cmd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_pciefd_enable_tx_path@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_pciefd_alloc_tx_msg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_pciefd_write_tx_msg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	leaq	104(%rbx), %rax
	movq	%rax, 32(%rbx)
	movl	$4, 16(%rbx)
	movq	%r15, 96(%rbx)
	movq	24(%r15), %r12
	movl	24(%rbx), %edi
	callq	_PCIEFD_CANX_OFF
	addq	%r12, %rax
	movq	%rax, (%rbx)
	movq	8(%r15), %rdi
	movq	_PCIEFD_RX_DMA_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	88(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	callq	_dmam_alloc_coherent
	movq	%rax, 80(%rbx)
	movq	8(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	_PCIEFD_TX_DMA_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	72(%rbx), %rdx
	movl	(%r12), %ecx
	callq	_dmam_alloc_coherent
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	_CANFD_MISC_TS_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCIEFD_REG_CAN_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_pciefd_can_writereg
	movq	_PCIEFD_REG_CAN_CLK_SEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_pciefd_can_readreg
	addl	$-128, %eax
	cmpl	$6, %eax
	jae	LBB0_9
## %bb.10:
	cltq
	leaq	l_switch.table.pciefd_can_probe(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	jmp	LBB0_11
LBB0_1:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_2
LBB0_4:
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	movq	8(%r15), %rdi
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_9:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	$128, %esi
	callq	_pciefd_can_writereg
	movl	$80000000, %eax                 ## imm = 0x4C4B400
LBB0_11:
	movl	%eax, 20(%rbx)
	movq	8(%r15), %rsi
	movl	4(%rsi), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_SET_NETDEV_DEV
	movq	%r14, %rdi
	callq	_register_candev
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	8(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
LBB0_5:
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %rdi
	callq	_free_candev
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_spin_lock_init
	movq	(%r15), %rax
	movq	16(%r15), %rcx
	movq	%rbx, (%rcx,%rax,8)
	movq	8(%r15), %rdi
	movl	(%r14), %r8d
	movl	4(%r14), %edx
	movq	(%rbx), %rcx
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIEFD_ECHO_SKB_MAX,4,2        ## @PCIEFD_ECHO_SKB_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to alloc candev object\n"

	.comm	_pciefd_pre_cmd,4,2             ## @pciefd_pre_cmd
	.comm	_pciefd_write_cmd,4,2           ## @pciefd_write_cmd
	.comm	_pciefd_post_cmd,4,2            ## @pciefd_post_cmd
	.comm	_pciefd_enable_tx_path,4,2      ## @pciefd_enable_tx_path
	.comm	_pciefd_alloc_tx_msg,4,2        ## @pciefd_alloc_tx_msg
	.comm	_pciefd_write_tx_msg,4,2        ## @pciefd_write_tx_msg
	.comm	_PCIEFD_RX_DMA_SIZE,4,2         ## @PCIEFD_RX_DMA_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Rx dmam_alloc_coherent(%u) failure\n"

	.comm	_PCIEFD_TX_DMA_SIZE,4,2         ## @PCIEFD_TX_DMA_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"Tx dmam_alloc_coherent(%u) failure\n"

	.comm	_CANFD_MISC_TS_RST,4,2          ## @CANFD_MISC_TS_RST
	.comm	_PCIEFD_REG_CAN_MISC,4,2        ## @PCIEFD_REG_CAN_MISC
	.comm	_PCIEFD_REG_CAN_CLK_SEL,4,2     ## @PCIEFD_REG_CAN_CLK_SEL
L_.str.3:                               ## @.str.3
	.asciz	"couldn't register CAN device: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s at reg_base=0x%p irq=%d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_pciefd_can_probe
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.pciefd_can_probe
l_switch.table.pciefd_can_probe:
	.long	80000000                        ## 0x4c4b400
	.long	60000000                        ## 0x3938700
	.long	40000000                        ## 0x2625a00
	.long	30000000                        ## 0x1c9c380
	.long	24000000                        ## 0x16e3600
	.long	20000000                        ## 0x1312d00

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pciefd_can_probe
_pciefd_can_probe:                      ; @pciefd_can_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	x20, x0
	ldr	x1, [x0]
Lloh0:
	adrp	x8, _PCIEFD_ECHO_SKB_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIEFD_ECHO_SKB_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w0, #112
	bl	_alloc_peak_canfd_dev
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh3:
	adrp	x8, _pciefd_pre_cmd@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pciefd_pre_cmd@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _pciefd_write_cmd@GOTPAGE
Lloh7:
	ldr	x9, [x9, _pciefd_write_cmd@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #56]
Lloh9:
	adrp	x8, _pciefd_post_cmd@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pciefd_post_cmd@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _pciefd_enable_tx_path@GOTPAGE
Lloh13:
	ldr	x9, [x9, _pciefd_enable_tx_path@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #48]
Lloh15:
	adrp	x8, _pciefd_alloc_tx_msg@GOTPAGE
Lloh16:
	ldr	x8, [x8, _pciefd_alloc_tx_msg@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _pciefd_write_tx_msg@GOTPAGE
Lloh19:
	ldr	x9, [x9, _pciefd_write_tx_msg@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #40]
	add	x8, x0, #104
	str	x8, [x0, #32]
	mov	w8, #4
	str	w8, [x0, #16]
	str	x20, [x0, #96]
	ldr	x22, [x20, #24]
	ldr	w0, [x0, #24]
	bl	_PCIEFD_CANX_OFF
	add	x8, x0, x22
	str	x8, [x21]
Lloh21:
	adrp	x23, _PCIEFD_RX_DMA_SIZE@GOTPAGE
Lloh22:
	ldr	x23, [x23, _PCIEFD_RX_DMA_SIZE@GOTPAGEOFF]
	ldr	x0, [x20, #8]
	ldr	w1, [x23]
	add	x2, x21, #88
Lloh23:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh24:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x22]
	bl	_dmam_alloc_coherent
	mov	x8, x0
	str	x0, [x21, #80]
	ldr	x0, [x20, #8]
	cbz	x8, LBB0_6
; %bb.2:
Lloh25:
	adrp	x23, _PCIEFD_TX_DMA_SIZE@GOTPAGE
Lloh26:
	ldr	x23, [x23, _PCIEFD_TX_DMA_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, x21, #72
	ldr	w3, [x22]
	bl	_dmam_alloc_coherent
	str	x0, [x21, #64]
	cbz	x0, LBB0_7
; %bb.3:
Lloh27:
	adrp	x8, _CANFD_MISC_TS_RST@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CANFD_MISC_TS_RST@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _PCIEFD_REG_CAN_MISC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PCIEFD_REG_CAN_MISC@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_pciefd_can_writereg
Lloh33:
	adrp	x22, _PCIEFD_REG_CAN_CLK_SEL@GOTPAGE
Lloh34:
	ldr	x22, [x22, _PCIEFD_REG_CAN_CLK_SEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_pciefd_can_readreg
	sub	w8, w0, #128
	cmp	w8, #6
	b.hs	LBB0_8
; %bb.4:
Lloh35:
	adrp	x9, l_switch.table.pciefd_can_probe@PAGE
Lloh36:
	add	x9, x9, l_switch.table.pciefd_can_probe@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	b	LBB0_9
LBB0_5:
	ldr	x0, [x20, #8]
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_6:
	ldr	w8, [x23]
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str.1@PAGE
Lloh40:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_7:
	ldr	x0, [x20, #8]
	ldr	w8, [x23]
	str	x8, [sp]
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_8:
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #128
	bl	_pciefd_can_writereg
	mov	w8, #46080
	movk	w8, #1220, lsl #16
LBB0_9:
	str	w8, [x21, #20]
	ldr	x1, [x20, #8]
	ldr	w8, [x1, #4]
	str	w8, [x19]
	mov	x0, x19
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	bl	_register_candev
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_14
; %bb.10:
	ldr	x8, [x20, #8]
	str	x0, [sp]
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
LBB0_11:
	bl	_dev_err
	mov	x0, x19
	bl	_free_candev
LBB0_12:
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
LBB0_14:
	add	x0, x21, #8
	bl	_spin_lock_init
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	str	x21, [x8, x9, lsl #3]
	ldr	x0, [x20, #8]
	ldr	x3, [x21]
	ldp	w4, w2, [x19]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_info
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIEFD_ECHO_SKB_MAX,4,2        ; @PCIEFD_ECHO_SKB_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to alloc candev object\n"

	.comm	_pciefd_pre_cmd,4,2             ; @pciefd_pre_cmd
	.comm	_pciefd_write_cmd,4,2           ; @pciefd_write_cmd
	.comm	_pciefd_post_cmd,4,2            ; @pciefd_post_cmd
	.comm	_pciefd_enable_tx_path,4,2      ; @pciefd_enable_tx_path
	.comm	_pciefd_alloc_tx_msg,4,2        ; @pciefd_alloc_tx_msg
	.comm	_pciefd_write_tx_msg,4,2        ; @pciefd_write_tx_msg
	.comm	_PCIEFD_RX_DMA_SIZE,4,2         ; @PCIEFD_RX_DMA_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Rx dmam_alloc_coherent(%u) failure\n"

	.comm	_PCIEFD_TX_DMA_SIZE,4,2         ; @PCIEFD_TX_DMA_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"Tx dmam_alloc_coherent(%u) failure\n"

	.comm	_CANFD_MISC_TS_RST,4,2          ; @CANFD_MISC_TS_RST
	.comm	_PCIEFD_REG_CAN_MISC,4,2        ; @PCIEFD_REG_CAN_MISC
	.comm	_PCIEFD_REG_CAN_CLK_SEL,4,2     ; @PCIEFD_REG_CAN_CLK_SEL
l_.str.3:                               ; @.str.3
	.asciz	"couldn't register CAN device: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s at reg_base=0x%p irq=%d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pciefd_can_probe
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.pciefd_can_probe
l_switch.table.pciefd_can_probe:
	.long	80000000                        ; 0x4c4b400
	.long	60000000                        ; 0x3938700
	.long	40000000                        ; 0x2625a00
	.long	30000000                        ; 0x1c9c380
	.long	24000000                        ; 0x16e3600
	.long	20000000                        ; 0x1312d00

.subsections_via_symbols
