	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt753x_probe
_mt753x_probe:                          ## @mt753x_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	_EINVAL@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	subl	(%r15), %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rdi
	callq	_of_mdio_find_bus
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r15
	movq	%rbx, 48(%rax)
	movq	%r14, 16(%rax)
	leaq	44(%rax), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	callq	_mt753x_hw_reset
	testq	%rax, %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_11
LBB0_4:
	movl	%r13d, %ebx
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_devm_kfree
	jmp	LBB0_10
LBB0_6:
	subl	(%r15), %ebx
	jmp	LBB0_10
LBB0_7:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	40(%r15), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_MT753X_DFL_SMI_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_13:
	movq	%r12, %rdi
	callq	_mt753x_find_mapping
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_mt753x_apply_mapping
	movl	$1, (%r15)
	movq	16(%r15), %rdi
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_15:
	movq	%r15, %rdi
	callq	_mt753x_load_port_cfg
	movq	_mt753x_sw_ids@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jle	LBB0_19
## %bb.16:
	leaq	-56(%rbp), %rbx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rax
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*24(%rax)
	testl	%eax, %eax
	je	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%r12
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r12
	jl	LBB0_17
LBB0_19:
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
LBB0_20:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jge	LBB0_24
## %bb.21:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	js	LBB0_27
## %bb.22:
	movq	%rax, %rbx
	movq	16(%r15), %r12
	movq	_mt753x_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_dev_name
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_26
## %bb.23:
	movl	%eax, %ebx
	movq	8(%r15), %rdx
	movq	16(%r15), %rdi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_24:
	movq	16(%r15), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
LBB0_25:
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rbx
	movl	-52(%rbp), %edx
	movl	%edx, 32(%r15)
	movl	16(%rbx), %eax
	movl	%eax, 36(%r15)
	movq	16(%r15), %rdi
	movl	-56(%rbp), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r15, %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	callq	*(%rbx)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_20
LBB0_26:
	movq	%r15, %rdi
	addq	$28, %rdi
	movq	_mt753x_irq_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
LBB0_27:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	16(%r15), %rax
	movq	(%rax), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_of_property_read_bool
	movl	%eax, 24(%r15)
	movq	%r15, %rdi
	callq	_mt753x_add_gsw
	movq	%r15, %rdi
	callq	_mt753x_swconfig_init
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movq	%r15, %rdi
	callq	*%rax
LBB0_29:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r15)
	js	LBB0_10
## %bb.30:
	movq	%r15, %rdi
	callq	_mt753x_irq_enable
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mediatek,mdio"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"mediatek,smi-addr"

	.comm	_MT753X_DFL_SMI_ADDR,4,2        ## @MT753X_DFL_SMI_ADDR
L_.str.2:                               ## @.str.2
	.asciz	"LAN/WAN VLAN setting=%s\n"

	.comm	_mt753x_sw_ids,8,3              ## @mt753x_sw_ids
L_.str.3:                               ## @.str.3
	.asciz	"Switch is MediaTek %s rev %d"

L_.str.4:                               ## @.str.4
	.asciz	"No mt753x switch found\n"

	.comm	_mt753x_irq_handler,4,2         ## @mt753x_irq_handler
L_.str.5:                               ## @.str.5
	.asciz	"Failed to request irq %d\n"

	.comm	_mt753x_irq_worker,4,2          ## @mt753x_irq_worker
L_.str.6:                               ## @.str.6
	.asciz	"mediatek,phy-poll"

	.no_dead_strip	_mt753x_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt753x_probe
_mt753x_probe:                          ; @mt753x_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	x22, [x0]
Lloh0:
	adrp	x19, _EINVAL@GOTPAGE
Lloh1:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
	ldr	w21, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_5
; %bb.1:
	bl	_of_mdio_find_bus
	cbz	x0, LBB0_6
; %bb.2:
	mov	x23, x0
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x19, x0
	neg	w21, w21
	str	x23, [x0, #48]
	str	x20, [x0, #16]
	add	x0, x0, #44
	bl	_mutex_init
	mov	x0, x19
	bl	_mt753x_hw_reset
	cbz	x0, LBB0_11
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_devm_kfree
	b	LBB0_10
LBB0_5:
	ldr	w8, [x19]
	b	LBB0_9
LBB0_6:
Lloh7:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
LBB0_9:
	neg	w21, w8
LBB0_10:
	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_11:
	add	x23, x19, #40
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_of_property_read_u32
	cbz	x0, LBB0_13
; %bb.12:
Lloh13:
	adrp	x8, _MT753X_DFL_SMI_ADDR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MT753X_DFL_SMI_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x23]
LBB0_13:
	mov	x0, x22
	bl	_mt753x_find_mapping
	cbz	x0, LBB0_15
; %bb.14:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_mt753x_apply_mapping
	mov	w8, #1
	str	w8, [x19]
	ldr	x0, [x19, #16]
	ldr	w2, [x22]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
LBB0_15:
	mov	x0, x19
	bl	_mt753x_load_port_cfg
Lloh18:
	adrp	x22, _mt753x_sw_ids@GOTPAGE
Lloh19:
	ldr	x22, [x22, _mt753x_sw_ids@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.16:
	mov	x23, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, #24]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_26
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_17
	b	LBB0_20
LBB0_19:
	mov	w23, #0
LBB0_20:
                                        ; implicit-def: $x24
LBB0_21:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.ge	LBB0_25
; %bb.22:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x19, #8]
	tbnz	x0, #63, LBB0_28
; %bb.23:
	mov	x21, x0
	ldr	x22, [x19, #16]
Lloh20:
	adrp	x8, _mt753x_irq_handler@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mt753x_irq_handler@GOTPAGEOFF]
Lloh22:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_dev_name
	mov	x4, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_27
; %bb.24:
	mov	x21, x0
	ldp	x8, x0, [x19, #8]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
	b	LBB0_4
LBB0_25:
	ldr	x0, [x19, #16]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	b	LBB0_4
LBB0_26:
	ldr	x8, [x22]
	ldr	x24, [x8, x23, lsl #3]
	ldr	w8, [x24, #16]
	ldp	w9, w2, [sp, #8]
	stp	w2, w8, [x19, #32]
	ldr	x0, [x19, #16]
	str	x9, [sp]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_info
	ldr	x8, [x24]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_4
	b	LBB0_21
LBB0_27:
	add	x0, x19, #28
Lloh29:
	adrp	x8, _mt753x_irq_worker@GOTPAGE
Lloh30:
	ldr	x8, [x8, _mt753x_irq_worker@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_INIT_WORK
LBB0_28:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_of_property_read_bool
	str	w0, [x19, #24]
	mov	x0, x19
	bl	_mt753x_add_gsw
	mov	x0, x19
	bl	_mt753x_swconfig_init
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_30
; %bb.29:
	mov	x0, x19
	blr	x8
LBB0_30:
	ldr	x8, [x19, #8]
	tbnz	x8, #63, LBB0_32
; %bb.31:
	mov	x0, x19
	bl	_mt753x_irq_enable
LBB0_32:
	mov	w21, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mediatek,mdio"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"mediatek,smi-addr"

	.comm	_MT753X_DFL_SMI_ADDR,4,2        ; @MT753X_DFL_SMI_ADDR
l_.str.2:                               ; @.str.2
	.asciz	"LAN/WAN VLAN setting=%s\n"

	.comm	_mt753x_sw_ids,8,3              ; @mt753x_sw_ids
l_.str.3:                               ; @.str.3
	.asciz	"Switch is MediaTek %s rev %d"

l_.str.4:                               ; @.str.4
	.asciz	"No mt753x switch found\n"

	.comm	_mt753x_irq_handler,4,2         ; @mt753x_irq_handler
l_.str.5:                               ; @.str.5
	.asciz	"Failed to request irq %d\n"

	.comm	_mt753x_irq_worker,4,2          ; @mt753x_irq_worker
l_.str.6:                               ; @.str.6
	.asciz	"mediatek,phy-poll"

	.no_dead_strip	_mt753x_probe
.subsections_via_symbols
