	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_fw_cmd_set_drv_version  ## -- Begin function qlcnic_fw_cmd_set_drv_version
	.p2align	4, 0x90
_qlcnic_fw_cmd_set_drv_version:         ## @qlcnic_fw_cmd_set_drv_version
	.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	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-52(%rbp), %rbx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	__QLCNIC_LINUX_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	__QLCNIC_LINUX_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	__QLCNIC_LINUX_SUBVERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_snprintf
	leaq	-64(%rbp), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_qlcnic_alloc_mbx_args
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	-88(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	movl	$8, %edx
	callq	_memcpy
	leaq	-48(%rbp), %rsi
	leaq	-80(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	leaq	-44(%rbp), %rsi
	leaq	-72(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	-88(%rbp), %rax
	movq	-64(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	-80(%rbp), %rax
	movq	%rax, 16(%rcx)
	movq	-72(%rbp), %rax
	movq	%rax, 24(%rcx)
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qlcnic_issue_cmd
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_3:
	leaq	-64(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
	movl	%r12d, %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d.%d.%d"

	.comm	__QLCNIC_LINUX_MAJOR,4,2        ## @_QLCNIC_LINUX_MAJOR
	.comm	__QLCNIC_LINUX_MINOR,4,2        ## @_QLCNIC_LINUX_MINOR
	.comm	__QLCNIC_LINUX_SUBVERSION,4,2   ## @_QLCNIC_LINUX_SUBVERSION
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set driver version in firmware\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_drv_version  ; -- Begin function qlcnic_fw_cmd_set_drv_version
	.p2align	2
_qlcnic_fw_cmd_set_drv_version:         ; @qlcnic_fw_cmd_set_drv_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x21, sp, #44
	add	x0, sp, #44
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh3:
	adrp	x8, __QLCNIC_LINUX_MAJOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, __QLCNIC_LINUX_MAJOR@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, __QLCNIC_LINUX_MINOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, __QLCNIC_LINUX_MINOR@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, __QLCNIC_LINUX_SUBVERSION@GOTPAGE
Lloh10:
	ldr	x8, [x8, __QLCNIC_LINUX_SUBVERSION@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #44
	mov	w1, #12
	bl	_snprintf
	add	x0, sp, #32
	mov	x1, x19
	mov	x2, x20
	bl	_qlcnic_alloc_mbx_args
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.1:
	add	x0, sp, #24
	add	x1, sp, #44
	mov	w2, #8
	bl	_memcpy
	add	x1, x21, #4
	add	x0, sp, #16
	mov	w2, #8
	bl	_memcpy
	add	x1, x21, #8
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcpy
	ldp	x8, x9, [sp, #24]
	ldr	x10, [sp, #16]
	stp	x8, x10, [x9, #8]
	ldr	x8, [sp, #8]
	str	x8, [x9, #24]
	add	x1, sp, #32
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x0, [x19]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	add	x0, sp, #32
	bl	_qlcnic_free_mbx_args
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d.%d.%d"

	.comm	__QLCNIC_LINUX_MAJOR,4,2        ; @_QLCNIC_LINUX_MAJOR
	.comm	__QLCNIC_LINUX_MINOR,4,2        ; @_QLCNIC_LINUX_MINOR
	.comm	__QLCNIC_LINUX_SUBVERSION,4,2   ; @_QLCNIC_LINUX_SUBVERSION
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set driver version in firmware\n"

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