	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nx_fw_cmd_set_phy              ## -- Begin function nx_fw_cmd_set_phy
	.p2align	4, 0x90
_nx_fw_cmd_set_phy:                     ## @nx_fw_cmd_set_phy
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-72(%rbp), %r12
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%rbx, -48(%rbp)
	movq	%r14, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	_NX_CDRP_CMD_WRITE_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_netxen_issue_cmd
	movq	_NX_RCODE_SUCCESS@GOTPCREL(%rip), %rdx
	movq	_EIO@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	subl	(%rsi), %ecx
	cmpq	(%rdx), %rax
	cmovel	%r13d, %ecx
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NX_CDRP_CMD_WRITE_PHY,4,2      ## @NX_CDRP_CMD_WRITE_PHY
	.comm	_NX_RCODE_SUCCESS,8,3           ## @NX_RCODE_SUCCESS
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nx_fw_cmd_set_phy              ; -- Begin function nx_fw_cmd_set_phy
	.p2align	2
_nx_fw_cmd_set_phy:                     ; @nx_fw_cmd_set_phy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	stp	x19, x20, [sp, #16]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _NX_CDRP_CMD_WRITE_PHY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NX_CDRP_CMD_WRITE_PHY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x1, sp
	mov	x0, x21
	bl	_netxen_issue_cmd
Lloh3:
	adrp	x8, _NX_RCODE_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NX_RCODE_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _EIO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x0, x8
	csneg	w0, wzr, w9, eq
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NX_CDRP_CMD_WRITE_PHY,4,2      ; @NX_CDRP_CMD_WRITE_PHY
	.comm	_NX_RCODE_SUCCESS,8,3           ; @NX_RCODE_SUCCESS
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
