	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlan_mii_send_data
_tlan_mii_send_data:                    ## @tlan_mii_send_data
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	je	LBB0_6
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_TLAN_NET_SIO@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_TLAN_DIO_ADR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	callq	_outw
	movq	_TLAN_DIO_DATA@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	addq	(%rbx), %r12
	movq	_TLAN_NET_SIO_MTXEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_tlan_set_bit
	decb	%r15b
	movl	$1, %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	movq	_TLAN_NET_SIO_MCLK@GOTPCREL(%rip), %r15
	movq	_TLAN_NET_SIO_MDATA@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_tlan_clear_bit
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_tlan_set_bit
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_tlan_get_bit
	movl	%ebx, %eax
	sarl	%eax
	cmpl	$1, %ebx
	movl	%eax, %ebx
	jbe	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_tlan_clear_bit
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_tlan_get_bit
	movl	(%r13), %edi
	movq	%r12, %rsi
	testl	%r14d, %ebx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_tlan_set_bit
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLAN_NET_SIO,8,3               ## @TLAN_NET_SIO
	.comm	_TLAN_DIO_ADR,8,3               ## @TLAN_DIO_ADR
	.comm	_TLAN_DIO_DATA,8,3              ## @TLAN_DIO_DATA
	.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_send_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlan_mii_send_data
_tlan_mii_send_data:                    ; @tlan_mii_send_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	w2, LBB0_6
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _TLAN_NET_SIO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TLAN_NET_SIO@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh2:
	adrp	x8, _TLAN_DIO_ADR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TLAN_DIO_ADR@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x1, x8, x20
	bl	_outw
Lloh5:
	adrp	x8, _TLAN_DIO_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TLAN_DIO_DATA@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x22]
	add	x8, x8, x20
	add	x20, x8, x9
Lloh8:
	adrp	x8, _TLAN_NET_SIO_MTXEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TLAN_NET_SIO_MTXEN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_tlan_set_bit
	sub	w8, w21, #1
	mov	w9, #1
	lsl	w21, w9, w8
Lloh11:
	adrp	x22, _TLAN_NET_SIO_MCLK@GOTPAGE
Lloh12:
	ldr	x22, [x22, _TLAN_NET_SIO_MCLK@GOTPAGEOFF]
Lloh13:
	adrp	x23, _TLAN_NET_SIO_MDATA@GOTPAGE
Lloh14:
	ldr	x23, [x23, _TLAN_NET_SIO_MDATA@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_tlan_clear_bit
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22]
	mov	x1, x20
	bl	_tlan_set_bit
	ldr	w0, [x22]
	mov	x1, x20
	bl	_tlan_get_bit
	asr	w8, w21, #1
	cmp	w21, #1
	mov	x21, x8
	b.ls	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x20
	bl	_tlan_clear_bit
	ldr	w0, [x22]
	mov	x1, x20
	bl	_tlan_get_bit
	ldr	w0, [x23]
	mov	x1, x20
	tst	w21, w19
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_tlan_set_bit
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TLAN_NET_SIO,8,3               ; @TLAN_NET_SIO
	.comm	_TLAN_DIO_ADR,8,3               ; @TLAN_DIO_ADR
	.comm	_TLAN_DIO_DATA,8,3              ; @TLAN_DIO_DATA
	.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_send_data
.subsections_via_symbols
