	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adin_config_mdix
_adin_config_mdix:                      ## @adin_config_mdix
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.4:
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_8:
	movq	_ADIN1300_PHY_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_13
## %bb.9:
	movq	_ADIN1300_MAN_MDIX_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, %eax
	jmp	LBB0_10
LBB0_2:
	movb	$1, %r14b
LBB0_5:
	movq	_ADIN1300_PHY_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	movq	_ADIN1300_MAN_MDIX_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	testb	%r14b, %r14b
	je	LBB0_7
LBB0_10:
	movq	_ADIN1300_AUTO_MDI_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	jmp	LBB0_11
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	_ADIN1300_AUTO_MDI_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edx
LBB0_11:
	movq	_ADIN1300_PHY_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_phy_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ADIN1300_PHY_CTRL1,4,2         ## @ADIN1300_PHY_CTRL1
	.comm	_ADIN1300_MAN_MDIX_EN,4,2       ## @ADIN1300_MAN_MDIX_EN
	.comm	_ADIN1300_AUTO_MDI_EN,4,2       ## @ADIN1300_AUTO_MDI_EN
	.no_dead_strip	_adin_config_mdix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adin_config_mdix
_adin_config_mdix:                      ; @adin_config_mdix
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.3:
	mov	w20, #0
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _ADIN1300_PHY_CTRL1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADIN1300_PHY_CTRL1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_11
; %bb.5:
Lloh3:
	adrp	x8, _ADIN1300_MAN_MDIX_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADIN1300_MAN_MDIX_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w0
	b	LBB0_9
LBB0_6:
	mov	w20, #1
LBB0_7:
Lloh6:
	adrp	x8, _ADIN1300_PHY_CTRL1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADIN1300_PHY_CTRL1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_11
; %bb.8:
Lloh9:
	adrp	x8, _ADIN1300_MAN_MDIX_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADIN1300_MAN_MDIX_EN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w8, w0, w8
	tbz	w20, #0, LBB0_12
LBB0_9:
Lloh12:
	adrp	x9, _ADIN1300_AUTO_MDI_EN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ADIN1300_AUTO_MDI_EN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	bic	w2, w8, w9
	b	LBB0_13
LBB0_10:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh18:
	adrp	x9, _ADIN1300_AUTO_MDI_EN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ADIN1300_AUTO_MDI_EN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w2, w9, w8
LBB0_13:
Lloh21:
	adrp	x8, _ADIN1300_PHY_CTRL1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ADIN1300_PHY_CTRL1@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_phy_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ADIN1300_PHY_CTRL1,4,2         ; @ADIN1300_PHY_CTRL1
	.comm	_ADIN1300_MAN_MDIX_EN,4,2       ; @ADIN1300_MAN_MDIX_EN
	.comm	_ADIN1300_AUTO_MDI_EN,4,2       ; @ADIN1300_AUTO_MDI_EN
	.no_dead_strip	_adin_config_mdix
.subsections_via_symbols
