	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7530_probe
_mt7530_probe:                          ## @mt7530_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r14
	movq	_DSA_MAX_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dsa_switch_alloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_reset_control_get
	movq	%rax, 72(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	72(%r14), %rdi
	jmp	LBB0_8
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_of_device_get_match_data
	movl	%eax, (%r14)
	movq	_ID_MT7530@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_11
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get
	movq	%rax, 64(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	64(%r14), %rdi
	jmp	LBB0_8
LBB0_9:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get
	movq	%rax, 56(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	56(%r14), %rdi
	jmp	LBB0_8
LBB0_11:
	cmpq	$0, 48(%r14)
	je	LBB0_12
LBB0_14:
	movl	8(%rbx), %eax
	movl	%eax, 32(%r14)
	movq	%rbx, 24(%r14)
	movq	8(%r14), %rax
	movq	%r14, 8(%rax)
	movq	_mt7530_switch_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
	movq	8(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsa_register_switch            ## TAILCALL
LBB0_12:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	40(%r14), %rdi
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DSA_MAX_PORTS,4,2              ## @DSA_MAX_PORTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mediatek,mcm"

L_.str.1:                               ## @.str.1
	.asciz	"MT7530 adapts as multi-chip module\n"

L_.str.2:                               ## @.str.2
	.asciz	"mcm"

L_.str.3:                               ## @.str.3
	.asciz	"Couldn't get our reset line\n"

	.comm	_ID_MT7530,4,2                  ## @ID_MT7530
L_.str.4:                               ## @.str.4
	.asciz	"core"

L_.str.5:                               ## @.str.5
	.asciz	"io"

L_.str.6:                               ## @.str.6
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_mt7530_switch_ops,4,2          ## @mt7530_switch_ops
	.no_dead_strip	_mt7530_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7530_probe
_mt7530_probe:                          ; @mt7530_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _DSA_MAX_PORTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSA_MAX_PORTS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dsa_switch_alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	str	x0, [x19, #48]
	cbz	x0, LBB0_6
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_reset_control_get
	str	x0, [x19, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #72]
	b	LBB0_15
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x20
	bl	_of_device_get_match_data
	str	w0, [x19]
Lloh17:
	adrp	x8, _ID_MT7530@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ID_MT7530@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_11
; %bb.7:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	x0, [x19, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x19, #64]
	b	LBB0_15
LBB0_9:
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	x0, [x19, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x0, [x19, #56]
	b	LBB0_15
LBB0_11:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_13
LBB0_12:
	ldr	w8, [x20, #8]
	str	w8, [x19, #32]
	str	x20, [x19, #24]
	ldr	x8, [x19, #8]
Lloh24:
	adrp	x9, _mt7530_switch_ops@GOTPAGE
Lloh25:
	ldr	x9, [x9, _mt7530_switch_ops@GOTPAGEOFF]
	stp	x9, x19, [x8]
	add	x0, x19, #16
	bl	_mutex_init
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dsa_register_switch
LBB0_13:
Lloh26:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	str	x0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.14:
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #40]
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DSA_MAX_PORTS,4,2              ; @DSA_MAX_PORTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mediatek,mcm"

l_.str.1:                               ; @.str.1
	.asciz	"MT7530 adapts as multi-chip module\n"

l_.str.2:                               ; @.str.2
	.asciz	"mcm"

l_.str.3:                               ; @.str.3
	.asciz	"Couldn't get our reset line\n"

	.comm	_ID_MT7530,4,2                  ; @ID_MT7530
l_.str.4:                               ; @.str.4
	.asciz	"core"

l_.str.5:                               ; @.str.5
	.asciz	"io"

l_.str.6:                               ; @.str.6
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_mt7530_switch_ops,4,2          ; @mt7530_switch_ops
	.no_dead_strip	_mt7530_probe
.subsections_via_symbols
