	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aqr107_config_init
_aqr107_config_init:                    ## @aqr107_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), %rdx
	movq	_PHY_INTERFACE_MODE_XGMII@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rax
	je	LBB0_5
## %bb.1:
	movq	_PHY_INTERFACE_MODE_2500BASEX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_5
## %bb.2:
	cmpq	%rcx, %rax
	je	LBB0_5
## %bb.3:
	movq	_PHY_INTERFACE_MODE_USXGMII@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_5
## %bb.4:
	movq	_PHY_INTERFACE_MODE_10GKR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_5
## %bb.8:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	movq	%rbx, %rdi
	callq	_aqr107_wait_reset_complete
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_aqr107_chip_info
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	_PHY_INTERFACE_MODE_XGMII,8,3   ## @PHY_INTERFACE_MODE_XGMII
	.comm	_PHY_INTERFACE_MODE_USXGMII,8,3 ## @PHY_INTERFACE_MODE_USXGMII
	.comm	_PHY_INTERFACE_MODE_10GKR,8,3   ## @PHY_INTERFACE_MODE_10GKR
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Your devicetree is out of date, please update it. The AQR107 family doesn't support XGMII, maybe you mean USXGMII.\n"

	.comm	_MDIO_AN_VEND_PROV_DOWNSHIFT_DFLT,4,2 ## @MDIO_AN_VEND_PROV_DOWNSHIFT_DFLT
	.no_dead_strip	_aqr107_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aqr107_config_init
_aqr107_config_init:                    ; @aqr107_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	x10, [x9]
Lloh3:
	adrp	x9, _PHY_INTERFACE_MODE_2500BASEX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_2500BASEX@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x9]
Lloh6:
	adrp	x9, _PHY_INTERFACE_MODE_XGMII@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_XGMII@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x12, _PHY_INTERFACE_MODE_USXGMII@GOTPAGE
Lloh10:
	ldr	x12, [x12, _PHY_INTERFACE_MODE_USXGMII@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
Lloh12:
	adrp	x13, _PHY_INTERFACE_MODE_10GKR@GOTPAGE
Lloh13:
	ldr	x13, [x13, _PHY_INTERFACE_MODE_10GKR@GOTPAGEOFF]
Lloh14:
	ldr	x13, [x13]
	cmp	x8, x10
	ccmp	x8, x11, #4, ne
	ccmp	x8, x9, #4, ne
	ccmp	x8, x12, #4, ne
	ccmp	x8, x13, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	cmp	x8, x9
	cset	w0, eq
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	mov	x0, x19
	bl	_aqr107_wait_reset_complete
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_aqr107_chip_info
LBB0_3:
	mov	x0, x19
	bl	_aqr107_read_downshift_event
Lloh17:
	adrp	x8, _MDIO_AN_VEND_PROV_DOWNSHIFT_DFLT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MDIO_AN_VEND_PROV_DOWNSHIFT_DFLT@GOTPAGEOFF]
Lloh19:
	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_4:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.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	_PHY_INTERFACE_MODE_XGMII,8,3   ; @PHY_INTERFACE_MODE_XGMII
	.comm	_PHY_INTERFACE_MODE_USXGMII,8,3 ; @PHY_INTERFACE_MODE_USXGMII
	.comm	_PHY_INTERFACE_MODE_10GKR,8,3   ; @PHY_INTERFACE_MODE_10GKR
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Your devicetree is out of date, please update it. The AQR107 family doesn't support XGMII, maybe you mean USXGMII.\n"

	.comm	_MDIO_AN_VEND_PROV_DOWNSHIFT_DFLT,4,2 ; @MDIO_AN_VEND_PROV_DOWNSHIFT_DFLT
	.no_dead_strip	_aqr107_config_init
.subsections_via_symbols
