	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_get_nic_info       ## -- Begin function qlcnic_83xx_get_nic_info
	.p2align	4, 0x90
_qlcnic_83xx_get_nic_info:              ## @qlcnic_83xx_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, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	movq	_QLCNIC_CMD_GET_NIC_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movl	%r12d, %eax
	shll	$16, %eax
	xorl	%ecx, %ecx
	cmpl	%r12d, (%r13)
	je	LBB0_3
## %bb.2:
	movq	_BIT_31@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_3:
	orl	%ecx, %eax
	movq	-48(%rbp), %rcx
	movl	%eax, 4(%rcx)
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_info
	jmp	LBB0_10
LBB0_5:
	movq	-56(%rbp), %rsi
	movl	4(%rsi), %eax
	movl	%eax, (%r14)
	movzwl	8(%rsi), %eax
	movl	%eax, 4(%r14)
	movzwl	10(%rsi), %eax
	movl	%eax, 8(%r14)
	movzwl	12(%rsi), %eax
	movl	%eax, 12(%r14)
	movzwl	14(%rsi), %eax
	movl	%eax, 16(%r14)
	movl	16(%rsi), %eax
	movl	%eax, 20(%r14)
	movzbl	20(%rsi), %eax
	movl	%eax, 24(%r14)
	movzwl	22(%rsi), %eax
	movl	%eax, 28(%r14)
	movzwl	24(%rsi), %eax
	movl	%eax, 32(%r14)
	movzwl	26(%rsi), %eax
	movl	%eax, 36(%r14)
	movzwl	28(%rsi), %eax
	movl	%eax, 40(%r14)
	movzwl	30(%rsi), %eax
	movl	%eax, 44(%r14)
	movl	32(%rsi), %eax
	testb	$1, %al
	je	LBB0_7
## %bb.6:
	shrl	%eax
	andl	$16383, %eax                    ## imm = 0x3FFF
	movl	%eax, 48(%r14)
	movl	32(%rsi), %eax
LBB0_7:
	testl	$65536, %eax                    ## imm = 0x10000
	je	LBB0_9
## %bb.8:
	shrl	$17, %eax
	andl	$16383, %eax                    ## imm = 0x3FFF
	movl	%eax, 52(%r14)
LBB0_9:
	movl	4(%r13), %edi
	addq	$64, %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_10:
	leaq	-56(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_CMD_GET_NIC_INFO,4,2    ## @QLCNIC_CMD_GET_NIC_INFO
	.comm	_BIT_31,4,2                     ## @BIT_31
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get nic info %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_get_nic_info       ; -- Begin function qlcnic_83xx_get_nic_info
	.p2align	2
_qlcnic_83xx_get_nic_info:              ; @qlcnic_83xx_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	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x8, _QLCNIC_CMD_GET_NIC_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_CMD_GET_NIC_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, sp
	mov	x1, x21
	bl	_qlcnic_alloc_mbx_args
	mov	x19, x0
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	w8, [x23]
Lloh3:
	adrp	x9, _BIT_31@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BIT_31@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w22
	csel	w8, wzr, w9, eq
	orr	w8, w8, w22, lsl #16
	ldr	x9, [sp, #8]
	str	w8, [x9, #4]
	mov	x1, sp
	mov	x0, x21
	bl	_qlcnic_issue_cmd
	mov	x19, x0
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x0, [x21]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_info
	b	LBB0_8
LBB0_3:
	ldr	x8, [sp]
	ldr	w9, [x8, #4]
	str	w9, [x20]
	ldrh	w9, [x8, #8]
	str	w9, [x20, #4]
	ldrh	w9, [x8, #10]
	str	w9, [x20, #8]
	ldrh	w9, [x8, #12]
	str	w9, [x20, #12]
	ldrh	w9, [x8, #14]
	str	w9, [x20, #16]
	ldr	w9, [x8, #16]
	str	w9, [x20, #20]
	ldrb	w9, [x8, #20]
	str	w9, [x20, #24]
	ldrh	w9, [x8, #22]
	str	w9, [x20, #28]
	ldrh	w9, [x8, #24]
	str	w9, [x20, #32]
	ldrh	w9, [x8, #26]
	str	w9, [x20, #36]
	ldrh	w9, [x8, #28]
	str	w9, [x20, #40]
	ldrh	w9, [x8, #30]
	str	w9, [x20, #44]
	ldr	w9, [x8, #32]
	tbz	w9, #0, LBB0_5
; %bb.4:
	ubfx	w9, w9, #1, #14
	str	w9, [x20, #48]
	ldr	w9, [x8, #32]
LBB0_5:
	tbz	w9, #16, LBB0_7
; %bb.6:
	ubfx	w9, w9, #17, #14
	str	w9, [x20, #52]
LBB0_7:
	ldr	w0, [x23, #4]
	add	x1, x8, #64
	mov	w2, #4
	bl	_memcpy
LBB0_8:
	mov	x0, sp
	bl	_qlcnic_free_mbx_args
LBB0_9:
	mov	x0, x19
	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 AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_CMD_GET_NIC_INFO,4,2    ; @QLCNIC_CMD_GET_NIC_INFO
	.comm	_BIT_31,4,2                     ; @BIT_31
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get nic info %d\n"

.subsections_via_symbols
