	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_aq_set_phy_cfg             ## -- Begin function ice_aq_set_phy_cfg
	.p2align	4, 0x90
_ice_aq_set_phy_cfg:                    ## @ice_aq_set_phy_cfg
	.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	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r15
	movslq	(%rdx), %rcx
	movq	_ICE_AQ_PHY_ENA_VALID_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	notl	%eax
	testl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	movq	_ICE_DBG_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_ice_debug
	movl	(%r12), %eax
	andl	%eax, (%rbx)
LBB0_4:
	movq	_ice_aqc_opc_set_phy_cfg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_ice_fill_dflt_direct_cmd_desc
	movl	%r13d, -44(%rbp)
	movq	_ICE_AQ_FLAG_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, -48(%rbp)
	movq	_ICE_DBG_LINK@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	movl	44(%rbx), %edi
	callq	_le64_to_cpu
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%rax, %rcx
	callq	_ice_debug
	movl	(%r12), %r13d
	movl	40(%rbx), %edi
	callq	_le64_to_cpu
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%rax, %rcx
	callq	_ice_debug
	movl	(%r12), %esi
	movslq	(%rbx), %rcx
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	callq	_ice_debug
	movl	(%r12), %esi
	movq	8(%rbx), %rcx
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	callq	_ice_debug
	movl	(%r12), %esi
	movq	16(%rbx), %rcx
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	callq	_ice_debug
	movl	(%r12), %esi
	movq	24(%rbx), %rcx
	leaq	L_.str.6(%rip), %rdx
	movq	%r15, %rdi
	callq	_ice_debug
	movl	(%r12), %esi
	movq	32(%rbx), %rcx
	leaq	L_.str.7(%rip), %rdx
	movq	%r15, %rdi
	callq	_ice_debug
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdx
	movl	$48, %ecx
	movq	%r14, %r8
	callq	_ice_aq_send_cmd
	jmp	LBB0_5
LBB0_1:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ICE_AQ_PHY_ENA_VALID_MASK,4,2  ## @ICE_AQ_PHY_ENA_VALID_MASK
	.comm	_ICE_DBG_PHY,4,2                ## @ICE_DBG_PHY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid bit is set in ice_aqc_set_phy_cfg_data->caps : 0x%x\n"

	.comm	_ice_aqc_opc_set_phy_cfg,4,2    ## @ice_aqc_opc_set_phy_cfg
	.comm	_ICE_AQ_FLAG_RD,4,2             ## @ICE_AQ_FLAG_RD
	.comm	_ICE_DBG_LINK,4,2               ## @ICE_DBG_LINK
L_.str.1:                               ## @.str.1
	.asciz	"phy_type_low = 0x%llx\n"

L_.str.2:                               ## @.str.2
	.asciz	"phy_type_high = 0x%llx\n"

L_.str.3:                               ## @.str.3
	.asciz	"caps = 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"low_power_ctrl = 0x%x\n"

L_.str.5:                               ## @.str.5
	.asciz	"eee_cap = 0x%x\n"

L_.str.6:                               ## @.str.6
	.asciz	"eeer_value = 0x%x\n"

L_.str.7:                               ## @.str.7
	.asciz	"link_fec_opt = 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_aq_set_phy_cfg             ; -- Begin function ice_aq_set_phy_cfg
	.p2align	2
_ice_aq_set_phy_cfg:                    ; @ice_aq_set_phy_cfg
	.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	x2, LBB0_4
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldrsw	x3, [x2]
Lloh0:
	adrp	x23, _ICE_AQ_PHY_ENA_VALID_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ICE_AQ_PHY_ENA_VALID_MASK@GOTPAGEOFF]
	ldr	w8, [x23]
	bics	wzr, w3, w8
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _ICE_DBG_PHY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ICE_DBG_PHY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_ice_debug
	ldr	w8, [x23]
	ldr	w9, [x20]
	and	w8, w9, w8
	str	w8, [x20]
LBB0_3:
Lloh7:
	adrp	x8, _ice_aqc_opc_set_phy_cfg@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ice_aqc_opc_set_phy_cfg@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_ice_fill_dflt_direct_cmd_desc
	str	w22, [sp, #12]
Lloh10:
	adrp	x8, _ICE_AQ_FLAG_RD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ICE_AQ_FLAG_RD@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [sp, #8]
	orr	w8, w8, w0
	str	w8, [sp, #8]
Lloh13:
	adrp	x23, _ICE_DBG_LINK@GOTPAGE
Lloh14:
	ldr	x23, [x23, _ICE_DBG_LINK@GOTPAGEOFF]
	ldr	w22, [x23]
	ldr	w0, [x20, #44]
	bl	_le64_to_cpu
	mov	x3, x0
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_ice_debug
	ldr	w22, [x23]
	ldr	w0, [x20, #40]
	bl	_le64_to_cpu
	mov	x3, x0
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_ice_debug
	ldr	w1, [x23]
	ldrsw	x3, [x20]
Lloh19:
	adrp	x2, l_.str.3@PAGE
Lloh20:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_ice_debug
	ldr	w1, [x23]
	ldr	x3, [x20, #8]
Lloh21:
	adrp	x2, l_.str.4@PAGE
Lloh22:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_ice_debug
	ldr	w1, [x23]
	ldr	x3, [x20, #16]
Lloh23:
	adrp	x2, l_.str.5@PAGE
Lloh24:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_ice_debug
	ldr	w1, [x23]
	ldr	x3, [x20, #24]
Lloh25:
	adrp	x2, l_.str.6@PAGE
Lloh26:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_ice_debug
	ldr	w1, [x23]
	ldr	x3, [x20, #32]
Lloh27:
	adrp	x2, l_.str.7@PAGE
Lloh28:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_ice_debug
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	mov	w3, #48
	mov	x4, x19
	bl	_ice_aq_send_cmd
	b	LBB0_5
LBB0_4:
Lloh29:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ICE_AQ_PHY_ENA_VALID_MASK,4,2  ; @ICE_AQ_PHY_ENA_VALID_MASK
	.comm	_ICE_DBG_PHY,4,2                ; @ICE_DBG_PHY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid bit is set in ice_aqc_set_phy_cfg_data->caps : 0x%x\n"

	.comm	_ice_aqc_opc_set_phy_cfg,4,2    ; @ice_aqc_opc_set_phy_cfg
	.comm	_ICE_AQ_FLAG_RD,4,2             ; @ICE_AQ_FLAG_RD
	.comm	_ICE_DBG_LINK,4,2               ; @ICE_DBG_LINK
l_.str.1:                               ; @.str.1
	.asciz	"phy_type_low = 0x%llx\n"

l_.str.2:                               ; @.str.2
	.asciz	"phy_type_high = 0x%llx\n"

l_.str.3:                               ; @.str.3
	.asciz	"caps = 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"low_power_ctrl = 0x%x\n"

l_.str.5:                               ; @.str.5
	.asciz	"eee_cap = 0x%x\n"

l_.str.6:                               ; @.str.6
	.asciz	"eeer_value = 0x%x\n"

l_.str.7:                               ; @.str.7
	.asciz	"link_fec_opt = 0x%x\n"

.subsections_via_symbols
