	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlan_mii_read_reg
_tlan_mii_read_reg:                     ## @tlan_mii_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	%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	_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_mii_sync
	movq	_TLAN_NET_SIO_MINTEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_tlan_get_bit
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
LBB0_4:
	movl	(%r15), %edi
	movl	$1, %esi
	movl	$2, %edx
	callq	_tlan_mii_send_data
	movl	(%r15), %edi
	movl	$2, %esi
	movl	$2, %edx
	callq	_tlan_mii_send_data
	movl	(%r15), %edi
	movl	%r12d, %esi
	movl	$5, %edx
	callq	_tlan_mii_send_data
	movl	(%r15), %edi
	movl	%r14d, %esi
	movl	$5, %edx
	callq	_tlan_mii_send_data
	movq	_TLAN_NET_SIO_MTXEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movq	_TLAN_NET_SIO_MCLK@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movq	_TLAN_NET_SIO_MDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_tlan_get_bit
	movl	%eax, %r14d
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.13:
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	movl	$65535, %r14d                   ## imm = 0xFFFF
	movl	$1, %r15d
	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_clear_bit
	movq	_TLAN_NET_SIO_MDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_tlan_get_bit
	testl	%eax, %eax
	cmovnel	%r15d, %eax
	orl	%eax, %r14d
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	shrl	%ebx
	cmpl	$1, %r15d
	movl	%ebx, %r15d
	ja	LBB0_6
## %bb.7:
	xorl	%r15d, %r15d
LBB0_8:
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_clear_bit
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_tlan_set_bit
	cmpl	$0, -44(%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_set_bit
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	_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
	.no_dead_strip	_tlan_mii_read_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlan_mii_read_reg
_tlan_mii_read_reg:                     ; @tlan_mii_read_reg
	.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	x23, x2
	mov	x25, x1
	mov	x24, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x21, _TLAN_NET_SIO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TLAN_NET_SIO@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w8, [x24]
Lloh2:
	adrp	x9, _TLAN_DIO_ADR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TLAN_DIO_ADR@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	add	w1, w9, w8
	bl	_outw
	ldr	w8, [x24]
Lloh5:
	adrp	x9, _TLAN_DIO_DATA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TLAN_DIO_DATA@GOTPAGEOFF]
Lloh7:
	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, [x24]
	bl	_tlan_mii_sync
Lloh8:
	adrp	x26, _TLAN_NET_SIO_MINTEN@GOTPAGE
Lloh9:
	ldr	x26, [x26, _TLAN_NET_SIO_MINTEN@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	x1, x21
	bl	_tlan_get_bit
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x26]
	mov	x1, x21
	bl	_tlan_clear_bit
LBB0_4:
	ldr	w0, [x24]
	mov	w1, #1
	mov	w2, #2
	bl	_tlan_mii_send_data
	ldr	w0, [x24]
	mov	w1, #2
	mov	w2, #2
	bl	_tlan_mii_send_data
	ldr	w0, [x24]
	mov	x1, x25
	mov	w2, #5
	bl	_tlan_mii_send_data
	ldr	w0, [x24]
	mov	x1, x23
	mov	w2, #5
	bl	_tlan_mii_send_data
Lloh10:
	adrp	x8, _TLAN_NET_SIO_MTXEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TLAN_NET_SIO_MTXEN@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_tlan_clear_bit
Lloh13:
	adrp	x24, _TLAN_NET_SIO_MCLK@GOTPAGE
Lloh14:
	ldr	x24, [x24, _TLAN_NET_SIO_MCLK@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
Lloh15:
	adrp	x27, _TLAN_NET_SIO_MDATA@GOTPAGE
Lloh16:
	ldr	x27, [x27, _TLAN_NET_SIO_MDATA@GOTPAGEOFF]
	ldr	w0, [x27]
	mov	x1, x21
	bl	_tlan_get_bit
	mov	x23, x0
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	cbz	w23, LBB0_6
; %bb.5:
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	mov	w25, #65535
	mov	w23, #1
	b	LBB0_9
LBB0_6:
	mov	w25, #0
	mov	w23, #32768
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x27]
	mov	x1, x21
	bl	_tlan_get_bit
	cmp	w0, #0
	csel	w8, wzr, w23, eq
	orr	w25, w8, w25
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	lsr	w8, w23, #1
	cmp	w23, #1
	mov	x23, x8
	b.hi	LBB0_7
; %bb.8:
	mov	w23, #0
LBB0_9:
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x24]
	mov	x1, x21
	bl	_tlan_set_bit
	cbz	w22, LBB0_11
; %bb.10:
	ldr	w0, [x26]
	mov	x1, x21
	bl	_tlan_set_bit
LBB0_11:
	str	w25, [x20]
	bl	_in_irq
	cbnz	w0, LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, #0
	bl	_spin_unlock_irqrestore
LBB0_13:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.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
	.no_dead_strip	_tlan_mii_read_reg
.subsections_via_symbols
