	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aqcs109_config_init
_aqcs109_config_init:                   ## @aqcs109_config_init
	.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	(%rdi), %rax
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_PHY_INTERFACE_MODE_2500BASEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, %rdi
	callq	_aqr107_wait_reset_complete
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_aqr107_chip_info
LBB0_5:
	movq	_SPEED_2500@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_set_max_speed
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_aqr107_read_downshift_event
	movq	_MDIO_AN_VEND_PROV_DOWNSHIFT_DFLT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_aqr107_set_downshift           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_PHY_INTERFACE_MODE_2500BASEX,8,3 ## @PHY_INTERFACE_MODE_2500BASEX
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SPEED_2500,4,2                 ## @SPEED_2500
	.comm	_MDIO_AN_VEND_PROV_DOWNSHIFT_DFLT,4,2 ## @MDIO_AN_VEND_PROV_DOWNSHIFT_DFLT
	.no_dead_strip	_aqcs109_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aqcs109_config_init
_aqcs109_config_init:                   ; @aqcs109_config_init
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PHY_INTERFACE_MODE_2500BASEX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PHY_INTERFACE_MODE_2500BASEX@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_aqr107_wait_reset_complete
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_aqr107_chip_info
LBB0_3:
Lloh6:
	adrp	x8, _SPEED_2500@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPEED_2500@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_set_max_speed
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_aqr107_read_downshift_event
Lloh9:
	adrp	x8, _MDIO_AN_VEND_PROV_DOWNSHIFT_DFLT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MDIO_AN_VEND_PROV_DOWNSHIFT_DFLT@GOTPAGEOFF]
Lloh11:
	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	_aqr107_set_downshift
LBB0_5:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_PHY_INTERFACE_MODE_2500BASEX,8,3 ; @PHY_INTERFACE_MODE_2500BASEX
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SPEED_2500,4,2                 ; @SPEED_2500
	.comm	_MDIO_AN_VEND_PROV_DOWNSHIFT_DFLT,4,2 ; @MDIO_AN_VEND_PROV_DOWNSHIFT_DFLT
	.no_dead_strip	_aqcs109_config_init
.subsections_via_symbols
