	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1105_probe
_sja1105_probe:                         ## @sja1105_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
	leaq	4(%rdi), %r15
	cmpl	$0, 4(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_gpiod_get
	movl	%eax, 56(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_6:
	movl	56(%r14), %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_sja1105_hw_reset
LBB0_7:
	movq	%rbx, 48(%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	movl	$8, (%rbx)
	movq	%rbx, %rdi
	callq	_spi_setup
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 40(%r14)
	movq	%r14, %rdi
	callq	_sja1105_check_device_id
	testl	%eax, %eax
	js	LBB0_10
## %bb.12:
	movq	40(%r14), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movq	_SJA1105_NUM_PORTS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_dsa_switch_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.13:
	movq	%rax, %r15
	movq	_sja1105_switch_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	%r14, 8(%r15)
	movq	%r15, (%r14)
	leaq	24(%r14), %r13
	leaq	32(%r14), %rdi
	callq	_skb_queue_head_init
	leaq	28(%r14), %rdi
	movq	_sja1105_rxtstamp_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r13, %rdi
	callq	_spin_lock_init
	movl	(%r12), %r8d
	testl	%r8d, %r8d
	jle	LBB0_20
## %bb.14:
	movq	16(%r14), %rax
	movq	(%r15), %r10
	cmpl	$1, %r8d
	jne	LBB0_16
## %bb.15:
	xorl	%esi, %esi
	jmp	LBB0_18
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rax,%rcx), %rbx
	leaq	(%r10,%rdi), %rdx
	movq	%rbx, (%r10,%rdi)
	movq	%rdx, 8(%rax,%rdi,2)
	movq	%r13, (%rax,%rdi,2)
	leaq	16(%rax,%rcx), %rdx
	leaq	8(%r10,%rdi), %rbx
	movq	%rdx, 8(%r10,%rdi)
	movq	%rbx, 24(%rax,%rdi,2)
	movq	%r13, 16(%rax,%rdi,2)
	addq	$2, %rsi
	addq	$16, %rdi
	addq	$32, %rcx
	cmpq	%rsi, %r9
	jne	LBB0_17
LBB0_18:
	testb	$1, %r8b
	je	LBB0_20
## %bb.19:
	movq	%rsi, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rdx
	leaq	(%r10,%rsi,8), %rdi
	movq	%rdx, (%r10,%rsi,8)
	movq	%rdi, 8(%rax,%rcx)
	movq	%r13, (%rax,%rcx)
LBB0_20:
	movq	%r14, %rdi
	addq	$8, %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	callq	_sja1105_tas_setup
	movq	(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsa_register_switch            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No DTS bindings for SJA1105 driver\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.2:                               ## @.str.2
	.asciz	"reset-gpios not defined, ignoring\n"

L_.str.3:                               ## @.str.3
	.asciz	"Could not init SPI\n"

L_.str.4:                               ## @.str.4
	.asciz	"Device ID check failed: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Probed switch chip: %s\n"

	.comm	_SJA1105_NUM_PORTS,4,2          ## @SJA1105_NUM_PORTS
	.comm	_sja1105_switch_ops,4,2         ## @sja1105_switch_ops
	.comm	_sja1105_rxtstamp_work,4,2      ## @sja1105_rxtstamp_work
	.no_dead_strip	_sja1105_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function sja1105_probe
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sja1105_probe:                         ; @sja1105_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	w8, [x20, #4]!
	cbz	w8, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.2:
	mov	x19, x0
Lloh3:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get
	str	w0, [x19, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_5:
	ldr	w0, [x19, #56]
	mov	w1, #1
	mov	w2, #1
	bl	_sja1105_hw_reset
LBB0_6:
	str	x21, [x19, #48]
	mov	x0, x21
	mov	x1, x19
	bl	_spi_set_drvdata
	mov	w8, #8
	str	w8, [x21]
	mov	x0, x21
	bl	_spi_setup
	tbnz	w0, #31, LBB0_14
; %bb.7:
	mov	x0, x20
	bl	_of_device_get_match_data
	str	x0, [x19, #40]
	mov	x0, x19
	bl	_sja1105_check_device_id
	tbnz	w0, #31, LBB0_15
; %bb.8:
	ldr	x8, [x19, #40]
	ldr	w2, [x8]
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_info
Lloh16:
	adrp	x22, _SJA1105_NUM_PORTS@GOTPAGE
Lloh17:
	ldr	x22, [x22, _SJA1105_NUM_PORTS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_dsa_switch_alloc
	cbz	x0, LBB0_12
; %bb.9:
	mov	x20, x0
Lloh18:
	adrp	x8, _sja1105_switch_ops@GOTPAGE
Lloh19:
	ldr	x8, [x8, _sja1105_switch_ops@GOTPAGEOFF]
	stp	x19, x8, [x0, #8]
	mov	x0, x19
	str	x20, [x0], #32
	add	x21, x19, #24
	bl	_skb_queue_head_init
	add	x0, x19, #28
Lloh20:
	adrp	x8, _sja1105_rxtstamp_work@GOTPAGE
Lloh21:
	ldr	x8, [x8, _sja1105_rxtstamp_work@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x21
	bl	_spin_lock_init
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.10:
	ldr	x9, [x19, #16]
	ldr	x10, [x20]
	cmp	w8, #8
	b.hs	LBB0_18
; %bb.11:
	mov	x11, #0
	b	LBB0_21
LBB0_12:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_14:
	mov	x21, x0
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_15:
	mov	x21, x0
	str	x21, [sp]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_16:
	mov	x0, x20
	bl	_dev_err
LBB0_17:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_18:
	mov	x12, #0
	and	x11, x8, #0xfffffff8
	dup.2d	v0, x21
Lloh29:
	adrp	x13, lCPI0_0@PAGE
Lloh30:
	ldr	q2, [x13, lCPI0_0@PAGEOFF]
	mov	w13, #2
	dup.2d	v3, x13
	mov	w13, #4
	dup.2d	v4, x13
	mov	w13, #6
	dup.2d	v5, x13
	mov	w13, #8
	dup.2d	v6, x13
	lsl	x13, x8, #3
	and	x13, x13, #0x7ffffffc0
	dup.2d	v7, x9
	dup.2d	v16, x10
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	add.2d	v17, v2, v3
	add.2d	v18, v2, v4
	add.2d	v19, v2, v5
	shl.2d	v20, v2, #4
	add.2d	v20, v7, v20
	shl.2d	v21, v17, #4
	add.2d	v21, v7, v21
	shl.2d	v22, v18, #4
	add.2d	v22, v7, v22
	shl.2d	v23, v19, #4
	add.2d	v23, v7, v23
	add	x14, x10, x12
	stp	q20, q21, [x14]
	stp	q22, q23, [x14, #32]
	shl.2d	v24, v2, #3
	add.2d	v1, v16, v24
	shl.2d	v17, v17, #3
	add.2d	v25, v16, v17
	shl.2d	v17, v18, #3
	add.2d	v18, v16, v17
	shl.2d	v19, v19, #3
	add.2d	v27, v16, v19
	fmov	x14, d20
	fmov	x15, d21
	fmov	x16, d22
	fmov	x17, d23
	st2.2d	{ v0, v1 }, [x14]
	mov.16b	v24, v0
	st2.2d	{ v24, v25 }, [x15]
	mov.16b	v17, v0
	mov.16b	v26, v0
	add	x12, x12, #64
	st2.2d	{ v17, v18 }, [x16]
	add.2d	v2, v2, v6
	st2.2d	{ v26, v27 }, [x17]
	cmp	x13, x12
	b.ne	LBB0_19
; %bb.20:
	cmp	x11, x8
	b.eq	LBB0_23
LBB0_21:
	add	x12, x10, x11, lsl #3
	add	x9, x9, x11, lsl #4
	sub	x8, x8, x11
	mov	x10, x12
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	str	x9, [x10], #8
	stp	x21, x12, [x9], #16
	mov	x12, x10
	subs	x8, x8, #1
	b.ne	LBB0_22
LBB0_23:
	add	x0, x19, #8
	bl	_mutex_init
	mov	x0, x20
	bl	_sja1105_tas_setup
	ldr	x0, [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
	add	sp, sp, #64
	b	_dsa_register_switch
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdr	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No DTS bindings for SJA1105 driver\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.2:                               ; @.str.2
	.asciz	"reset-gpios not defined, ignoring\n"

l_.str.3:                               ; @.str.3
	.asciz	"Could not init SPI\n"

l_.str.4:                               ; @.str.4
	.asciz	"Device ID check failed: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Probed switch chip: %s\n"

	.comm	_SJA1105_NUM_PORTS,4,2          ; @SJA1105_NUM_PORTS
	.comm	_sja1105_switch_ops,4,2         ; @sja1105_switch_ops
	.comm	_sja1105_rxtstamp_work,4,2      ; @sja1105_rxtstamp_work
	.no_dead_strip	_sja1105_probe
.subsections_via_symbols
