	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gswip_probe
_gswip_probe:                           ## @gswip_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 56(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	56(%r13), %rdi
	jmp	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 48(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	48(%r13), %rdi
	jmp	LBB0_5
LBB0_8:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 40(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	40(%r13), %rdi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_10:
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_dsa_switch_alloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.13:
	movq	%r13, 16(%rax)
	movq	_gswip_switch_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	%r14, 32(%r13)
	movq	_GSWIP_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_gswip_switch_r
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_of_get_compatible_child
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	%rax, %r12
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_gswip_gphy_fw_list
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_of_node_put
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.15:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_28
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_28:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_16:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_of_get_compatible_child
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_gswip_mdio
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_25
LBB0_19:
	movq	16(%r13), %rdi
	callq	_dsa_register_switch
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	testq	%r12, %r12
	je	LBB0_25
LBB0_24:
	movq	16(%r13), %rax
	movl	(%rax), %edi
	callq	_mdiobus_unregister
LBB0_25:
	movq	%r12, %rdi
	callq	_of_node_put
	cmpl	$0, (%r13)
	jle	LBB0_28
## %bb.26:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rsi
	addq	%r14, %rsi
	movq	%r13, %rdi
	callq	_gswip_gphy_fw_remove
	incq	%rbx
	movslq	(%r13), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_27
	jmp	LBB0_28
LBB0_21:
	movq	16(%r13), %rdi
	movq	24(%r13), %rax
	movl	(%rax), %esi
	callq	_dsa_is_cpu_port
	testl	%eax, %eax
	je	LBB0_22
## %bb.29:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_platform_set_drvdata
	movq	_GSWIP_VERSION_REV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ebx, %edx
	movq	_GSWIP_VERSION_REV_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	_GSWIP_VERSION_MOD_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_GSWIP_VERSION_MOD_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_dev_info
	xorl	%r15d, %r15d
	jmp	LBB0_28
LBB0_22:
	movq	24(%r13), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movq	_GSWIP_MDIO_GLOB_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GSWIP_MDIO_GLOB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_gswip_mdio_mask
	movq	16(%r13), %rdi
	callq	_dsa_unregister_switch
	testq	%r12, %r12
	jne	LBB0_24
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_gswip_switch_ops,4,2           ## @gswip_switch_ops
	.comm	_GSWIP_VERSION,4,2              ## @GSWIP_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lantiq,gphy-fw"

L_.str.1:                               ## @.str.1
	.asciz	"gphy fw probe failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"lantiq,xrx200-mdio"

L_.str.3:                               ## @.str.3
	.asciz	"mdio probe failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"dsa switch register failed: %i\n"

L_.str.5:                               ## @.str.5
	.asciz	"wrong CPU port defined, HW only supports port: %i"

L_.str.6:                               ## @.str.6
	.asciz	"probed GSWIP version %lx mod %lx\n"

	.comm	_GSWIP_VERSION_REV_MASK,4,2     ## @GSWIP_VERSION_REV_MASK
	.comm	_GSWIP_VERSION_REV_SHIFT,4,2    ## @GSWIP_VERSION_REV_SHIFT
	.comm	_GSWIP_VERSION_MOD_MASK,4,2     ## @GSWIP_VERSION_MOD_MASK
	.comm	_GSWIP_VERSION_MOD_SHIFT,4,2    ## @GSWIP_VERSION_MOD_SHIFT
	.comm	_GSWIP_MDIO_GLOB_ENABLE,4,2     ## @GSWIP_MDIO_GLOB_ENABLE
	.comm	_GSWIP_MDIO_GLOB,4,2            ## @GSWIP_MDIO_GLOB
	.no_dead_strip	_gswip_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gswip_probe
_gswip_probe:                           ; @gswip_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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x19, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x19, #56]
	b	LBB0_7
LBB0_3:
	mov	x0, x20
	mov	w1, #1
	bl	_devm_platform_ioremap_resource
	str	x0, [x19, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x19, #48]
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	mov	w1, #2
	bl	_devm_platform_ioremap_resource
	str	x0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x0, [x19, #40]
LBB0_7:
	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
	b	_PTR_ERR
LBB0_8:
	mov	x0, x20
	bl	_of_device_get_match_data
	str	x0, [x19, #24]
	cbz	x0, LBB0_16
; %bb.9:
	ldr	w1, [x0, #4]
	mov	x0, x20
	bl	_dsa_switch_alloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_13
; %bb.10:
Lloh3:
	adrp	x8, _gswip_switch_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gswip_switch_ops@GOTPAGEOFF]
	stp	x8, x19, [x0, #8]
	str	x20, [x19, #32]
Lloh5:
	adrp	x8, _GSWIP_VERSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GSWIP_VERSION@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gswip_switch_r
	mov	x23, x0
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_get_compatible_child
	cbz	x0, LBB0_17
; %bb.11:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_gswip_gphy_fw_list
	mov	x21, x0
	mov	x0, x22
	bl	_of_node_put
	cbz	w21, LBB0_17
; %bb.12:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_15
LBB0_13:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_15:
	mov	x0, x21
	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_16:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_17:
	ldr	w0, [x20]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_of_get_compatible_child
	mov	x22, x0
	cbz	x0, LBB0_20
; %bb.18:
	mov	x0, x19
	mov	x1, x22
	bl	_gswip_mdio
	cbz	w0, LBB0_20
; %bb.19:
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_23
LBB0_20:
	ldr	x0, [x19, #16]
	bl	_dsa_register_switch
	cbz	w0, LBB0_26
; %bb.21:
	mov	x21, x0
	str	x21, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	cbz	x22, LBB0_23
LBB0_22:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_mdiobus_unregister
LBB0_23:
	mov	x0, x22
	bl	_of_node_put
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.24:
	mov	x20, #0
	mov	x22, #0
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x20
	mov	x0, x19
	bl	_gswip_gphy_fw_remove
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x20, x20, #4
	cmp	x22, x8
	b.lt	LBB0_25
	b	LBB0_15
LBB0_26:
	ldp	x0, x8, [x19, #16]
	ldr	w1, [x8]
	bl	_dsa_is_cpu_port
	cbz	w0, LBB0_28
; %bb.27:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh22:
	adrp	x8, _GSWIP_VERSION_REV_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GSWIP_VERSION_REV_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	and	w8, w8, w23
Lloh25:
	adrp	x9, _GSWIP_VERSION_REV_SHIFT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _GSWIP_VERSION_REV_SHIFT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	asr	w2, w8, w9
Lloh28:
	adrp	x8, _GSWIP_VERSION_MOD_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GSWIP_VERSION_MOD_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	and	w8, w8, w23
Lloh31:
	adrp	x9, _GSWIP_VERSION_MOD_SHIFT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _GSWIP_VERSION_MOD_SHIFT@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	asr	w3, w8, w9
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w21, #0
	b	LBB0_15
LBB0_28:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh38:
	adrp	x8, _EINVAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w21, w8
Lloh41:
	adrp	x8, _GSWIP_MDIO_GLOB_ENABLE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _GSWIP_MDIO_GLOB_ENABLE@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x8, _GSWIP_MDIO_GLOB@GOTPAGE
Lloh45:
	ldr	x8, [x8, _GSWIP_MDIO_GLOB@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_gswip_mdio_mask
	ldr	x0, [x19, #16]
	bl	_dsa_unregister_switch
	cbnz	x22, LBB0_22
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_gswip_switch_ops,4,2           ; @gswip_switch_ops
	.comm	_GSWIP_VERSION,4,2              ; @GSWIP_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lantiq,gphy-fw"

l_.str.1:                               ; @.str.1
	.asciz	"gphy fw probe failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"lantiq,xrx200-mdio"

l_.str.3:                               ; @.str.3
	.asciz	"mdio probe failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"dsa switch register failed: %i\n"

l_.str.5:                               ; @.str.5
	.asciz	"wrong CPU port defined, HW only supports port: %i"

l_.str.6:                               ; @.str.6
	.asciz	"probed GSWIP version %lx mod %lx\n"

	.comm	_GSWIP_VERSION_REV_MASK,4,2     ; @GSWIP_VERSION_REV_MASK
	.comm	_GSWIP_VERSION_REV_SHIFT,4,2    ; @GSWIP_VERSION_REV_SHIFT
	.comm	_GSWIP_VERSION_MOD_MASK,4,2     ; @GSWIP_VERSION_MOD_MASK
	.comm	_GSWIP_VERSION_MOD_SHIFT,4,2    ; @GSWIP_VERSION_MOD_SHIFT
	.comm	_GSWIP_MDIO_GLOB_ENABLE,4,2     ; @GSWIP_MDIO_GLOB_ENABLE
	.comm	_GSWIP_MDIO_GLOB,4,2            ; @GSWIP_MDIO_GLOB
	.no_dead_strip	_gswip_probe
.subsections_via_symbols
