	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_validate_beacon
_qlcnic_validate_beacon:                ## @qlcnic_validate_beacon
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_LSB
	movq	%rax, (%r14)
	movl	%ebx, %edi
	callq	_MSB
	movq	%rax, (%r15)
	movq	_DRV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%r14), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	%rax, %r8
	callq	_QLCDB
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	___QLCNIC_MAX_LED_STATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_1:
	movq	___QLCNIC_MAX_LED_RATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	movq	___QLCNIC_MAX_LED_RATE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV,4,2                        ## @DRV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rate %x state %x\n"

	.comm	___QLCNIC_MAX_LED_RATE,8,3      ## @__QLCNIC_MAX_LED_RATE
	.comm	___QLCNIC_MAX_LED_STATE,8,3     ## @__QLCNIC_MAX_LED_STATE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qlcnic_validate_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_validate_beacon
_qlcnic_validate_beacon:                ; @qlcnic_validate_beacon
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_LSB
	str	x0, [x19]
	mov	x0, x21
	bl	_MSB
	mov	x4, x0
	str	x0, [x20]
Lloh0:
	adrp	x8, _DRV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x3, [x19]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_QLCDB
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.1:
Lloh5:
	adrp	x9, ___QLCNIC_MAX_LED_STATE@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___QLCNIC_MAX_LED_STATE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_5
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.3:
Lloh8:
	adrp	x9, ___QLCNIC_MAX_LED_RATE@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___QLCNIC_MAX_LED_RATE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
Lloh14:
	adrp	x8, ___QLCNIC_MAX_LED_RATE@GOTPAGE
Lloh15:
	ldr	x8, [x8, ___QLCNIC_MAX_LED_RATE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV,4,2                        ; @DRV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rate %x state %x\n"

	.comm	___QLCNIC_MAX_LED_RATE,8,3      ; @__QLCNIC_MAX_LED_RATE
	.comm	___QLCNIC_MAX_LED_STATE,8,3     ; @__QLCNIC_MAX_LED_STATE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qlcnic_validate_beacon
.subsections_via_symbols
