	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b53_mdio_op
_b53_mdio_op:                           ## @b53_mdio_op
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	8(%rdi), %r15
	cmpl	%esi, (%rdi)
	je	LBB0_3
## %bb.1:
	movl	%esi, %r13d
	movq	%rdi, %r14
	movl	%esi, %ecx
	shll	$8, %ecx
	movq	_REG_MII_PAGE_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_B53_PSEUDO_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_MII_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mdiobus_write
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	movl	%r13d, (%r14)
LBB0_3:
	shll	$8, %ebx
	orl	%r12d, %ebx
	movq	_B53_PSEUDO_PHY@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_REG_MII_ADDR@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %r13
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_mdiobus_write
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movl	(%r14), %esi
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_mdiobus_read
	movq	_REG_MII_ADDR_WRITE@GOTPCREL(%rip), %r15
	movq	_REG_MII_ADDR_READ@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	orl	(%r15), %ecx
	movl	$0, %edi
	testl	%eax, %ecx
	je	LBB0_10
## %bb.5:
	movl	$10, %edi
	movl	$100, %esi
	callq	_usleep_range
	movl	(%r14), %esi
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_mdiobus_read
	movl	(%rbx), %ecx
	orl	(%r15), %ecx
	movl	$0, %edi
	testl	%eax, %ecx
	je	LBB0_10
## %bb.6:
	movl	$10, %edi
	movl	$100, %esi
	callq	_usleep_range
	movl	(%r14), %esi
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_mdiobus_read
	movl	(%rbx), %ecx
	orl	(%r15), %ecx
	movl	$0, %edi
	testl	%eax, %ecx
	je	LBB0_10
## %bb.7:
	movl	$10, %edi
	movl	$100, %esi
	callq	_usleep_range
	movl	(%r14), %esi
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_mdiobus_read
	movl	(%rbx), %ecx
	orl	(%r15), %ecx
	movl	$0, %edi
	testl	%eax, %ecx
	je	LBB0_10
## %bb.8:
	movl	$10, %edi
	movl	$100, %esi
	callq	_usleep_range
	movl	(%r14), %esi
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_mdiobus_read
	movl	(%rbx), %ecx
	orl	(%r15), %ecx
	movl	$0, %edi
	testl	%eax, %ecx
	je	LBB0_10
## %bb.9:
	movl	$10, %edi
	movl	$100, %esi
	callq	_usleep_range
	movl	$1, %edi
LBB0_10:
	callq	_WARN_ON
	testq	%rax, %rax
	movl	$0, %eax
	je	LBB0_12
## %bb.11:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MII_PAGE_ENABLE,4,2        ## @REG_MII_PAGE_ENABLE
	.comm	_B53_PSEUDO_PHY,4,2             ## @B53_PSEUDO_PHY
	.comm	_REG_MII_PAGE,4,2               ## @REG_MII_PAGE
	.comm	_REG_MII_ADDR,4,2               ## @REG_MII_ADDR
	.comm	_REG_MII_ADDR_WRITE,4,2         ## @REG_MII_ADDR_WRITE
	.comm	_REG_MII_ADDR_READ,4,2          ## @REG_MII_ADDR_READ
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_b53_mdio_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b53_mdio_op
_b53_mdio_op:                           ; @b53_mdio_op
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x21, x2
	ldr	x19, [x0, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x24, _B53_PSEUDO_PHY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _B53_PSEUDO_PHY@GOTPAGEOFF]
	cmp	w8, w1
	b.eq	LBB0_3
; %bb.1:
	mov	x22, x1
	mov	x23, x0
Lloh2:
	adrp	x8, _REG_MII_PAGE_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_MII_PAGE_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w3, w8, w1, lsl #8
	ldr	w1, [x24]
Lloh5:
	adrp	x8, _REG_MII_PAGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_MII_PAGE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mdiobus_write
	cbnz	w0, LBB0_13
; %bb.2:
	str	w22, [x23]
LBB0_3:
	orr	w3, w20, w21, lsl #8
	ldr	w1, [x24]
Lloh8:
	adrp	x20, _REG_MII_ADDR@GOTPAGE
Lloh9:
	ldr	x20, [x20, _REG_MII_ADDR@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_mdiobus_write
	cbnz	w0, LBB0_13
; %bb.4:
	ldr	w1, [x24]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_mdiobus_read
Lloh10:
	adrp	x21, _REG_MII_ADDR_WRITE@GOTPAGE
Lloh11:
	ldr	x21, [x21, _REG_MII_ADDR_WRITE@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh12:
	adrp	x22, _REG_MII_ADDR_READ@GOTPAGE
Lloh13:
	ldr	x22, [x22, _REG_MII_ADDR_READ@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_10
; %bb.5:
	mov	w0, #10
	mov	w1, #100
	bl	_usleep_range
	ldr	w1, [x24]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_mdiobus_read
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_10
; %bb.6:
	mov	w0, #10
	mov	w1, #100
	bl	_usleep_range
	ldr	w1, [x24]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_mdiobus_read
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_10
; %bb.7:
	mov	w0, #10
	mov	w1, #100
	bl	_usleep_range
	ldr	w1, [x24]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_mdiobus_read
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_10
; %bb.8:
	mov	w0, #10
	mov	w1, #100
	bl	_usleep_range
	ldr	w1, [x24]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_mdiobus_read
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_10
; %bb.9:
	mov	w0, #10
	mov	w1, #100
	bl	_usleep_range
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	bl	_WARN_ON
	cbz	x0, LBB0_13
; %bb.12:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MII_PAGE_ENABLE,4,2        ; @REG_MII_PAGE_ENABLE
	.comm	_B53_PSEUDO_PHY,4,2             ; @B53_PSEUDO_PHY
	.comm	_REG_MII_PAGE,4,2               ; @REG_MII_PAGE
	.comm	_REG_MII_ADDR,4,2               ; @REG_MII_ADDR
	.comm	_REG_MII_ADDR_WRITE,4,2         ; @REG_MII_ADDR_WRITE
	.comm	_REG_MII_ADDR_READ,4,2          ; @REG_MII_ADDR_READ
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_b53_mdio_op
.subsections_via_symbols
