	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_get_ref_handle
_qlcnic_get_ref_handle:                 ## @qlcnic_get_ref_handle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movzwl	(%rax), %ecx
	movq	_PCI_DEVICE_ID_QLOGIC_QLE834X@GOTPCREL(%rip), %r8
	movq	_PCI_DEVICE_ID_QLOGIC_VF_QLE834X@GOTPCREL(%rip), %rdi
	shll	$15, %edx
	xorl	%eax, %eax
	cmpw	(%rdi), %cx
	cmovel	%edx, %eax
	cmpw	(%r8), %cx
	cmovel	%edx, %eax
	orl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DEVICE_ID_QLOGIC_QLE834X,2,1 ## @PCI_DEVICE_ID_QLOGIC_QLE834X
	.comm	_PCI_DEVICE_ID_QLOGIC_VF_QLE834X,2,1 ## @PCI_DEVICE_ID_QLOGIC_VF_QLE834X
	.no_dead_strip	_qlcnic_get_ref_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_get_ref_handle
_qlcnic_get_ref_handle:                 ; @qlcnic_get_ref_handle
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldrh	w8, [x8]
Lloh0:
	adrp	x9, _PCI_DEVICE_ID_QLOGIC_QLE834X@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_DEVICE_ID_QLOGIC_QLE834X@GOTPAGEOFF]
	ldrh	w9, [x9]
Lloh2:
	adrp	x10, _PCI_DEVICE_ID_QLOGIC_VF_QLE834X@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PCI_DEVICE_ID_QLOGIC_VF_QLE834X@GOTPAGEOFF]
	ldrh	w10, [x10]
	cmp	w8, w10
	ccmp	w8, w9, #4, ne
	lsl	w8, w2, #15
	csel	w8, w8, wzr, eq
	orr	w0, w8, w1
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DEVICE_ID_QLOGIC_QLE834X,2,1 ; @PCI_DEVICE_ID_QLOGIC_QLE834X
	.comm	_PCI_DEVICE_ID_QLOGIC_VF_QLE834X,2,1 ; @PCI_DEVICE_ID_QLOGIC_VF_QLE834X
	.no_dead_strip	_qlcnic_get_ref_handle
.subsections_via_symbols
