	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_led_triggers_register      ## -- Begin function phy_led_triggers_register
	.p2align	4, 0x90
_phy_led_triggers_register:             ## @phy_led_triggers_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-256(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_phy_supported_speeds
	movl	%eax, (%r13)
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_21
## %bb.1:
	leaq	16(%r13), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_devm_kzalloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	4(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_phy_led_trigger_format_name
	movq	8(%r13), %rdi
	movl	4(%rdi), %eax
	movl	%eax, (%rdi)
	callq	_led_trigger_register
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movl	(%r13), %esi
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r14, -264(%rbp)                ## 8-byte Spill
	cmpl	$0, (%r13)
	jle	LBB0_20
## %bb.6:
	movl	-256(%rbp), %edx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_phy_led_trigger_register
	testl	%eax, %eax
	je	LBB0_17
## %bb.7:
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_17:
	movl	$1, %ebx
	movl	$8, %r14d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	24(%r13), %rsi
	addq	%r14, %rsi
	movl	-256(%rbp,%rbx,4), %edx
	movq	%r13, %rdi
	callq	_phy_led_trigger_register
	incq	%rbx
	addq	$8, %r14
	testl	%eax, %eax
	je	LBB0_18
## %bb.9:
	movl	%eax, %r12d
	decq	%rbx
LBB0_10:
	movq	-264(%rbp), %r14                ## 8-byte Reload
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.11:
	leaq	-8(,%rbx,8), %rbx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rdi
	addq	%rbx, %rdi
	callq	_phy_led_trigger_unregister
	addq	$-8, %rbx
	cmpq	$-8, %rbx
	jne	LBB0_12
LBB0_13:
	movq	24(%r13), %rsi
	movq	%r14, %rdi
	callq	_devm_kfree
LBB0_14:
	movq	8(%r13), %rdi
	callq	_phy_led_trigger_unregister
LBB0_15:
	movq	8(%r13), %rsi
	movq	%r14, %rdi
	callq	_devm_kfree
	movq	$0, 8(%r13)
LBB0_16:
	movl	$0, (%r13)
	movl	%r12d, %r15d
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r15d, %eax
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	$0, 32(%r13)
	movq	%r13, %rdi
	callq	_phy_led_trigger_change_speed
	jmp	LBB0_21
LBB0_23:
	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	"link"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_led_triggers_register      ; -- Begin function phy_led_triggers_register
	.p2align	2
_phy_led_triggers_register:             ; @phy_led_triggers_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	x0, sp
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x1, sp
	mov	x0, x19
	bl	_phy_supported_speeds
	str	w0, [x19]
	cbz	w0, LBB0_19
; %bb.1:
	add	x20, x19, #16
Lloh3:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #8
	bl	_devm_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w1, [x0, #4]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	bl	_phy_led_trigger_format_name
	ldr	x0, [x19, #8]
	ldr	w8, [x0, #4]
	str	w8, [x0]
	bl	_led_trigger_register
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.3:
	ldr	w1, [x19]
	ldr	w3, [x22]
	mov	x0, x20
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.5:
	mov	x1, x0
	ldr	w2, [sp]
	mov	x0, x19
	bl	_phy_led_trigger_register
	cbz	w0, LBB0_9
; %bb.6:
	mov	x21, x0
	mov	x8, #0
	cbnz	w8, LBB0_13
	b	LBB0_15
LBB0_7:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	str	wzr, [x19]
	b	LBB0_20
LBB0_8:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_9:
	mov	w22, #1
	mov	w23, #8
	mov	x24, sp
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.ge	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #24]
	add	x1, x8, x23
	ldr	w2, [x24, x22, lsl #2]
	mov	x0, x19
	bl	_phy_led_trigger_register
	add	x22, x22, #1
	add	x23, x23, #8
	cbz	w0, LBB0_10
; %bb.12:
	mov	x21, x0
	sub	x8, x22, #1
	cbz	w8, LBB0_15
LBB0_13:
	lsl	x8, x8, #3
	sub	x22, x8, #8
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x22
	bl	_phy_led_trigger_unregister
	sub	x22, x22, #8
	cmn	x22, #8
	b.ne	LBB0_14
LBB0_15:
	ldr	x1, [x19, #24]
	mov	x0, x20
	bl	_devm_kfree
LBB0_16:
	ldr	x0, [x19, #8]
	bl	_phy_led_trigger_unregister
LBB0_17:
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_devm_kfree
	str	xzr, [x19, #8]
	str	wzr, [x19]
	b	LBB0_20
LBB0_18:
	str	xzr, [x19, #32]
	mov	x0, x19
	bl	_phy_led_trigger_change_speed
LBB0_19:
	mov	w21, #0
LBB0_20:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	mov	x0, x21
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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	"link"

.subsections_via_symbols
