	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_config_led         ## -- Begin function qlcnic_83xx_config_led
	.p2align	4, 0x90
_qlcnic_83xx_config_led:                ## @qlcnic_83xx_config_led
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	movq	_QLCNIC_CMD_GET_LED_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.2:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qlcnic_issue_cmd
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_15
LBB0_10:
	movq	_QLCNIC_CMD_SET_LED_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	-56(%rbp), %rax
	movq	%rcx, 8(%rax)
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx), %rcx
	movq	%rcx, 16(%rax)
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movq	16(%rcx), %rcx
	movq	%rcx, 24(%rax)
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movq	24(%rcx), %rcx
	movq	%rcx, 32(%rax)
LBB0_13:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
LBB0_15:
	movq	(%r15), %rdi
	callq	_dev_err
LBB0_16:
	leaq	-56(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-48(%rbp), %rax
	movq	8(%rax), %rax
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	-48(%rbp), %rax
	movq	16(%rax), %rax
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	-48(%rbp), %rax
	movq	24(%rax), %rcx
	movq	8(%r15), %rdx
	movq	(%rdx), %rdx
	movq	%rcx, 16(%rdx)
	movq	32(%rax), %rax
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 24(%rcx)
	leaq	-56(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
	movq	_QLC_83XX_LED_CONFIG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_LSW
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_LSW
	movl	%eax, %r13d
	movq	_QLCNIC_CMD_SET_LED_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.5:
	shll	$16, %r12d
	orl	%r12d, %r13d
	movslq	%r13d, %rcx
	movq	-56(%rbp), %rax
	movq	%rcx, 8(%rax)
	movq	%rcx, 16(%rax)
	movq	%rcx, 24(%rax)
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	_QLC_83XX_ENABLE_BEACON@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%rax)
LBB0_7:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qlcnic_issue_cmd
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_15
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_CMD_GET_LED_CONFIG,4,2  ## @QLCNIC_CMD_GET_LED_CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Get led config failed.\n"

	.comm	_QLC_83XX_LED_CONFIG,4,2        ## @QLC_83XX_LED_CONFIG
	.comm	_QLCNIC_CMD_SET_LED_CONFIG,4,2  ## @QLCNIC_CMD_SET_LED_CONFIG
	.comm	_QLC_83XX_ENABLE_BEACON,8,3     ## @QLC_83XX_ENABLE_BEACON
L_.str.1:                               ## @.str.1
	.asciz	"Set led config failed.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Restoring led config failed.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_config_led         ; -- Begin function qlcnic_83xx_config_led
	.p2align	2
_qlcnic_83xx_config_led:                ; @qlcnic_83xx_config_led
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x0
	cbz	x1, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _QLCNIC_CMD_GET_LED_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_CMD_GET_LED_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, sp
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.2:
	mov	x1, sp
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	cbz	w0, LBB0_9
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_4:
Lloh5:
	adrp	x8, _QLCNIC_CMD_SET_LED_CONFIG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_CMD_SET_LED_CONFIG@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, sp
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x8]
	ldr	x8, [sp]
	str	x9, [x8, #8]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	ldr	x9, [x9, #8]
	str	x9, [x8, #16]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	ldr	x9, [x9, #16]
	str	x9, [x8, #24]
	cbz	x20, LBB0_7
; %bb.6:
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	ldr	x9, [x9, #24]
	str	x9, [x8, #32]
LBB0_7:
	mov	x1, sp
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	mov	x21, x0
	cbz	w0, LBB0_15
; %bb.8:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_9:
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #8]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	str	x8, [x9]
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #16]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	str	x8, [x9, #8]
	ldr	x8, [sp, #8]
	ldr	x9, [x8, #24]
	ldr	x10, [x19, #8]
	ldr	x10, [x10]
	str	x9, [x10, #16]
	ldr	x8, [x8, #32]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	str	x8, [x9, #24]
	mov	x0, sp
	bl	_qlcnic_free_mbx_args
Lloh10:
	adrp	x21, _QLC_83XX_LED_CONFIG@GOTPAGE
Lloh11:
	ldr	x21, [x21, _QLC_83XX_LED_CONFIG@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_LSW
	mov	x22, x0
	ldr	w0, [x21]
	bl	_LSW
	mov	x23, x0
Lloh12:
	adrp	x8, _QLCNIC_CMD_SET_LED_CONFIG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QLCNIC_CMD_SET_LED_CONFIG@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, sp
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.10:
	orr	w9, w23, w22, lsl #16
	ldr	x8, [sp]
	sxtw	x9, w9
	stp	x9, x9, [x8, #8]
	str	x9, [x8, #24]
	cbz	x20, LBB0_12
; %bb.11:
Lloh15:
	adrp	x9, _QLC_83XX_ENABLE_BEACON@GOTPAGE
Lloh16:
	ldr	x9, [x9, _QLC_83XX_ENABLE_BEACON@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	str	x9, [x8, #32]
LBB0_12:
	mov	x1, sp
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	mov	x21, x0
	cbz	w0, LBB0_15
; %bb.13:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_14:
	ldr	x0, [x19]
	bl	_dev_err
LBB0_15:
	mov	x0, sp
	bl	_qlcnic_free_mbx_args
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_CMD_GET_LED_CONFIG,4,2  ; @QLCNIC_CMD_GET_LED_CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Get led config failed.\n"

	.comm	_QLC_83XX_LED_CONFIG,4,2        ; @QLC_83XX_LED_CONFIG
	.comm	_QLCNIC_CMD_SET_LED_CONFIG,4,2  ; @QLCNIC_CMD_SET_LED_CONFIG
	.comm	_QLC_83XX_ENABLE_BEACON,8,3     ; @QLC_83XX_ENABLE_BEACON
l_.str.1:                               ; @.str.1
	.asciz	"Set led config failed.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Restoring led config failed.\n"

.subsections_via_symbols
