	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_asix_mdio_read_nopm            ## -- Begin function asix_mdio_read_nopm
	.p2align	4, 0x90
_asix_mdio_read_nopm:                   ## @asix_mdio_read_nopm
	.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
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%rax, %rdi
	addq	$4, %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	xorl	%r12d, %r12d
	movq	_ENODEV@GOTPCREL(%rip), %r15
	movq	_AX_HOST_EN@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_asix_set_sw_mii
	movl	%eax, %ebx
	movl	(%r15), %eax
	movl	%ebx, %ecx
	addl	%eax, %ecx
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ebx, %ecx
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1100, %esi                     ## imm = 0x44C
	callq	_usleep_range
	movq	_AX_CMD_STATMNGSTS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, (%rsp)
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	leaq	-56(%rbp), %r9
	callq	_asix_read_cmd
	movl	%eax, %ebx
	movl	(%r14), %eax
	testl	%eax, -56(%rbp)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$30, %r12d
	jae	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r12d
	movl	(%r15), %eax
	movl	%ebx, %ecx
	addl	%eax, %ecx
	jne	LBB0_1
LBB0_7:
	addl	%ebx, %eax
	jne	LBB0_8
	jmp	LBB0_9
LBB0_5:
	movl	(%r15), %eax
	addl	%ebx, %eax
	je	LBB0_9
LBB0_8:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_10
LBB0_9:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	jmp	LBB0_11
LBB0_10:
	movq	_AX_CMD_READ_MII_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, (%rsp)
	leaq	-44(%rbp), %r9
	movq	%r13, %rdi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	movl	$2, %r8d
	callq	_asix_read_cmd
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_asix_set_hw_mii
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	(%r13), %ebx
	movl	-44(%rbp), %edi
	callq	_le16_to_cpu
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_netdev_dbg
	movl	-44(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_AX_CMD_STATMNGSTS_REG,4,2      ## @AX_CMD_STATMNGSTS_REG
	.comm	_AX_HOST_EN,4,2                 ## @AX_HOST_EN
	.comm	_AX_CMD_READ_MII_REG,4,2        ## @AX_CMD_READ_MII_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"asix_mdio_read_nopm() phy_id=0x%02x, loc=0x%02x, returns=0x%04x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_asix_mdio_read_nopm            ; -- Begin function asix_mdio_read_nopm
	.p2align	2
_asix_mdio_read_nopm:                   ; @asix_mdio_read_nopm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_netdev_priv
	mov	x21, x0
	add	x22, x0, #4
	mov	x0, x22
	bl	_mutex_lock
	mov	w25, #0
Lloh0:
	adrp	x26, _ENODEV@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ENODEV@GOTPAGEOFF]
Lloh2:
	adrp	x24, _ETIMEDOUT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ETIMEDOUT@GOTPAGEOFF]
Lloh4:
	adrp	x27, _AX_CMD_STATMNGSTS_REG@GOTPAGE
Lloh5:
	ldr	x27, [x27, _AX_CMD_STATMNGSTS_REG@GOTPAGEOFF]
Lloh6:
	adrp	x28, _AX_HOST_EN@GOTPAGE
Lloh7:
	ldr	x28, [x28, _AX_HOST_EN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #1
	bl	_asix_set_sw_mii
	mov	x23, x0
	ldr	w8, [x26]
	cmn	w0, w8
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x24]
	cmn	w23, w9
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1000
	mov	w1, #1100
	bl	_usleep_range
	ldr	w1, [x27]
	add	x5, sp, #8
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	mov	w4, #1
	mov	w6, #1
	bl	_asix_read_cmd
	mov	x23, x0
	ldr	w8, [sp, #8]
	ldr	w9, [x28]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w25, #30, #2, eq
	b.hs	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w25, w25, #1
	ldr	w8, [x26]
	cmn	w23, w8
	b.ne	LBB0_1
LBB0_5:
	cmn	w23, w8
	b.ne	LBB0_7
	b	LBB0_8
LBB0_6:
	ldr	w8, [x26]
	cmn	w23, w8
	b.eq	LBB0_8
LBB0_7:
	ldr	w8, [x24]
	cmn	w23, w8
	b.ne	LBB0_9
LBB0_8:
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, _AX_CMD_READ_MII_REG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AX_CMD_READ_MII_REG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x5, sp, #12
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	mov	w4, #2
	mov	w6, #1
	bl	_asix_read_cmd
	mov	x0, x21
	mov	w1, #1
	bl	_asix_set_hw_mii
	mov	x0, x22
	bl	_mutex_unlock
	ldr	w21, [x21]
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	mov	x4, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_netdev_dbg
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	mov	x23, x0
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_AX_CMD_STATMNGSTS_REG,4,2      ; @AX_CMD_STATMNGSTS_REG
	.comm	_AX_HOST_EN,4,2                 ; @AX_HOST_EN
	.comm	_AX_CMD_READ_MII_REG,4,2        ; @AX_CMD_READ_MII_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"asix_mdio_read_nopm() phy_id=0x%02x, loc=0x%02x, returns=0x%04x\n"

.subsections_via_symbols
