	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_set_fw_loopback
_qlcnic_set_fw_loopback:                ## @qlcnic_set_fw_loopback
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_QLCNIC_HOST_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$23, %edi
	callq	_cpu_to_le64
	movq	%rax, -40(%rbp)
	callq	_cpu_to_le64
	movq	%rax, -48(%rbp)
	movl	%r14d, %edi
	callq	_cpu_to_le64
	movq	-56(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_qlcnic_send_cmd_descs
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rdi
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_2:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_HOST_REQUEST,4,2        ## @QLCNIC_HOST_REQUEST
	.comm	_QLCNIC_H2C_OPCODE_CONFIG_LOOPBACK,4,2 ## @QLCNIC_H2C_OPCODE_CONFIG_LOOPBACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sting loopback mode failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"Set"

L_.str.2:                               ## @.str.2
	.asciz	"Reset"

	.no_dead_strip	_qlcnic_set_fw_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_set_fw_loopback
_qlcnic_set_fw_loopback:                ; @qlcnic_set_fw_loopback
	.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, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _QLCNIC_HOST_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_HOST_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w0, w8, #23
	bl	_cpu_to_le64
	str	x0, [sp, #24]
	bl	_cpu_to_le64
	str	x0, [sp, #16]
	mov	x0, x19
	bl	_cpu_to_le64
	ldr	x8, [sp, #8]
	str	x0, [x8]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #1
	bl	_qlcnic_send_cmd_descs
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x20]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x2, x9, x8, eq
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_HOST_REQUEST,4,2        ; @QLCNIC_HOST_REQUEST
	.comm	_QLCNIC_H2C_OPCODE_CONFIG_LOOPBACK,4,2 ; @QLCNIC_H2C_OPCODE_CONFIG_LOOPBACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sting loopback mode failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"Set"

l_.str.2:                               ; @.str.2
	.asciz	"Reset"

	.no_dead_strip	_qlcnic_set_fw_loopback
.subsections_via_symbols
