	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_store_beacon
_qlcnic_83xx_store_beacon:              ## @qlcnic_83xx_store_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	callq	_qlcnic_get_beacon_state
	movq	(%r12), %rax
	cmpq	-40(%rbp), %rax
	je	LBB0_6
## %bb.8:
	xorl	%eax, %eax
	callq	_rtnl_lock
	cmpq	$0, (%r12)
	je	LBB0_11
LBB0_9:
	movq	-40(%rbp), %rdx
	movq	%r14, %rdi
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.10:
	movl	$1, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_14
LBB0_11:
	movq	___QLCNIC_LED_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_13:
	xorl	%esi, %esi
	movl	$1, %edx
LBB0_14:
	callq	_qlcnic_83xx_config_led
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	movq	(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_17
LBB0_16:
	movq	___QLCNIC_LED_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
LBB0_17:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	jmp	LBB0_6
LBB0_18:
	movq	-40(%rbp), %rax
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	___QLCNIC_RESETTING,4,2         ## @__QLCNIC_RESETTING
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	___QLCNIC_LED_ENABLE,4,2        ## @__QLCNIC_LED_ENABLE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_qlcnic_83xx_store_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_store_beacon
_qlcnic_83xx_store_beacon:              ; @qlcnic_83xx_store_beacon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, ___QLCNIC_RESETTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___QLCNIC_RESETTING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #2
	bl	_kstrtoul
	cbz	x0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	mov	x0, x20
	bl	_qlcnic_get_beacon_state
	ldr	x8, [x22]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.7:
	bl	_rtnl_lock
	ldr	x8, [x22]
	cbz	x8, LBB0_13
LBB0_8:
	ldr	x2, [sp, #8]
	cbz	x2, LBB0_15
; %bb.9:
	mov	x0, x20
	mov	w1, #1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_qlcnic_83xx_config_led
	cbz	w0, LBB0_16
LBB0_10:
	ldr	x8, [x22]
	cbnz	x8, LBB0_12
LBB0_11:
Lloh7:
	adrp	x8, ___QLCNIC_LED_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, ___QLCNIC_LED_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
LBB0_12:
	bl	_rtnl_unlock
	b	LBB0_5
LBB0_13:
Lloh10:
	adrp	x8, ___QLCNIC_LED_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, ___QLCNIC_LED_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_set_bit
	cbz	x0, LBB0_8
; %bb.14:
	bl	_rtnl_unlock
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_15:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	bl	_qlcnic_83xx_config_led
	cbnz	w0, LBB0_10
LBB0_16:
	ldr	x8, [sp, #8]
	str	x8, [x22]
	cbnz	x8, LBB0_12
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	___QLCNIC_RESETTING,4,2         ; @__QLCNIC_RESETTING
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	___QLCNIC_LED_ENABLE,4,2        ; @__QLCNIC_LED_ENABLE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_qlcnic_83xx_store_beacon
.subsections_via_symbols
