	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kszphy_config_reset
_kszphy_config_reset:                   ## @kszphy_config_reset
	.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, %r15
	movq	(%rdi), %rbx
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.1:
	movl	16(%rbx), %esi
	movq	%r15, %rdi
	callq	_kszphy_rmii_clk_sel
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_phydev_err
	jmp	LBB0_5
LBB0_3:
	movq	(%rbx), %rdx
	xorl	%r14d, %r14d
	testq	%rdx, %rdx
	js	LBB0_5
## %bb.4:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_kszphy_setup_led
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set rmii reference clock\n"

	.no_dead_strip	_kszphy_config_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kszphy_config_reset
_kszphy_config_reset:                   ; @kszphy_config_reset
	.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	x19, x0
	ldr	x21, [x0]
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_kszphy_rmii_clk_sel
	cbz	w0, LBB0_3
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_phydev_err
	b	LBB0_6
LBB0_3:
	ldr	x2, [x21]
	tbnz	x2, #63, LBB0_5
; %bb.4:
	ldr	x8, [x21, #8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kszphy_setup_led
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set rmii reference clock\n"

	.no_dead_strip	_kszphy_config_reset
.subsections_via_symbols
