	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TLan_MiiReadReg
_TLan_MiiReadReg:                       ## @TLan_MiiReadReg
	.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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_TLAN_NET_SIO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_TLAN_DIO_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	(%r15), %esi
	callq	_outw
	movq	_TLAN_DIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	addl	(%r15), %r13d
	addl	(%rbx), %r13d
	xorl	%eax, %eax
	callq	_in_irq
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
LBB0_2:
	movl	(%r15), %edi
	callq	_TLan_MiiSync
	movq	_TLAN_NET_SIO_MINTEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_TLan_GetBit
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
LBB0_4:
	movl	(%r15), %edi
	movl	$1, %esi
	movl	$2, %edx
	callq	_TLan_MiiSendData
	movl	(%r15), %edi
	movl	$2, %esi
	movl	$2, %edx
	callq	_TLan_MiiSendData
	movl	(%r15), %edi
	movl	%r12d, %esi
	movl	$5, %edx
	callq	_TLan_MiiSendData
	movl	(%r15), %edi
	movl	%r14d, %esi
	movl	$5, %edx
	callq	_TLan_MiiSendData
	movq	_TLAN_NET_SIO_MTXEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movq	_TLAN_NET_SIO_MCLK@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movq	_TLAN_NET_SIO_MDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_TLan_GetBit
	movl	%eax, %r14d
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.13:
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$65535, %r14d                   ## imm = 0xFFFF
	jmp	LBB0_8
LBB0_5:
	movl	$32768, %r15d                   ## imm = 0x8000
	xorl	%r14d, %r14d
	movl	$32768, %ebx                    ## imm = 0x8000
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movq	_TLAN_NET_SIO_MDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_TLan_GetBit
	testl	%eax, %eax
	cmovnel	%r15d, %eax
	orl	%eax, %r14d
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	shrl	%ebx
	cmpl	$1, %r15d
	movl	%ebx, %r15d
	ja	LBB0_6
## %bb.7:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_8:
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_ClearBit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.9:
	movq	_TLAN_NET_SIO_MINTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_TLan_SetBit
LBB0_10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	xorl	%eax, %eax
	callq	_in_irq
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TLAN_NET_SIO,4,2               ## @TLAN_NET_SIO
	.comm	_TLAN_DIO_ADR,4,2               ## @TLAN_DIO_ADR
	.comm	_TLAN_DIO_DATA,4,2              ## @TLAN_DIO_DATA
	.comm	_TLAN_NET_SIO_MINTEN,4,2        ## @TLAN_NET_SIO_MINTEN
	.comm	_TLAN_NET_SIO_MTXEN,4,2         ## @TLAN_NET_SIO_MTXEN
	.comm	_TLAN_NET_SIO_MCLK,4,2          ## @TLAN_NET_SIO_MCLK
	.comm	_TLAN_NET_SIO_MDATA,4,2         ## @TLAN_NET_SIO_MDATA
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_TLan_MiiReadReg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TLan_MiiReadReg
_TLan_MiiReadReg:                       ; @TLan_MiiReadReg
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x24, x2
	mov	x26, x1
	mov	x25, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x21, _TLAN_NET_SIO@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TLAN_NET_SIO@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w8, [x25]
Lloh5:
	adrp	x9, _TLAN_DIO_ADR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TLAN_DIO_ADR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	w1, w9, w8
	bl	_outw
	ldr	w8, [x25]
Lloh8:
	adrp	x9, _TLAN_DIO_DATA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TLAN_DIO_DATA@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	w10, [x21]
	add	w8, w9, w8
	add	w21, w8, w10
	bl	_in_irq
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, #0
	bl	_spin_lock_irqsave
LBB0_2:
	ldr	w0, [x25]
	bl	_TLan_MiiSync
Lloh11:
	adrp	x27, _TLAN_NET_SIO_MINTEN@GOTPAGE
Lloh12:
	ldr	x27, [x27, _TLAN_NET_SIO_MINTEN@GOTPAGEOFF]
	ldr	w0, [x27]
	mov	x1, x21
	bl	_TLan_GetBit
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x27]
	mov	x1, x21
	bl	_TLan_ClearBit
LBB0_4:
	ldr	w0, [x25]
	mov	w1, #1
	mov	w2, #2
	bl	_TLan_MiiSendData
	ldr	w0, [x25]
	mov	w1, #2
	mov	w2, #2
	bl	_TLan_MiiSendData
	ldr	w0, [x25]
	mov	x1, x26
	mov	w2, #5
	bl	_TLan_MiiSendData
	ldr	w0, [x25]
	mov	x1, x24
	mov	w2, #5
	bl	_TLan_MiiSendData
Lloh13:
	adrp	x8, _TLAN_NET_SIO_MTXEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TLAN_NET_SIO_MTXEN@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_TLan_ClearBit
Lloh16:
	adrp	x25, _TLAN_NET_SIO_MCLK@GOTPAGE
Lloh17:
	ldr	x25, [x25, _TLAN_NET_SIO_MCLK@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
Lloh18:
	adrp	x26, _TLAN_NET_SIO_MDATA@GOTPAGE
Lloh19:
	ldr	x26, [x26, _TLAN_NET_SIO_MDATA@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	x1, x21
	bl	_TLan_GetBit
	mov	x24, x0
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	cbz	w24, LBB0_6
; %bb.5:
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
Lloh20:
	adrp	x8, _TRUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh22:
	ldr	w23, [x8]
	mov	w24, #65535
	b	LBB0_8
LBB0_6:
	mov	w28, #32768
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x26]
	mov	x1, x21
	bl	_TLan_GetBit
	cmp	w0, #0
	csel	w8, wzr, w28, eq
	orr	w24, w8, w24
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	lsr	w8, w28, #1
	cmp	w28, #1
	mov	x28, x8
	b.hi	LBB0_7
LBB0_8:
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_ClearBit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_TLan_SetBit
	cbz	w22, LBB0_10
; %bb.9:
	ldr	w0, [x27]
	mov	x1, x21
	bl	_TLan_SetBit
LBB0_10:
	str	w24, [x20]
	bl	_in_irq
	cbnz	w0, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, #0
	bl	_spin_unlock_irqrestore
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TLAN_NET_SIO,4,2               ; @TLAN_NET_SIO
	.comm	_TLAN_DIO_ADR,4,2               ; @TLAN_DIO_ADR
	.comm	_TLAN_DIO_DATA,4,2              ; @TLAN_DIO_DATA
	.comm	_TLAN_NET_SIO_MINTEN,4,2        ; @TLAN_NET_SIO_MINTEN
	.comm	_TLAN_NET_SIO_MTXEN,4,2         ; @TLAN_NET_SIO_MTXEN
	.comm	_TLAN_NET_SIO_MCLK,4,2          ; @TLAN_NET_SIO_MCLK
	.comm	_TLAN_NET_SIO_MDATA,4,2         ; @TLAN_NET_SIO_MDATA
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_TLan_MiiReadReg
.subsections_via_symbols
