	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_aq_get_phy_caps            ## -- Begin function ice_aq_get_phy_caps
	.p2align	4, 0x90
_ice_aq_get_phy_caps:                   ## @ice_aq_get_phy_caps
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movl	%edx, %r15d
	movq	_ICE_AQC_REPORT_MODE_M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%edx, %eax
	jne	LBB0_3
## %bb.4:
	movq	%r8, %r12
	movq	%rcx, %rbx
	movl	%esi, %r13d
	movq	_ice_aqc_opc_get_phy_caps@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_ice_fill_dflt_direct_cmd_desc
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.5:
	movq	_ICE_AQC_GET_PHY_RQM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, -48(%rbp)
LBB0_6:
	movl	%r15d, %edi
	callq	_cpu_to_le16
	orl	%eax, -48(%rbp)
	movl	16(%r14), %edi
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdx
	movl	$8, %ecx
	movq	%r12, %r8
	callq	_ice_aq_send_cmd
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	_ICE_AQC_REPORT_TOPO_CAP@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_9
## %bb.8:
	movl	4(%rbx), %edi
	callq	_le64_to_cpu
	movq	%rax, 8(%r14)
	movl	(%rbx), %edi
	callq	_le64_to_cpu
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_AQC_REPORT_MODE_M,4,2      ## @ICE_AQC_REPORT_MODE_M
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ice_aqc_opc_get_phy_caps,4,2   ## @ice_aqc_opc_get_phy_caps
	.comm	_ICE_AQC_GET_PHY_RQM,4,2        ## @ICE_AQC_GET_PHY_RQM
	.comm	_ICE_AQC_REPORT_TOPO_CAP,4,2    ## @ICE_AQC_REPORT_TOPO_CAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_aq_get_phy_caps            ; -- Begin function ice_aq_get_phy_caps
	.p2align	2
_ice_aq_get_phy_caps:                   ; @ice_aq_get_phy_caps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x3, LBB0_8
; %bb.1:
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.2:
	mov	x21, x2
Lloh0:
	adrp	x8, _ICE_AQC_REPORT_MODE_M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_AQC_REPORT_MODE_M@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w2, w8
	cbnz	w8, LBB0_8
; %bb.3:
	mov	x22, x4
	mov	x20, x3
	mov	x23, x1
Lloh3:
	adrp	x8, _ice_aqc_opc_get_phy_caps@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ice_aqc_opc_get_phy_caps@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_ice_fill_dflt_direct_cmd_desc
	cbz	w23, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _ICE_AQC_GET_PHY_RQM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICE_AQC_GET_PHY_RQM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [sp, #8]
	orr	w8, w8, w0
	str	w8, [sp, #8]
LBB0_5:
	mov	x0, x21
	bl	_cpu_to_le16
	ldr	w8, [sp, #8]
	orr	w8, w8, w0
	str	w8, [sp, #8]
	ldr	w0, [x19, #16]
	add	x1, sp, #8
	mov	x2, x20
	mov	w3, #8
	mov	x4, x22
	bl	_ice_aq_send_cmd
	cbnz	w0, LBB0_9
; %bb.6:
Lloh9:
	adrp	x8, _ICE_AQC_REPORT_TOPO_CAP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_AQC_REPORT_TOPO_CAP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_9
; %bb.7:
	ldr	w0, [x20, #4]
	bl	_le64_to_cpu
	str	x0, [x19, #8]
	ldr	w0, [x20]
	bl	_le64_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_AQC_REPORT_MODE_M,4,2      ; @ICE_AQC_REPORT_MODE_M
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ice_aqc_opc_get_phy_caps,4,2   ; @ice_aqc_opc_get_phy_caps
	.comm	_ICE_AQC_GET_PHY_RQM,4,2        ; @ICE_AQC_GET_PHY_RQM
	.comm	_ICE_AQC_REPORT_TOPO_CAP,4,2    ; @ICE_AQC_REPORT_TOPO_CAP
.subsections_via_symbols
