	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ethoc_mdio_poll
_ethoc_mdio_poll:                       ## @ethoc_mdio_poll
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rbx), %r14
	movq	(%r14), %rax
	cmpq	%rax, (%r15)
	jne	LBB0_3
## %bb.1:
	movq	8(%r14), %rax
	cmpq	%rax, 8(%r15)
	jne	LBB0_4
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rax, (%r15)
	movq	8(%r14), %rax
	cmpq	%rax, 8(%r15)
	je	LBB0_5
LBB0_4:
	movq	%r15, %rcx
	addq	$8, %rcx
	movq	%rax, (%rcx)
LBB0_5:
	movq	_MODER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_ethoc_read
	movq	8(%r14), %rcx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rsi
	movq	_MODER_FULLD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %edi
	orl	%eax, %edi
	notl	%edx
	andl	%eax, %edx
	cmpq	(%rsi), %rcx
	cmovel	%edi, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_ethoc_write
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_print_status               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MODER,4,2                      ## @MODER
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_MODER_FULLD,4,2                ## @MODER_FULLD
	.no_dead_strip	_ethoc_mdio_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ethoc_mdio_poll
_ethoc_mdio_poll:                       ; @ethoc_mdio_poll
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x19]
	ldr	x9, [x0]
	ldr	x8, [x19]
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x8, x20
	ldr	x10, [x8, #8]!
	ldr	x9, [x19, #8]
	cmp	x10, x9
	b.ne	LBB0_4
; %bb.2:
	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
LBB0_3:
	str	x8, [x20]
	mov	x8, x20
	ldr	x10, [x8, #8]!
	ldr	x9, [x19, #8]
	cmp	x10, x9
	b.eq	LBB0_5
LBB0_4:
	str	x9, [x8]
LBB0_5:
Lloh0:
	adrp	x21, _MODER@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MODER@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_ethoc_read
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _MODER_FULLD@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MODER_FULLD@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w11, w10, w0
	bic	w10, w0, w10
	cmp	x8, x9
	csel	w2, w11, w10, eq
	ldr	w1, [x21]
	mov	x0, x20
	bl	_ethoc_write
	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	_phy_print_status
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MODER,4,2                      ; @MODER
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_MODER_FULLD,4,2                ; @MODER_FULLD
	.no_dead_strip	_ethoc_mdio_poll
.subsections_via_symbols
