	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_get_beacon_state
_qlcnic_83xx_get_beacon_state:          ## @qlcnic_83xx_get_beacon_state
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	_QLCNIC_CMD_GET_LED_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_qlcnic_alloc_mbx_args
	testl	%eax, %eax
	je	LBB0_1
## %bb.7:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_err
	jmp	LBB0_8
LBB0_1:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qlcnic_issue_cmd
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	-24(%rbp), %rax
	movq	32(%rax), %rax
	movq	_QLCNIC_BEACON_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_QLC_83XX_BEACON_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_QLC_83XX_ENABLE_BEACON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movq	_QLC_83XX_BEACON_ON@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_8:
	leaq	-24(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_CMD_GET_LED_CONFIG,4,2  ## @QLCNIC_CMD_GET_LED_CONFIG
	.comm	_QLCNIC_BEACON_DISABLE,8,3      ## @QLCNIC_BEACON_DISABLE
	.comm	_QLC_83XX_BEACON_OFF,4,2        ## @QLC_83XX_BEACON_OFF
	.comm	_QLC_83XX_ENABLE_BEACON,8,3     ## @QLC_83XX_ENABLE_BEACON
	.comm	_QLC_83XX_BEACON_ON,4,2         ## @QLC_83XX_BEACON_ON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Get beacon state failed, err=%d\n"

	.no_dead_strip	_qlcnic_83xx_get_beacon_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_get_beacon_state
_qlcnic_83xx_get_beacon_state:          ; @qlcnic_83xx_get_beacon_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _QLCNIC_CMD_GET_LED_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_CMD_GET_LED_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_8
LBB0_2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #32]
Lloh5:
	adrp	x9, _QLCNIC_BEACON_DISABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QLCNIC_BEACON_DISABLE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _QLC_83XX_BEACON_OFF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QLC_83XX_BEACON_OFF@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x9, _QLC_83XX_ENABLE_BEACON@GOTPAGE
Lloh11:
	ldr	x9, [x9, _QLC_83XX_ENABLE_BEACON@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
Lloh13:
	adrp	x8, _QLC_83XX_BEACON_ON@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QLC_83XX_BEACON_ON@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_8:
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_CMD_GET_LED_CONFIG,4,2  ; @QLCNIC_CMD_GET_LED_CONFIG
	.comm	_QLCNIC_BEACON_DISABLE,8,3      ; @QLCNIC_BEACON_DISABLE
	.comm	_QLC_83XX_BEACON_OFF,4,2        ; @QLC_83XX_BEACON_OFF
	.comm	_QLC_83XX_ENABLE_BEACON,8,3     ; @QLC_83XX_ENABLE_BEACON
	.comm	_QLC_83XX_BEACON_ON,4,2         ; @QLC_83XX_BEACON_ON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Get beacon state failed, err=%d\n"

	.no_dead_strip	_qlcnic_83xx_get_beacon_state
.subsections_via_symbols
