	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nx_fw_cmd_set_mtu              ## -- Begin function nx_fw_cmd_set_mtu
	.p2align	4, 0x90
_nx_fw_cmd_set_mtu:                     ## @nx_fw_cmd_set_mtu
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_NX_RCODE_SUCCESS@GOTPCREL(%rip), %r12
	movq	(%r12), %r14
	leaq	-64(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_NX_CDRP_CMD_SET_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	%r15d, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	(%rbx), %rax
	movq	_NX_HOST_CTX_STATE_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_netxen_issue_cmd
	movq	%rax, %r14
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpq	(%r12), %r14
	cmovel	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NX_RCODE_SUCCESS,8,3           ## @NX_RCODE_SUCCESS
	.comm	_NX_CDRP_CMD_SET_MTU,4,2        ## @NX_CDRP_CMD_SET_MTU
	.comm	_NX_HOST_CTX_STATE_ACTIVE,8,3   ## @NX_HOST_CTX_STATE_ACTIVE
	.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_mtu              ; -- Begin function nx_fw_cmd_set_mtu
	.p2align	2
_nx_fw_cmd_set_mtu:                     ; @nx_fw_cmd_set_mtu
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _NX_RCODE_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NX_RCODE_SUCCESS@GOTPAGEOFF]
	ldr	x19, [x22]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh2:
	adrp	x8, _NX_CDRP_CMD_SET_MTU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NX_CDRP_CMD_SET_MTU@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	stp	w9, w8, [sp, #24]
	str	w21, [sp, #8]
	str	xzr, [sp, #16]
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _NX_HOST_CTX_STATE_ACTIVE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NX_HOST_CTX_STATE_ACTIVE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x1, sp, #8
	mov	x0, x20
	bl	_netxen_issue_cmd
	mov	x19, x0
LBB0_2:
	ldr	x8, [x22]
Lloh8:
	adrp	x9, _EIO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	x19, 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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NX_RCODE_SUCCESS,8,3           ; @NX_RCODE_SUCCESS
	.comm	_NX_CDRP_CMD_SET_MTU,4,2        ; @NX_CDRP_CMD_SET_MTU
	.comm	_NX_HOST_CTX_STATE_ACTIVE,8,3   ; @NX_HOST_CTX_STATE_ACTIVE
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
