	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_mii_wait
_bcmgenet_mii_wait:                     ## @bcmgenet_mii_wait
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %ebx
	movq	_UMAC_MDIO_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bcmgenet_umac_readl
	movq	_MDIO_START_BUSY@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	andl	(%rcx), %eax
	sete	%sil
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1374389535, %rax, %rdx         ## imm = 0x51EB851F
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$37, %rdx
	addl	%eax, %edx
	movl	%ebx, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_wait_event_timeout
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UMAC_MDIO_CMD,4,2              ## @UMAC_MDIO_CMD
	.comm	_MDIO_START_BUSY,4,2            ## @MDIO_START_BUSY
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_bcmgenet_mii_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_mii_wait
_bcmgenet_mii_wait:                     ; @bcmgenet_mii_wait
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w19, [x0]
Lloh0:
	adrp	x8, _UMAC_MDIO_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UMAC_MDIO_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bcmgenet_umac_readl
Lloh3:
	adrp	x8, _MDIO_START_BUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_START_BUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w1, eq
Lloh6:
	adrp	x8, _HZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w2, w8, w9
	mov	x0, x19
	bl	_wait_event_timeout
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UMAC_MDIO_CMD,4,2              ; @UMAC_MDIO_CMD
	.comm	_MDIO_START_BUSY,4,2            ; @MDIO_START_BUSY
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_bcmgenet_mii_wait
.subsections_via_symbols
