	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kszphy_probe
_kszphy_probe:                          ## @kszphy_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
	movq	8(%rdi), %r15
	movq	24(%rdi), %rax
	movq	(%rax), %r13
	leaq	8(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, 16(%r14)
	movq	%r13, 16(%rax)
	cmpq	$0, 8(%r13)
	je	LBB0_7
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	(%rbx), %edx
	cmpl	$4, %edx
	jl	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_phydev_err
LBB0_7:
	movl	$-1, (%rbx)
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	%r12, %rdi
	callq	_clk_get_rate
	movq	%rax, %r12
	movl	(%r13), %eax
	movl	%eax, 4(%rbx)
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	leaq	-24500001(%r12), %rcx
	cmpq	$999999, %rcx                   ## imm = 0xF423F
	jb	LBB0_12
## %bb.10:
	leaq	-49500001(%r12), %rcx
	cmpq	$999998, %rcx                   ## imm = 0xF423E
	ja	LBB0_16
## %bb.11:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, %eax
LBB0_12:
	movl	%eax, 8(%rbx)
LBB0_13:
	movq	_MICREL_PHY_50MHZ_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%r14)
	je	LBB0_15
## %bb.14:
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, 4(%rbx)
	jmp	LBB0_15
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_phydev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"micrel,led-mode"

L_.str.1:                               ## @.str.1
	.asciz	"invalid led mode: 0x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"rmii-ref"

L_.str.3:                               ## @.str.3
	.asciz	"micrel,rmii-reference-clock-select-25-mhz"

L_.str.4:                               ## @.str.4
	.asciz	"Clock rate out of range: %ld\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MICREL_PHY_50MHZ_CLK,4,2       ## @MICREL_PHY_50MHZ_CLK
	.no_dead_strip	_kszphy_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kszphy_probe
_kszphy_probe:                          ; @kszphy_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x0
	ldr	x21, [x22, #8]!
	ldr	x8, [x22, #16]
	ldr	x23, [x8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.1:
	mov	x20, x0
	str	x0, [x19, #16]
	str	x23, [x0, #16]
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_5
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_of_property_read_u32
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w2, [x20]
	cmp	w2, #4
	b.lt	LBB0_6
; %bb.4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_phydev_err
LBB0_5:
	mov	w8, #-1
	str	w8, [x20]
LBB0_6:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_devm_clk_get
	mov	x22, x0
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_11
; %bb.7:
	mov	w24, #16959
	movk	w24, #15, lsl #16
	mov	x0, x22
	bl	_clk_get_rate
	mov	x22, x0
	ldr	w8, [x23]
	str	w8, [x20, #4]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	mov	x8, #-55073
	movk	x8, #65162, lsl #16
	add	x8, x22, x8
	cmp	x8, x24
	b.lo	LBB0_10
; %bb.8:
	mov	x8, #-20321
	movk	x8, #64780, lsl #16
	add	x8, x22, x8
	cmp	x8, x24
	b.hs	LBB0_17
; %bb.9:
	cmp	w0, #0
	cset	w0, eq
LBB0_10:
	str	w0, [x20, #8]
LBB0_11:
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _MICREL_PHY_50MHZ_CLK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MICREL_PHY_50MHZ_CLK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.12:
	mov	w0, #0
	movi.2s	v0, #1
	stur	d0, [x20, #4]
	b	LBB0_16
LBB0_13:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_phydev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"micrel,led-mode"

l_.str.1:                               ; @.str.1
	.asciz	"invalid led mode: 0x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"rmii-ref"

l_.str.3:                               ; @.str.3
	.asciz	"micrel,rmii-reference-clock-select-25-mhz"

l_.str.4:                               ; @.str.4
	.asciz	"Clock rate out of range: %ld\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MICREL_PHY_50MHZ_CLK,4,2       ; @MICREL_PHY_50MHZ_CLK
	.no_dead_strip	_kszphy_probe
.subsections_via_symbols
