	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_wait_deps
_emac_wait_deps:                        ## @emac_wait_deps
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EMAC_DEP_COUNT@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movq	%r14, %rax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leal	(,%r14,4), %eax
	leal	(%rax,%rax,2), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%rbx), %eax
	movq	_EMAC_DEP_MAL_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	%eax, (%r15,%rcx,4)
	movl	4(%rbx), %eax
	movq	_EMAC_DEP_ZMII_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	%eax, (%r15,%rcx,4)
	movl	8(%rbx), %eax
	movq	_EMAC_DEP_RGMII_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	%eax, (%r15,%rcx,4)
	movl	12(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_EMAC_DEP_TAH_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	%eax, (%r15,%rcx,4)
LBB0_2:
	movl	16(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_EMAC_DEP_MDIO_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	%eax, (%r15,%rcx,4)
LBB0_4:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_emac_boot_list@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.6:
	movq	_EMAC_DEP_PREV_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rax
	movl	$-1, (%r15,%rax,4)
LBB0_7:
	movq	_platform_bus_type@GOTPCREL(%rip), %r13
	movq	_emac_of_bus_notifier@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_bus_register_notifier
	movq	_emac_probe_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_emac_check_deps
	movq	_EMAC_PROBE_DEP_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_wait_event_timeout
	movq	%r13, %rdi
	movq	_emac_of_bus_notifier@GOTPCREL(%rip), %rsi
	callq	_bus_unregister_notifier
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_emac_check_deps
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%r13d, %r13d
	subl	(%rcx), %r13d
	testq	%rax, %rax
	cmovnel	%edx, %r13d
	cmpl	$0, (%r12)
	jle	LBB0_12
## %bb.8:
	movq	%r15, %rbx
	addq	$8, %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
	movslq	(%r12), %rax
	addq	$12, %rbx
	cmpq	%rax, %r14
	jge	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_of_node_put
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-4(%rbx), %edi
	callq	_of_dev_put
	jmp	LBB0_11
LBB0_12:
	testl	%r13d, %r13d
	jne	LBB0_14
## %bb.13:
	movq	_EMAC_DEP_MAL_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rax
	movl	4(%r15,%rax,4), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 48(%rcx)
	movq	_EMAC_DEP_ZMII_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rax
	movl	4(%r15,%rax,4), %eax
	movl	%eax, 44(%rcx)
	movq	_EMAC_DEP_RGMII_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rax
	movl	4(%r15,%rax,4), %eax
	movl	%eax, 40(%rcx)
	movq	_EMAC_DEP_TAH_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rax
	movl	4(%r15,%rax,4), %eax
	movl	%eax, 36(%rcx)
	movq	_EMAC_DEP_MDIO_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rax
	movl	4(%r15,%rax,4), %eax
	movl	%eax, 32(%rcx)
LBB0_14:
	movq	_EMAC_DEP_PREV_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rax
	movl	4(%r15,%rax,4), %edi
	callq	_of_dev_put
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_DEP_COUNT,4,2             ## @EMAC_DEP_COUNT
	.comm	_EMAC_DEP_MAL_IDX,8,3           ## @EMAC_DEP_MAL_IDX
	.comm	_EMAC_DEP_ZMII_IDX,8,3          ## @EMAC_DEP_ZMII_IDX
	.comm	_EMAC_DEP_RGMII_IDX,8,3         ## @EMAC_DEP_RGMII_IDX
	.comm	_EMAC_DEP_TAH_IDX,8,3           ## @EMAC_DEP_TAH_IDX
	.comm	_EMAC_DEP_MDIO_IDX,8,3          ## @EMAC_DEP_MDIO_IDX
	.comm	_emac_boot_list,8,3             ## @emac_boot_list
	.comm	_EMAC_DEP_PREV_IDX,8,3          ## @EMAC_DEP_PREV_IDX
	.comm	_platform_bus_type,4,2          ## @platform_bus_type
	.comm	_emac_of_bus_notifier,4,2       ## @emac_of_bus_notifier
	.comm	_emac_probe_wait,4,2            ## @emac_probe_wait
	.comm	_EMAC_PROBE_DEP_TIMEOUT,4,2     ## @EMAC_PROBE_DEP_TIMEOUT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_emac_wait_deps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_wait_deps
_emac_wait_deps:                        ; @emac_wait_deps
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	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, #-88]
Lloh3:
	adrp	x24, _EMAC_DEP_COUNT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _EMAC_DEP_COUNT@GOTPAGEOFF]
	ldr	w12, [x24]
	add	x8, x12, x12, lsl #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1ffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	add	w8, w12, w12, lsl #1
	lsl	w2, w8, #2
	mov	x0, x20
	mov	w1, #0
	bl	_memset
Lloh7:
	adrp	x25, _EMAC_DEP_MAL_IDX@GOTPAGE
Lloh8:
	ldr	x25, [x25, _EMAC_DEP_MAL_IDX@GOTPAGEOFF]
	ldr	x8, [x25]
	mov	w9, #12
	mul	x8, x8, x9
	ldp	w10, w11, [x19]
	str	w10, [x20, x8]
Lloh9:
	adrp	x26, _EMAC_DEP_ZMII_IDX@GOTPAGE
Lloh10:
	ldr	x26, [x26, _EMAC_DEP_ZMII_IDX@GOTPAGEOFF]
	ldr	x8, [x26]
	mul	x8, x8, x9
	str	w11, [x20, x8]
Lloh11:
	adrp	x27, _EMAC_DEP_RGMII_IDX@GOTPAGE
Lloh12:
	ldr	x27, [x27, _EMAC_DEP_RGMII_IDX@GOTPAGEOFF]
	ldr	x8, [x27]
	mul	x9, x8, x9
	ldp	w10, w8, [x19, #8]
	str	w10, [x20, x9]
Lloh13:
	adrp	x9, _EMAC_DEP_TAH_IDX@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EMAC_DEP_TAH_IDX@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x9, [x9]
	mov	w10, #12
	mul	x9, x9, x10
	str	w8, [x20, x9]
LBB0_2:
	ldr	w8, [x19, #16]
Lloh15:
	adrp	x9, _EMAC_DEP_MDIO_IDX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EMAC_DEP_MDIO_IDX@GOTPAGEOFF]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	x9, [x9]
	mov	w10, #12
	mul	x9, x9, x10
	str	w8, [x20, x9]
LBB0_4:
	ldr	x8, [x19, #24]
Lloh17:
	adrp	x28, _EMAC_DEP_PREV_IDX@GOTPAGE
Lloh18:
	ldr	x28, [x28, _EMAC_DEP_PREV_IDX@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.5:
Lloh19:
	adrp	x9, _emac_boot_list@GOTPAGE
Lloh20:
	ldr	x9, [x9, _emac_boot_list@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_7
; %bb.6:
	ldr	x8, [x28]
	mov	w9, #12
	mul	x8, x8, x9
	mov	w9, #-1
	str	w9, [x20, x8]
LBB0_7:
Lloh22:
	adrp	x21, _platform_bus_type@GOTPAGE
Lloh23:
	ldr	x21, [x21, _platform_bus_type@GOTPAGEOFF]
Lloh24:
	adrp	x22, _emac_of_bus_notifier@GOTPAGE
Lloh25:
	ldr	x22, [x22, _emac_of_bus_notifier@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	bl	_bus_register_notifier
Lloh26:
	adrp	x8, _emac_probe_wait@GOTPAGE
Lloh27:
	ldr	x8, [x8, _emac_probe_wait@GOTPAGEOFF]
Lloh28:
	ldr	w23, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_emac_check_deps
	mov	x1, x0
Lloh29:
	adrp	x8, _EMAC_PROBE_DEP_TIMEOUT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EMAC_PROBE_DEP_TIMEOUT@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_wait_event_timeout
	mov	x0, x21
	mov	x1, x22
	bl	_bus_unregister_notifier
	mov	x0, x19
	mov	x1, x20
	bl	_emac_check_deps
Lloh32:
	adrp	x8, _ENODEV@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w21, wzr, w8, ne
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x22, #0
	add	x23, x20, #8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x24]
	add	x23, x23, #12
	cmp	x22, x8
	b.ge	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_of_node_put
	cbz	w21, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldur	w0, [x23, #-4]
	bl	_of_dev_put
	b	LBB0_9
LBB0_12:
	cbnz	w21, LBB0_14
; %bb.13:
	ldr	x8, [x25]
	mov	w9, #12
	mul	x8, x8, x9
	add	x8, x20, x8
	ldr	w11, [x8, #4]
	ldr	x8, [x26]
	mul	x8, x8, x9
	add	x8, x20, x8
	ldr	w8, [x8, #4]
	ldr	x10, [x27]
	mul	x10, x10, x9
	add	x10, x20, x10
	ldr	w10, [x10, #4]
	stp	w8, w11, [x19, #44]
	str	w10, [x19, #40]
Lloh35:
	adrp	x8, _EMAC_DEP_TAH_IDX@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EMAC_DEP_TAH_IDX@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	mul	x8, x8, x9
	add	x8, x20, x8
	ldr	w8, [x8, #4]
Lloh38:
	adrp	x10, _EMAC_DEP_MDIO_IDX@GOTPAGE
Lloh39:
	ldr	x10, [x10, _EMAC_DEP_MDIO_IDX@GOTPAGEOFF]
Lloh40:
	ldr	x10, [x10]
	mul	x9, x10, x9
	add	x9, x20, x9
	ldr	w9, [x9, #4]
	stp	w9, w8, [x19, #32]
LBB0_14:
	ldr	x8, [x28]
	mov	w9, #12
	mul	x8, x8, x9
	add	x8, x20, x8
	ldr	w0, [x8, #4]
	bl	_of_dev_put
	ldur	x8, [x29, #-88]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x21
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_DEP_COUNT,4,2             ; @EMAC_DEP_COUNT
	.comm	_EMAC_DEP_MAL_IDX,8,3           ; @EMAC_DEP_MAL_IDX
	.comm	_EMAC_DEP_ZMII_IDX,8,3          ; @EMAC_DEP_ZMII_IDX
	.comm	_EMAC_DEP_RGMII_IDX,8,3         ; @EMAC_DEP_RGMII_IDX
	.comm	_EMAC_DEP_TAH_IDX,8,3           ; @EMAC_DEP_TAH_IDX
	.comm	_EMAC_DEP_MDIO_IDX,8,3          ; @EMAC_DEP_MDIO_IDX
	.comm	_emac_boot_list,8,3             ; @emac_boot_list
	.comm	_EMAC_DEP_PREV_IDX,8,3          ; @EMAC_DEP_PREV_IDX
	.comm	_platform_bus_type,4,2          ; @platform_bus_type
	.comm	_emac_of_bus_notifier,4,2       ; @emac_of_bus_notifier
	.comm	_emac_probe_wait,4,2            ; @emac_probe_wait
	.comm	_EMAC_PROBE_DEP_TIMEOUT,4,2     ; @EMAC_PROBE_DEP_TIMEOUT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_emac_wait_deps
.subsections_via_symbols
