	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et1310_config_flow_control
_et1310_config_flow_control:            ## @et1310_config_flow_control
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_11:
	movq	_FLOW_NONE@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rax
	jmp	LBB0_13
LBB0_2:
	leaq	-10(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$10, %edx
	callq	_et1310_phy_read_mii_bit
	leaq	-9(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	$11, %edx
	callq	_et1310_phy_read_mii_bit
	movb	-10(%rbp), %al
	movb	-9(%rbp), %cl
	testb	%al, %al
	je	LBB0_5
## %bb.3:
	testb	%cl, %cl
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rax
LBB0_13:
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	testb	%al, %al
	je	LBB0_8
## %bb.6:
	testb	%cl, %cl
	jne	LBB0_8
## %bb.7:
	movq	8(%rbx), %rax
	movq	_FLOW_BOTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
	jmp	LBB0_11
LBB0_8:
	orb	%cl, %al
	je	LBB0_11
## %bb.9:
	movq	8(%rbx), %rax
	movq	_FLOW_BOTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	_FLOW_RXONLY@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_FLOW_NONE,8,3                  ## @FLOW_NONE
	.comm	_FLOW_BOTH,8,3                  ## @FLOW_BOTH
	.comm	_FLOW_RXONLY,8,3                ## @FLOW_RXONLY
	.no_dead_strip	_et1310_config_flow_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et1310_config_flow_control
_et1310_config_flow_control:            ; @et1310_config_flow_control
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, _FLOW_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLOW_NONE@GOTPAGEOFF]
LBB0_2:
	ldr	x8, [x8]
	b	LBB0_8
LBB0_3:
	add	x3, sp, #15
	mov	x0, x19
	mov	w1, #5
	mov	w2, #10
	bl	_et1310_phy_read_mii_bit
	add	x3, sp, #14
	mov	x0, x19
	mov	w1, #5
	mov	w2, #11
	bl	_et1310_phy_read_mii_bit
	ldrb	w9, [sp, #15]
	ldrb	w8, [sp, #14]
	cmp	w9, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_7
; %bb.4:
	cbz	w9, LBB0_9
; %bb.5:
	cbnz	w8, LBB0_9
; %bb.6:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _FLOW_BOTH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FLOW_BOTH@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
	b	LBB0_1
LBB0_7:
	ldr	x8, [x19, #8]
LBB0_8:
	str	x8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
	cbnz	w9, LBB0_11
; %bb.10:
	cbz	w8, LBB0_1
LBB0_11:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _FLOW_BOTH@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FLOW_BOTH@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.12:
Lloh11:
	adrp	x8, _FLOW_RXONLY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FLOW_RXONLY@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_FLOW_NONE,8,3                  ; @FLOW_NONE
	.comm	_FLOW_BOTH,8,3                  ; @FLOW_BOTH
	.comm	_FLOW_RXONLY,8,3                ; @FLOW_RXONLY
	.no_dead_strip	_et1310_config_flow_control
.subsections_via_symbols
