	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_read_ext_mii_regs
_xgbe_read_ext_mii_regs:                ## @xgbe_read_ext_mii_regs
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_reinit_completion
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_xgbe_create_mdio_sca
	movq	_MAC_MDIOSCAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_XGMAC_IOWRITE
	movq	_MAC_MDIOSCCDR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movl	$3, %ecx
	callq	_XGMAC_SET_BITS
	movl	(%rbx), %esi
	movq	_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
	movl	(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_XGMAC_IOWRITE
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %esi
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XGMAC_IOREAD_BITS              ## TAILCALL
LBB0_1:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_MDIOSCAR,4,2               ## @MAC_MDIOSCAR
	.comm	_MAC_MDIOSCCDR,4,2              ## @MAC_MDIOSCCDR
	.comm	_CMD,4,2                        ## @CMD
	.comm	_BUSY,4,2                       ## @BUSY
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mdio read operation timed out\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_DATA,4,2                       ## @DATA
	.no_dead_strip	_xgbe_read_ext_mii_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_read_ext_mii_regs
_xgbe_read_ext_mii_regs:                ; @xgbe_read_ext_mii_regs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x22, x0, #4
	mov	x0, x22
	bl	_reinit_completion
	mov	x0, x21
	mov	x1, x20
	bl	_xgbe_create_mdio_sca
	mov	x2, x0
Lloh0:
	adrp	x8, _MAC_MDIOSCAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_MDIOSCAR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_XGMAC_IOWRITE
Lloh3:
	adrp	x20, _MAC_MDIOSCCDR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MAC_MDIOSCCDR@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _CMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w0, #0
	mov	w3, #3
	bl	_XGMAC_SET_BITS
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _BUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BUSY@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w0, #0
	mov	w3, #1
	bl	_XGMAC_SET_BITS
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_XGMAC_IOWRITE
Lloh11:
	adrp	x8, _HZ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x20]
Lloh14:
	adrp	x8, _DATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_XGMAC_IOREAD_BITS
LBB0_2:
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh19:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_MDIOSCAR,4,2               ; @MAC_MDIOSCAR
	.comm	_MAC_MDIOSCCDR,4,2              ; @MAC_MDIOSCCDR
	.comm	_CMD,4,2                        ; @CMD
	.comm	_BUSY,4,2                       ; @BUSY
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mdio read operation timed out\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_DATA,4,2                       ; @DATA
	.no_dead_strip	_xgbe_read_ext_mii_regs
.subsections_via_symbols
