	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ksz_switch_register            ## -- Begin function ksz_switch_register
	.p2align	4, 0x90
_ksz_switch_register:                   ## @ksz_switch_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	64(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
LBB0_2:
	movq	24(%rbx), %rdi
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_devm_gpiod_get_optional
	movq	%rax, 56(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	56(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	movl	$1, %esi
	callq	_gpiod_set_value_cansleep
	movl	$10, %edi
	callq	_mdelay
	movq	56(%rbx), %rdi
	xorl	%esi, %esi
	callq	_gpiod_set_value_cansleep
LBB0_5:
	leaq	48(%rbx), %rdi
	callq	_mutex_init
	leaq	44(%rbx), %rdi
	callq	_mutex_init
	leaq	40(%rbx), %rdi
	callq	_mutex_init
	leaq	36(%rbx), %rdi
	callq	_mutex_init
	movq	%r14, 8(%rbx)
	movq	%rbx, %rdi
	callq	*16(%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_7:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movq	24(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.9:
	callq	_of_get_phy_mode
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:
	movl	%eax, (%rbx)
LBB0_11:
	movq	24(%rbx), %rax
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_of_property_read_bool
	movl	%eax, 32(%rbx)
LBB0_12:
	movl	16(%rbx), %edi
	callq	_dsa_register_switch
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %r14d
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	jmp	LBB0_15
LBB0_13:
	xorl	%r14d, %r14d
LBB0_15:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"microchip,synclko-125"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ksz_switch_register            ; -- Begin function ksz_switch_register
	.p2align	2
_ksz_switch_register:                   ; @ksz_switch_register
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #64]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x8]
	str	w8, [x19, #72]
LBB0_2:
	ldr	x0, [x19, #24]
Lloh0:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_gpiod_get_optional
	str	x0, [x19, #56]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #56]
	cbz	x8, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
	cbz	x0, LBB0_6
; %bb.5:
	mov	w1, #1
	bl	_gpiod_set_value_cansleep
	mov	w0, #10
	bl	_mdelay
	ldr	x0, [x19, #56]
	mov	w1, #0
	bl	_gpiod_set_value_cansleep
LBB0_6:
	add	x0, x19, #48
	bl	_mutex_init
	add	x0, x19, #44
	bl	_mutex_init
	add	x0, x19, #40
	bl	_mutex_init
	add	x0, x19, #36
	bl	_mutex_init
	str	x20, [x19, #8]
	ldr	x8, [x20, #16]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_8
; %bb.7:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_15
; %bb.9:
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	cbz	x0, LBB0_13
; %bb.10:
	bl	_of_get_phy_mode
	tbnz	w0, #31, LBB0_12
; %bb.11:
	str	w0, [x19]
LBB0_12:
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_property_read_bool
	str	w0, [x19, #32]
LBB0_13:
	ldr	w0, [x19, #16]
	bl	_dsa_register_switch
	mov	x20, x0
	cbz	w0, LBB0_15
; %bb.14:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"microchip,synclko-125"

.subsections_via_symbols
