	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_check_mac_rcode
_qlcnic_83xx_check_mac_rcode:           ## @qlcnic_83xx_check_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rsi), %rax
	movq	_QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	movl	$2, %esi
	callq	_QLCNIC_MBX_FW
	movl	%eax, %edi
	callq	_readl
	movq	_QLC_83XX_NO_NIC_RESOURCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_QLC_83XX_MAC_PRESENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_QLC_83XX_MAC_ABSENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_CMD_CONFIG_MAC_VLAN,8,3 ## @QLCNIC_CMD_CONFIG_MAC_VLAN
	.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
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qlcnic_83xx_check_mac_rcode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_check_mac_rcode
_qlcnic_83xx_check_mac_rcode:           ; @qlcnic_83xx_check_mac_rcode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	w0, [x0]
	mov	w1, #2
	bl	_QLCNIC_MBX_FW
	bl	_readl
Lloh3:
	adrp	x8, _QLC_83XX_NO_NIC_RESOURCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLC_83XX_NO_NIC_RESOURCE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _QLC_83XX_MAC_PRESENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _QLC_83XX_MAC_PRESENT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _QLC_83XX_MAC_ABSENT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _QLC_83XX_MAC_ABSENT@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	ccmp	x0, x10, #4, ne
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	str	w0, [x19, #8]
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_CMD_CONFIG_MAC_VLAN,8,3 ; @QLCNIC_CMD_CONFIG_MAC_VLAN
	.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
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qlcnic_83xx_check_mac_rcode
.subsections_via_symbols
