	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlan_mii_write_reg
_tlan_mii_write_reg:                    ## @tlan_mii_write_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
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_TLAN_NET_SIO@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_TLAN_DIO_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	(%rbx), %esi
	callq	_outw
	movq	_TLAN_DIO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	addl	(%rbx), %r12d
	addl	(%r15), %r12d
	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	(%rbx), %edi
	callq	_tlan_mii_sync
	movq	_TLAN_NET_SIO_MINTEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	%r12d, %esi
	callq	_tlan_get_bit
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r13), %edi
	movl	%r12d, %esi
	callq	_tlan_clear_bit
LBB0_4:
	movl	(%rbx), %edi
	movl	$1, %esi
	movl	$2, %edx
	callq	_tlan_mii_send_data
	movl	(%rbx), %edi
	movl	$1, %esi
	movl	$2, %edx
	callq	_tlan_mii_send_data
	movl	(%rbx), %edi
	movl	%r14d, %esi
	movl	$5, %edx
	callq	_tlan_mii_send_data
	movl	(%rbx), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$5, %edx
	callq	_tlan_mii_send_data
	movl	(%rbx), %edi
	movl	$2, %esi
	movl	$2, %edx
	callq	_tlan_mii_send_data
	movl	(%rbx), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	$16, %edx
	callq	_tlan_mii_send_data
	movq	_TLAN_NET_SIO_MCLK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%r12d, %esi
	callq	_tlan_clear_bit
	movl	(%rbx), %edi
	movl	%r12d, %esi
	callq	_tlan_set_bit
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	movq	_TLAN_NET_SIO_MINTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_tlan_set_bit
LBB0_6:
	xorl	%eax, %eax
	callq	_in_irq
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.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_MCLK,4,2          ## @TLAN_NET_SIO_MCLK
	.no_dead_strip	_tlan_mii_write_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_write_reg
_tlan_mii_write_reg:                    ; @tlan_mii_write_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	x20, x3
	mov	x23, x2
	mov	x24, x1
	mov	x22, 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, [x22]
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, [x22]
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, [x22]
	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	x25, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x26]
	mov	x1, x21
	bl	_tlan_clear_bit
LBB0_4:
	ldr	w0, [x22]
	mov	w1, #1
	mov	w2, #2
	bl	_tlan_mii_send_data
	ldr	w0, [x22]
	mov	w1, #1
	mov	w2, #2
	bl	_tlan_mii_send_data
	ldr	w0, [x22]
	mov	x1, x24
	mov	w2, #5
	bl	_tlan_mii_send_data
	ldr	w0, [x22]
	mov	x1, x23
	mov	w2, #5
	bl	_tlan_mii_send_data
	ldr	w0, [x22]
	mov	w1, #2
	mov	w2, #2
	bl	_tlan_mii_send_data
	ldr	w0, [x22]
	mov	x1, x20
	mov	w2, #16
	bl	_tlan_mii_send_data
Lloh10:
	adrp	x20, _TLAN_NET_SIO_MCLK@GOTPAGE
Lloh11:
	ldr	x20, [x20, _TLAN_NET_SIO_MCLK@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x21
	bl	_tlan_clear_bit
	ldr	w0, [x20]
	mov	x1, x21
	bl	_tlan_set_bit
	cbz	w25, LBB0_6
; %bb.5:
	ldr	w0, [x26]
	mov	x1, x21
	bl	_tlan_set_bit
LBB0_6:
	bl	_in_irq
	cbz	w0, LBB0_8
; %bb.7:
	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
LBB0_8:
	mov	x0, x19
	mov	x1, #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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.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_MCLK,4,2          ; @TLAN_NET_SIO_MCLK
	.no_dead_strip	_tlan_mii_write_reg
.subsections_via_symbols
