	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_fw_cmd_set_mtu          ## -- Begin function qlcnic_fw_cmd_set_mtu
	.p2align	4, 0x90
_qlcnic_fw_cmd_set_mtu:                 ## @qlcnic_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r12
	movq	(%r12), %rax
	movq	_QLCNIC_HOST_CTX_STATE_ACTIVE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_QLCNIC_CMD_SET_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movl	8(%r12), %eax
	movq	-40(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movl	%r14d, 8(%rcx)
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qlcnic_issue_cmd
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	leaq	-40(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_HOST_CTX_STATE_ACTIVE,8,3 ## @QLCNIC_HOST_CTX_STATE_ACTIVE
	.comm	_QLCNIC_CMD_SET_MTU,4,2         ## @QLCNIC_CMD_SET_MTU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set mtu\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_fw_cmd_set_mtu          ; -- Begin function qlcnic_fw_cmd_set_mtu
	.p2align	2
_qlcnic_fw_cmd_set_mtu:                 ; @qlcnic_fw_cmd_set_mtu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x22, [x0, #8]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _QLCNIC_HOST_CTX_STATE_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_HOST_CTX_STATE_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh3:
	adrp	x8, _QLCNIC_CMD_SET_MTU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_CMD_SET_MTU@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	w8, [x22, #8]
	ldr	x9, [sp, #8]
	stp	w8, w20, [x9, #4]
	add	x1, sp, #8
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_4:
	mov	w21, #0
	b	LBB0_7
LBB0_5:
	mov	w21, #0
LBB0_6:
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_HOST_CTX_STATE_ACTIVE,8,3 ; @QLCNIC_HOST_CTX_STATE_ACTIVE
	.comm	_QLCNIC_CMD_SET_MTU,4,2         ; @QLCNIC_CMD_SET_MTU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set mtu\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
