	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function realtek_smi_probe
_realtek_smi_probe:                     ## @realtek_smi_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
	callq	_of_device_get_match_data
	movq	%rax, %r15
	movq	(%r14), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$88, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %r13
	movq	_realtek_smi_mdio_regmap_config@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_devm_regmap_init
	movq	%rax, 80(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	80(%r13), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_5:
	movq	%r14, 72(%r13)
	movl	24(%r15), %eax
	movl	%eax, 68(%r13)
	movl	20(%r15), %eax
	movl	%eax, 64(%r13)
	movl	16(%r15), %eax
	movl	%eax, 60(%r13)
	movq	8(%r15), %rax
	movq	%rax, 16(%r13)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_dev_set_drvdata
	movq	%r13, %rdi
	addq	$56, %rdi
	callq	_spin_lock_init
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 48(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	48(%r13), %rdi
	jmp	LBB0_11
LBB0_7:
	movq	_REALTEK_SMI_HW_STOP_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	48(%r13), %rdi
	xorl	%esi, %esi
	callq	_gpiod_set_value
	movq	_REALTEK_SMI_HW_START_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 40(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	40(%r13), %rdi
	jmp	LBB0_11
LBB0_9:
	movl	(%rbx), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 32(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	32(%r13), %rdi
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_bool
	movl	%eax, 24(%r13)
	movq	16(%r13), %rax
	movq	%r13, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_14:
	movl	8(%r13), %esi
	movq	%r14, %rdi
	callq	_dsa_switch_alloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	%r13, 8(%rax)
	movl	(%r15), %ecx
	movl	%ecx, (%rax)
	movq	%rax, %rdi
	callq	_dsa_register_switch
	testl	%eax, %eax
	je	LBB0_19
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_3
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_realtek_smi_mdio_regmap_config,4,2 ## @realtek_smi_mdio_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"regmap init failed: %d\n"

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

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.2:                               ## @.str.2
	.asciz	"failed to get RESET GPIO\n"

	.comm	_REALTEK_SMI_HW_STOP_DELAY,4,2  ## @REALTEK_SMI_HW_STOP_DELAY
	.comm	_REALTEK_SMI_HW_START_DELAY,4,2 ## @REALTEK_SMI_HW_START_DELAY
L_.str.3:                               ## @.str.3
	.asciz	"deasserted RESET\n"

L_.str.4:                               ## @.str.4
	.asciz	"mdc"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.5:                               ## @.str.5
	.asciz	"mdio"

L_.str.6:                               ## @.str.6
	.asciz	"realtek,disable-leds"

L_.str.7:                               ## @.str.7
	.asciz	"unable to detect switch\n"

L_.str.8:                               ## @.str.8
	.asciz	"unable to register switch ret = %d\n"

	.no_dead_strip	_realtek_smi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function realtek_smi_probe
_realtek_smi_probe:                     ; @realtek_smi_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	x19, x0
	bl	_of_device_get_match_data
	mov	x20, x0
	ldr	x22, [x19]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #88
	bl	_devm_kzalloc
	cbz	x0, LBB0_16
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x3, _realtek_smi_mdio_regmap_config@GOTPAGE
Lloh4:
	ldr	x3, [x3, _realtek_smi_mdio_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x21
	bl	_devm_regmap_init
	str	x0, [x21, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x21, #80]
	bl	_PTR_ERR
	mov	x22, x0
	str	x22, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_17
LBB0_4:
	str	x19, [x21, #72]
	ldr	w8, [x20, #24]
	str	w8, [x21, #68]
	ldr	d0, [x20, #16]
	stur	d0, [x21, #60]
	ldr	x8, [x20, #8]
	str	x8, [x21, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_dev_set_drvdata
	add	x0, x21, #56
	bl	_spin_lock_init
Lloh7:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	x0, [x21, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x21, #48]
	b	LBB0_10
LBB0_6:
Lloh14:
	adrp	x8, _REALTEK_SMI_HW_STOP_DELAY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REALTEK_SMI_HW_STOP_DELAY@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_msleep
	ldr	x0, [x21, #48]
	mov	w1, #0
	bl	_gpiod_set_value
Lloh17:
	adrp	x8, _REALTEK_SMI_HW_START_DELAY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REALTEK_SMI_HW_START_DELAY@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_msleep
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
Lloh22:
	adrp	x23, _GPIOD_OUT_LOW@GOTPAGE
Lloh23:
	ldr	x23, [x23, _GPIOD_OUT_LOW@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	x0, [x21, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x21, #40]
	b	LBB0_10
LBB0_8:
	ldr	w2, [x23]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	x0, [x21, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x0, [x21, #32]
LBB0_10:
	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_11:
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	str	w0, [x21, #24]
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_13
; %bb.12:
	mov	x22, x0
Lloh30:
	adrp	x1, l_.str.7@PAGE
Lloh31:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_3
LBB0_13:
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_dsa_switch_alloc
	str	x0, [x21]
	cbz	x0, LBB0_16
; %bb.14:
	str	x21, [x0, #8]
	ldr	w8, [x20]
	str	w8, [x0]
	bl	_dsa_register_switch
	mov	x22, x0
	cbz	w0, LBB0_17
; %bb.15:
	str	x22, [sp]
Lloh32:
	adrp	x1, l_.str.8@PAGE
Lloh33:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_17
LBB0_16:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_17:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_realtek_smi_mdio_regmap_config,4,2 ; @realtek_smi_mdio_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"regmap init failed: %d\n"

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

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.2:                               ; @.str.2
	.asciz	"failed to get RESET GPIO\n"

	.comm	_REALTEK_SMI_HW_STOP_DELAY,4,2  ; @REALTEK_SMI_HW_STOP_DELAY
	.comm	_REALTEK_SMI_HW_START_DELAY,4,2 ; @REALTEK_SMI_HW_START_DELAY
l_.str.3:                               ; @.str.3
	.asciz	"deasserted RESET\n"

l_.str.4:                               ; @.str.4
	.asciz	"mdc"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.5:                               ; @.str.5
	.asciz	"mdio"

l_.str.6:                               ; @.str.6
	.asciz	"realtek,disable-leds"

l_.str.7:                               ; @.str.7
	.asciz	"unable to detect switch\n"

l_.str.8:                               ; @.str.8
	.asciz	"unable to register switch ret = %d\n"

	.no_dead_strip	_realtek_smi_probe
.subsections_via_symbols
