	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_aq_get_phy_capabilities   ## -- Begin function i40e_aq_get_phy_capabilities
	.p2align	4, 0x90
_i40e_aq_get_phy_capabilities:          ## @i40e_aq_get_phy_capabilities
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.1:
	movq	%r8, %r12
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	_I40E_MAX_PHY_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %r15d
	leaq	-56(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_i40e_aqc_opc_get_phy_abilities@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i40e_fill_default_direct_cmd_desc
	movq	_I40E_AQ_FLAG_BUF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	orl	%eax, -52(%rbp)
	movq	_I40E_AQ_LARGE_BUF@GOTPCREL(%rip), %rax
	cmpq	$15, (%rax)
	jg	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_I40E_AQ_FLAG_LB@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	orl	%eax, -52(%rbp)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_I40E_AQ_PHY_REPORT_QUALIFIED_MODULES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, -56(%rbp)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_I40E_AQ_PHY_REPORT_INITIAL_VALUES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, -56(%rbp)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$16, %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %r8
	callq	_i40e_asq_send_command
	movl	8(%rbx), %ecx
	cmpl	$129, %ecx
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	_I40E_ERR_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$129, 8(%rbx)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r15), %rcx
	cmpq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	movq	%rcx, %r15
	jl	LBB0_2
	jmp	LBB0_13
LBB0_9:
	cmpl	$128, %ecx
	jne	LBB0_13
## %bb.10:
	movq	_I40E_ERR_UNKNOWN_PHY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_13:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_20
## %bb.14:
	testq	%rax, %rax
	jne	LBB0_20
## %bb.15:
	movq	32(%rbx), %rax
	movq	_I40E_MAC_XL710@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.16:
	movq	16(%rbx), %rax
	movq	_I40E_FW_API_VERSION_MAJOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.17:
	movq	24(%rbx), %rax
	movq	_I40E_MINOR_VER_GET_LINK_INFO_XL710@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_18
LBB0_19:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	callq	_le32_to_cpu
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_21:
	movq	_I40E_ERR_PARAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_i40e_aq_get_link_info
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_MAX_PHY_TIMEOUT,8,3       ## @I40E_MAX_PHY_TIMEOUT
	.comm	_I40E_ERR_PARAM,8,3             ## @I40E_ERR_PARAM
	.comm	_i40e_aqc_opc_get_phy_abilities,4,2 ## @i40e_aqc_opc_get_phy_abilities
	.comm	_I40E_AQ_FLAG_BUF,8,3           ## @I40E_AQ_FLAG_BUF
	.comm	_I40E_AQ_LARGE_BUF,8,3          ## @I40E_AQ_LARGE_BUF
	.comm	_I40E_AQ_FLAG_LB,8,3            ## @I40E_AQ_FLAG_LB
	.comm	_I40E_AQ_PHY_REPORT_QUALIFIED_MODULES,4,2 ## @I40E_AQ_PHY_REPORT_QUALIFIED_MODULES
	.comm	_I40E_AQ_PHY_REPORT_INITIAL_VALUES,4,2 ## @I40E_AQ_PHY_REPORT_INITIAL_VALUES
	.comm	_I40E_ERR_UNKNOWN_PHY,8,3       ## @I40E_ERR_UNKNOWN_PHY
	.comm	_I40E_ERR_TIMEOUT,8,3           ## @I40E_ERR_TIMEOUT
	.comm	_I40E_MAC_XL710,8,3             ## @I40E_MAC_XL710
	.comm	_I40E_FW_API_VERSION_MAJOR,8,3  ## @I40E_FW_API_VERSION_MAJOR
	.comm	_I40E_MINOR_VER_GET_LINK_INFO_XL710,8,3 ## @I40E_MINOR_VER_GET_LINK_INFO_XL710
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_aq_get_phy_capabilities   ; -- Begin function i40e_aq_get_phy_capabilities
	.p2align	2
_i40e_aq_get_phy_capabilities:          ; @i40e_aq_get_phy_capabilities
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x3, LBB0_19
; %bb.1:
	mov	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _I40E_MAX_PHY_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_MAX_PHY_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	mov	w25, #1
Lloh3:
	adrp	x27, _I40E_AQ_FLAG_BUF@GOTPAGE
Lloh4:
	ldr	x27, [x27, _I40E_AQ_FLAG_BUF@GOTPAGEOFF]
Lloh5:
	adrp	x28, _I40E_AQ_LARGE_BUF@GOTPAGE
Lloh6:
	ldr	x28, [x28, _I40E_AQ_LARGE_BUF@GOTPAGEOFF]
Lloh7:
	adrp	x26, _I40E_ERR_TIMEOUT@GOTPAGE
Lloh8:
	ldr	x26, [x26, _I40E_ERR_TIMEOUT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
Lloh9:
	adrp	x8, _i40e_aqc_opc_get_phy_abilities@GOTPAGE
Lloh10:
	ldr	x8, [x8, _i40e_aqc_opc_get_phy_abilities@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_i40e_fill_default_direct_cmd_desc
	ldr	x0, [x27]
	bl	_cpu_to_le16
	ldr	w8, [sp, #12]
	orr	w8, w8, w0
	str	w8, [sp, #12]
	ldr	x8, [x28]
	cmp	x8, #15
	b.gt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh12:
	adrp	x8, _I40E_AQ_FLAG_LB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I40E_AQ_FLAG_LB@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [sp, #12]
	orr	w8, w8, w0
	str	w8, [sp, #12]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w23, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh15:
	adrp	x8, _I40E_AQ_PHY_REPORT_QUALIFIED_MODULES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I40E_AQ_PHY_REPORT_QUALIFIED_MODULES@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	w8, [sp, #8]
	orr	w8, w8, w0
	str	w8, [sp, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w21, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh18:
	adrp	x8, _I40E_AQ_PHY_REPORT_INITIAL_VALUES@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I40E_AQ_PHY_REPORT_INITIAL_VALUES@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	w8, [sp, #8]
	orr	w8, w8, w0
	str	w8, [sp, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	mov	w3, #16
	mov	x4, x22
	bl	_i40e_asq_send_command
	ldr	w8, [x19, #8]
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	x0, [x26]
	ldr	w8, [x19, #8]
	cmp	w8, #129
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x25, #1
	cmp	x25, x24
	mov	x25, x8
	b.lt	LBB0_2
	b	LBB0_13
LBB0_11:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.12:
Lloh21:
	adrp	x8, _I40E_ERR_UNKNOWN_PHY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I40E_ERR_UNKNOWN_PHY@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
LBB0_13:
	cbz	w21, LBB0_20
; %bb.14:
	cbnz	x0, LBB0_20
; %bb.15:
	ldr	x8, [x19, #32]
Lloh24:
	adrp	x9, _I40E_MAC_XL710@GOTPAGE
Lloh25:
	ldr	x9, [x9, _I40E_MAC_XL710@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.16:
	ldr	x8, [x19, #16]
Lloh27:
	adrp	x9, _I40E_FW_API_VERSION_MAJOR@GOTPAGE
Lloh28:
	ldr	x9, [x9, _I40E_FW_API_VERSION_MAJOR@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
	ldr	x8, [x19, #24]
Lloh30:
	adrp	x9, _I40E_MINOR_VER_GET_LINK_INFO_XL710@GOTPAGE
Lloh31:
	ldr	x9, [x9, _I40E_MINOR_VER_GET_LINK_INFO_XL710@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_21
LBB0_18:
	ldr	w0, [x20, #8]
	bl	_le32_to_cpu
	mov	x0, #0
	b	LBB0_20
LBB0_19:
Lloh33:
	adrp	x8, _I40E_ERR_PARAM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _I40E_ERR_PARAM@GOTPAGEOFF]
Lloh35:
	ldr	x0, [x8]
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	mov	x0, x19
	mov	w1, #1
	mov	x2, #0
	mov	x3, #0
	bl	_i40e_aq_get_link_info
	b	LBB0_20
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_MAX_PHY_TIMEOUT,8,3       ; @I40E_MAX_PHY_TIMEOUT
	.comm	_I40E_ERR_PARAM,8,3             ; @I40E_ERR_PARAM
	.comm	_i40e_aqc_opc_get_phy_abilities,4,2 ; @i40e_aqc_opc_get_phy_abilities
	.comm	_I40E_AQ_FLAG_BUF,8,3           ; @I40E_AQ_FLAG_BUF
	.comm	_I40E_AQ_LARGE_BUF,8,3          ; @I40E_AQ_LARGE_BUF
	.comm	_I40E_AQ_FLAG_LB,8,3            ; @I40E_AQ_FLAG_LB
	.comm	_I40E_AQ_PHY_REPORT_QUALIFIED_MODULES,4,2 ; @I40E_AQ_PHY_REPORT_QUALIFIED_MODULES
	.comm	_I40E_AQ_PHY_REPORT_INITIAL_VALUES,4,2 ; @I40E_AQ_PHY_REPORT_INITIAL_VALUES
	.comm	_I40E_ERR_UNKNOWN_PHY,8,3       ; @I40E_ERR_UNKNOWN_PHY
	.comm	_I40E_ERR_TIMEOUT,8,3           ; @I40E_ERR_TIMEOUT
	.comm	_I40E_MAC_XL710,8,3             ; @I40E_MAC_XL710
	.comm	_I40E_FW_API_VERSION_MAJOR,8,3  ; @I40E_FW_API_VERSION_MAJOR
	.comm	_I40E_MINOR_VER_GET_LINK_INFO_XL710,8,3 ; @I40E_MINOR_VER_GET_LINK_INFO_XL710
.subsections_via_symbols
