	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___rtl8366_mdio_read_reg        ## -- Begin function __rtl8366_mdio_read_reg
	.p2align	4, 0x90
___rtl8366_mdio_read_reg:               ## @__rtl8366_mdio_read_reg
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_MDC_REALTEK_PHY_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rdi), %rbx
	xorl	%eax, %eax
	callq	_in_interrupt
	movl	%eax, %edi
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_MDC_MDIO_START_REG@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_MDC_MDIO_START_OP@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	*16(%rbx)
	movq	_MDC_MDIO_CTRL0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDC_MDIO_ADDR_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	*16(%rbx)
	movl	(%r14), %edx
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	*16(%rbx)
	movq	_MDC_MDIO_ADDRESS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	*16(%rbx)
	movl	(%r14), %edx
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	*16(%rbx)
	movq	_MDC_MDIO_CTRL1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDC_MDIO_READ_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	*16(%rbx)
	movq	(%r12), %rdi
	movl	(%r14), %edx
	movl	(%r13), %ecx
	movl	%r15d, %esi
	callq	*16(%rbx)
	movq	_MDC_MDIO_DATA_READ_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	*8(%rbx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDC_REALTEK_PHY_ADDR,4,2       ## @MDC_REALTEK_PHY_ADDR
	.comm	_MDC_MDIO_START_REG,4,2         ## @MDC_MDIO_START_REG
	.comm	_MDC_MDIO_START_OP,4,2          ## @MDC_MDIO_START_OP
	.comm	_MDC_MDIO_CTRL0_REG,4,2         ## @MDC_MDIO_CTRL0_REG
	.comm	_MDC_MDIO_ADDR_OP,4,2           ## @MDC_MDIO_ADDR_OP
	.comm	_MDC_MDIO_ADDRESS_REG,4,2       ## @MDC_MDIO_ADDRESS_REG
	.comm	_MDC_MDIO_CTRL1_REG,4,2         ## @MDC_MDIO_CTRL1_REG
	.comm	_MDC_MDIO_READ_OP,4,2           ## @MDC_MDIO_READ_OP
	.comm	_MDC_MDIO_DATA_READ_REG,4,2     ## @MDC_MDIO_DATA_READ_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___rtl8366_mdio_read_reg        ; -- Begin function __rtl8366_mdio_read_reg
	.p2align	2
___rtl8366_mdio_read_reg:               ; @__rtl8366_mdio_read_reg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _MDC_REALTEK_PHY_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDC_REALTEK_PHY_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x20, [x0]
	bl	_in_interrupt
	bl	_BUG_ON
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x20, #16]
Lloh3:
	adrp	x24, _MDC_MDIO_START_REG@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MDC_MDIO_START_REG@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh5:
	adrp	x25, _MDC_MDIO_START_OP@GOTPAGE
Lloh6:
	ldr	x25, [x25, _MDC_MDIO_START_OP@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	ldr	x8, [x20, #16]
Lloh7:
	adrp	x9, _MDC_MDIO_CTRL0_REG@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MDC_MDIO_CTRL0_REG@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x9]
Lloh10:
	adrp	x9, _MDC_MDIO_ADDR_OP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MDC_MDIO_ADDR_OP@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x9]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	ldr	x8, [x20, #16]
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	ldr	x8, [x20, #16]
Lloh13:
	adrp	x9, _MDC_MDIO_ADDRESS_REG@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MDC_MDIO_ADDRESS_REG@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x9]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x23
	blr	x8
	ldr	x8, [x20, #16]
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	ldr	x8, [x20, #16]
Lloh16:
	adrp	x9, _MDC_MDIO_CTRL1_REG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MDC_MDIO_CTRL1_REG@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x9]
Lloh19:
	adrp	x9, _MDC_MDIO_READ_OP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MDC_MDIO_READ_OP@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x9]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	ldr	x8, [x20, #16]
	ldr	x0, [x22]
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x1, x21
	blr	x8
	ldr	x8, [x20, #8]
Lloh22:
	adrp	x9, _MDC_MDIO_DATA_READ_REG@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MDC_MDIO_DATA_READ_REG@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x9]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	str	w0, [x19]
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MDC_REALTEK_PHY_ADDR,4,2       ; @MDC_REALTEK_PHY_ADDR
	.comm	_MDC_MDIO_START_REG,4,2         ; @MDC_MDIO_START_REG
	.comm	_MDC_MDIO_START_OP,4,2          ; @MDC_MDIO_START_OP
	.comm	_MDC_MDIO_CTRL0_REG,4,2         ; @MDC_MDIO_CTRL0_REG
	.comm	_MDC_MDIO_ADDR_OP,4,2           ; @MDC_MDIO_ADDR_OP
	.comm	_MDC_MDIO_ADDRESS_REG,4,2       ; @MDC_MDIO_ADDRESS_REG
	.comm	_MDC_MDIO_CTRL1_REG,4,2         ; @MDC_MDIO_CTRL1_REG
	.comm	_MDC_MDIO_READ_OP,4,2           ; @MDC_MDIO_READ_OP
	.comm	_MDC_MDIO_DATA_READ_REG,4,2     ; @MDC_MDIO_DATA_READ_REG
.subsections_via_symbols
