	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_mac_rcode          ## -- Begin function qlcnic_83xx_mac_rcode
	.p2align	4, 0x90
_qlcnic_83xx_mac_rcode:                 ## @qlcnic_83xx_mac_rcode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edi
	movl	$2, %esi
	callq	_QLCNIC_MBX_FW
	movl	%eax, %edi
	callq	_readl
	movslq	%eax, %rcx
	movq	_QLC_83XX_NO_NIC_RESOURCE@GOTPCREL(%rip), %rdx
	movq	_QLC_83XX_MAC_PRESENT@GOTPCREL(%rip), %rsi
	movq	_QLC_83XX_MAC_ABSENT@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %eax
	cmovel	%edi, %eax
	cmpq	%rcx, (%rsi)
	cmovel	%edi, %eax
	cmpq	%rcx, (%rdx)
	cmovel	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_NO_NIC_RESOURCE,8,3   ## @QLC_83XX_NO_NIC_RESOURCE
	.comm	_QLC_83XX_MAC_PRESENT,8,3       ## @QLC_83XX_MAC_PRESENT
	.comm	_QLC_83XX_MAC_ABSENT,8,3        ## @QLC_83XX_MAC_ABSENT
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ## @QLCNIC_RCODE_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_mac_rcode          ; -- Begin function qlcnic_83xx_mac_rcode
	.p2align	2
_qlcnic_83xx_mac_rcode:                 ; @qlcnic_83xx_mac_rcode
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w0, [x0]
	mov	w1, #2
	bl	_QLCNIC_MBX_FW
	bl	_readl
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
Lloh0:
	adrp	x9, _QLC_83XX_NO_NIC_RESOURCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLC_83XX_NO_NIC_RESOURCE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _QLC_83XX_MAC_PRESENT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _QLC_83XX_MAC_PRESENT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _QLC_83XX_MAC_ABSENT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _QLC_83XX_MAC_ABSENT@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x11, x8
	ccmp	x10, x8, #4, ne
	ccmp	x9, x8, #4, ne
Lloh9:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	csinc	w0, w8, wzr, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_NO_NIC_RESOURCE,8,3   ; @QLC_83XX_NO_NIC_RESOURCE
	.comm	_QLC_83XX_MAC_PRESENT,8,3       ; @QLC_83XX_MAC_PRESENT
	.comm	_QLC_83XX_MAC_ABSENT,8,3        ; @QLC_83XX_MAC_ABSENT
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ; @QLCNIC_RCODE_SUCCESS
.subsections_via_symbols
