	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_QLCNIC_CMD_GET_NIC_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qlcnic_alloc_mbx_args
	movq	8(%rbx), %rdx
	movl	%r12d, %eax
	shll	$16, %eax
	xorl	%ecx, %ecx
	cmpl	%r12d, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_BIT_31@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	orl	%ecx, %eax
	movq	-40(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qlcnic_issue_cmd
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_info
	jmp	LBB0_8
LBB0_4:
	movq	-48(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%ecx, (%r15)
	movzwl	8(%rax), %ecx
	movl	%ecx, 4(%r15)
	movzwl	10(%rax), %ecx
	movl	%ecx, 8(%r15)
	movzwl	12(%rax), %ecx
	movl	%ecx, 12(%r15)
	movzwl	14(%rax), %ecx
	movl	%ecx, 16(%r15)
	movl	16(%rax), %ecx
	movl	%ecx, 20(%r15)
	movzbl	20(%rax), %ecx
	movl	%ecx, 24(%r15)
	movzwl	22(%rax), %ecx
	movl	%ecx, 28(%r15)
	movzwl	24(%rax), %ecx
	movl	%ecx, 32(%r15)
	movzwl	26(%rax), %ecx
	movl	%ecx, 36(%r15)
	movzwl	28(%rax), %ecx
	movl	%ecx, 40(%r15)
	movzwl	30(%rax), %ecx
	movl	%ecx, 44(%r15)
	movl	32(%rax), %ecx
	testb	$1, %cl
	je	LBB0_6
## %bb.5:
	shrl	%ecx
	andl	$16383, %ecx                    ## imm = 0x3FFF
	movl	%ecx, 48(%r15)
	movl	32(%rax), %ecx
LBB0_6:
	testl	$65536, %ecx                    ## imm = 0x10000
	je	LBB0_8
## %bb.7:
	shrl	$17, %ecx
	andl	$16383, %ecx                    ## imm = 0x3FFF
	movl	%ecx, 52(%r15)
LBB0_8:
	leaq	-48(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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, #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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
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
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BIT_31@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BIT_31@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w20
	csel	w8, wzr, w9, eq
	orr	w8, w8, w20, lsl #16
	ldr	x9, [sp, #8]
	str	w8, [x9, #4]
	mov	x1, sp
	mov	x0, x21
	bl	_qlcnic_issue_cmd
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x21]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_info
	b	LBB0_6
LBB0_2:
	ldr	x8, [sp]
	ldr	w9, [x8, #4]
	str	w9, [x19]
	ldrh	w9, [x8, #8]
	str	w9, [x19, #4]
	ldrh	w9, [x8, #10]
	str	w9, [x19, #8]
	ldrh	w9, [x8, #12]
	str	w9, [x19, #12]
	ldrh	w9, [x8, #14]
	str	w9, [x19, #16]
	ldr	w9, [x8, #16]
	str	w9, [x19, #20]
	ldrb	w9, [x8, #20]
	str	w9, [x19, #24]
	ldrh	w9, [x8, #22]
	str	w9, [x19, #28]
	ldrh	w9, [x8, #24]
	str	w9, [x19, #32]
	ldrh	w9, [x8, #26]
	str	w9, [x19, #36]
	ldrh	w9, [x8, #28]
	str	w9, [x19, #40]
	ldrh	w9, [x8, #30]
	str	w9, [x19, #44]
	ldr	w9, [x8, #32]
	tbz	w9, #0, LBB0_4
; %bb.3:
	ubfx	w9, w9, #1, #14
	str	w9, [x19, #48]
	ldr	w9, [x8, #32]
LBB0_4:
	tbz	w9, #16, LBB0_6
; %bb.5:
	ubfx	w8, w9, #17, #14
	str	w8, [x19, #52]
LBB0_6:
	mov	x0, sp
	bl	_qlcnic_free_mbx_args
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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
