	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_82xx_get_nic_info       ## -- Begin function qlcnic_82xx_get_nic_info
	.p2align	4, 0x90
_qlcnic_82xx_get_nic_info:              ## @qlcnic_82xx_get_nic_info
	.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	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movl	$40, %esi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_QLCNIC_CMD_GET_NIC_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movq	%r14, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	-44(%rbp), %edi
	callq	_MSD
	movq	-56(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movl	-44(%rbp), %edi
	callq	_LSD
	movq	-56(%rbp), %rcx
	movl	%eax, 8(%rcx)
	shll	$16, %r13d
	orl	$40, %r13d
	movl	%r13d, 12(%rcx)
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %ebx
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_4
## %bb.5:
	movl	36(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, 72(%r15)
	movl	32(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, 64(%r15)
	movl	28(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, 56(%r15)
	movl	24(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, 48(%r15)
	movl	20(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, 40(%r15)
	movl	16(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, 32(%r15)
	movl	12(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, 24(%r15)
	movl	8(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, 16(%r15)
	movl	4(%r12), %edi
	callq	_le32_to_cpu
	movl	%eax, 8(%r15)
	movl	(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, (%r15)
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	leaq	-56(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_7:
	movq	(%r14), %rdi
	movl	-44(%rbp), %ecx
	movl	$40, %esi
	movq	%r12, %rdx
	callq	_dma_free_coherent
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLCNIC_CMD_GET_NIC_INFO,4,2    ## @QLCNIC_CMD_GET_NIC_INFO
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ## @QLCNIC_RCODE_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get nic info%d\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_82xx_get_nic_info       ; -- Begin function qlcnic_82xx_get_nic_info
	.p2align	2
_qlcnic_82xx_get_nic_info:              ; @qlcnic_82xx_get_nic_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	w1, #40
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _QLCNIC_CMD_GET_NIC_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_CMD_GET_NIC_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, sp
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	w0, [sp, #12]
	bl	_MSD
	ldr	x8, [sp]
	str	w0, [x8, #4]
	ldr	w0, [sp, #12]
	bl	_LSD
	ldr	x8, [sp]
	mov	w9, #40
	bfi	w9, w23, #16, #16
	stp	w0, w9, [x8, #8]
	mov	x1, sp
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	mov	x22, x0
Lloh6:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x20, #36]
	bl	_le16_to_cpu
	str	x0, [x21, #72]
	ldr	w0, [x20, #32]
	bl	_le16_to_cpu
	str	x0, [x21, #64]
	ldr	w0, [x20, #28]
	bl	_le16_to_cpu
	str	x0, [x21, #56]
	ldr	w0, [x20, #24]
	bl	_le16_to_cpu
	str	x0, [x21, #48]
	ldr	w0, [x20, #20]
	bl	_le16_to_cpu
	str	x0, [x21, #40]
	ldr	w0, [x20, #16]
	bl	_le16_to_cpu
	str	x0, [x21, #32]
	ldr	w0, [x20, #12]
	bl	_le16_to_cpu
	str	x0, [x21, #24]
	ldr	w0, [x20, #8]
	bl	_le16_to_cpu
	str	x0, [x21, #16]
	ldr	w0, [x20, #4]
	bl	_le32_to_cpu
	str	w0, [x21, #8]
	ldr	w0, [x20]
	bl	_le16_to_cpu
	str	x0, [x21]
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_5:
	ldr	x0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, sp
	bl	_qlcnic_free_mbx_args
LBB0_7:
	ldr	x0, [x19]
	ldr	w3, [sp, #12]
	mov	w1, #40
	mov	x2, x20
	bl	_dma_free_coherent
LBB0_8:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLCNIC_CMD_GET_NIC_INFO,4,2    ; @QLCNIC_CMD_GET_NIC_INFO
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ; @QLCNIC_RCODE_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get nic info%d\n"

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