	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sysfs_validate_crb
_qlcnic_sysfs_validate_crb:             ## @qlcnic_sysfs_validate_crb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_QLCNIC_DIAG_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	_QLCNIC_PCI_CRBSPACE@GOTPCREL(%rip), %rax
	movl	$4, %ecx
	cmpq	%rsi, (%rax)
	jbe	LBB0_4
## %bb.3:
	movq	_QLCNIC_PCI_CAMQM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QLCNIC_PCI_CAMQM_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ADDR_IN_RANGE
	movl	$8, %ecx
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	cmpq	%rbx, %rcx
	jne	LBB0_7
## %bb.5:
	decq	%rbx
	testq	%r14, %rbx
	je	LBB0_6
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_DIAG_ENABLED,4,2        ## @QLCNIC_DIAG_ENABLED
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_PCI_CRBSPACE,8,3        ## @QLCNIC_PCI_CRBSPACE
	.comm	_QLCNIC_PCI_CAMQM,4,2           ## @QLCNIC_PCI_CAMQM
	.comm	_QLCNIC_PCI_CAMQM_END,4,2       ## @QLCNIC_PCI_CAMQM_END
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qlcnic_sysfs_validate_crb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sysfs_validate_crb
_qlcnic_sysfs_validate_crb:             ; @qlcnic_sysfs_validate_crb
	.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	w8, [x0]
Lloh0:
	adrp	x9, _QLCNIC_DIAG_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_DIAG_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x19, x1
Lloh3:
	adrp	x8, _QLCNIC_PCI_CRBSPACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_PCI_CRBSPACE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ls	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _QLCNIC_PCI_CAMQM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLCNIC_PCI_CAMQM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _QLCNIC_PCI_CAMQM_END@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLCNIC_PCI_CAMQM_END@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ADDR_IN_RANGE
	cbz	x0, LBB0_7
; %bb.3:
	mov	w8, #8
	cmp	x8, x20
	b.eq	LBB0_6
	b	LBB0_7
LBB0_4:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	w8, #4
	cmp	x8, x20
	b.ne	LBB0_7
LBB0_6:
	sub	x8, x20, #1
	tst	x8, x19
	b.eq	LBB0_10
LBB0_7:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_DIAG_ENABLED,4,2        ; @QLCNIC_DIAG_ENABLED
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_PCI_CRBSPACE,8,3        ; @QLCNIC_PCI_CRBSPACE
	.comm	_QLCNIC_PCI_CAMQM,4,2           ; @QLCNIC_PCI_CAMQM
	.comm	_QLCNIC_PCI_CAMQM_END,4,2       ; @QLCNIC_PCI_CAMQM_END
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qlcnic_sysfs_validate_crb
.subsections_via_symbols
