	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan88xx_probe
_lan88xx_probe:                         ## @lan88xx_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	8(%rdi), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	$0, 16(%rax)
	movl	(%rbx), %ebx
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%ebx, %edi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_of_property_read_variable_u32_array
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_13
## %bb.4:
	je	LBB0_9
## %bb.5:
	movl	%r12d, %eax
	shlq	$2, %rax
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-64(%rbp,%rcx), %edx
	cmpl	$16, %edx
	jge	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	shll	%cl, %edx
	orl	%edx, %r13d
	addq	$4, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_6
LBB0_9:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jge	LBB0_12
## %bb.10:
	movl	%r12d, %ebx
	shll	$2, %ebx
	movq	_LAN78XX_FORCE_LED_OFF@GOTPCREL(%rip), %r15
	leaq	-64(%rbp), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	orl	%eax, %r13d
	incl	%r12d
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	addl	$4, %ebx
	cmpl	%eax, %r12d
	jl	LBB0_11
LBB0_12:
	movq	_LAN78XX_PHY_LED_MODE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_phy_write
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_13:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	jne	LBB0_14
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_14:
	movq	_LAN88XX_MMD3_CHIP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_phy_read_mmd
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	_LAN88XX_MMD3_CHIP_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_phy_read_mmd
	movq	%rax, (%rbx)
	movq	%rbx, (%r15)
	xorl	%eax, %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.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	"microchip,led-modes"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LAN78XX_FORCE_LED_OFF,4,2      ## @LAN78XX_FORCE_LED_OFF
	.comm	_LAN78XX_PHY_LED_MODE_SELECT,4,2 ## @LAN78XX_PHY_LED_MODE_SELECT
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.comm	_LAN88XX_MMD3_CHIP_ID,4,2       ## @LAN88XX_MMD3_CHIP_ID
	.comm	_LAN88XX_MMD3_CHIP_REV,4,2      ## @LAN88XX_MMD3_CHIP_REV
	.no_dead_strip	_lan88xx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan88xx_probe
_lan88xx_probe:                         ; @lan88xx_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x21, x0, #8
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	str	xzr, [x0, #16]
	ldr	w21, [x21]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x4, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x21
	mov	w3, #0
	bl	_of_property_read_variable_u32_array
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.2:
	cbz	w21, LBB0_10
; %bb.3:
	mov	x8, #0
	mov	w22, #0
	mov	w9, w21
	lsl	x9, x9, #2
	add	x10, sp, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x8]
	cmp	w11, #16
	b.ge	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w11, w11, w8
	orr	w22, w11, w22
	add	x8, x8, #4
	cmp	x9, x8
	b.ne	LBB0_4
	b	LBB0_11
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmn	w21, w8
	b.ne	LBB0_15
LBB0_8:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_10:
	mov	w22, #0
LBB0_11:
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.ge	LBB0_14
; %bb.12:
	lsl	w23, w21, #2
Lloh15:
	adrp	x24, _LAN78XX_FORCE_LED_OFF@GOTPAGE
Lloh16:
	ldr	x24, [x24, _LAN78XX_FORCE_LED_OFF@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	lsl	w8, w8, w23
	orr	w22, w8, w22
	add	w21, w21, #1
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	add	w23, w23, #4
	cmp	w21, w0
	b.lt	LBB0_13
LBB0_14:
Lloh17:
	adrp	x8, _LAN78XX_PHY_LED_MODE_SELECT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LAN78XX_PHY_LED_MODE_SELECT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_phy_write
LBB0_15:
Lloh20:
	adrp	x8, _LAN88XX_MMD3_CHIP_ID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LAN88XX_MMD3_CHIP_ID@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #3
	bl	_phy_read_mmd
	str	x0, [x20, #8]
Lloh23:
	adrp	x8, _LAN88XX_MMD3_CHIP_REV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LAN88XX_MMD3_CHIP_REV@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #3
	bl	_phy_read_mmd
	mov	x8, x0
	mov	w0, #0
	str	x8, [x20]
	str	x20, [x19]
LBB0_16:
	ldr	x8, [sp, #24]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.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	"microchip,led-modes"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LAN78XX_FORCE_LED_OFF,4,2      ; @LAN78XX_FORCE_LED_OFF
	.comm	_LAN78XX_PHY_LED_MODE_SELECT,4,2 ; @LAN78XX_PHY_LED_MODE_SELECT
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.comm	_LAN88XX_MMD3_CHIP_ID,4,2       ; @LAN88XX_MMD3_CHIP_ID
	.comm	_LAN88XX_MMD3_CHIP_REV,4,2      ; @LAN88XX_MMD3_CHIP_REV
	.no_dead_strip	_lan88xx_probe
.subsections_via_symbols
