	.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_8
## %bb.1:
	movq	_QLCNIC_CMD_GET_LED_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_qlcnic_alloc_mbx_args
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_qlcnic_issue_cmd
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_12
LBB0_8:
	movq	_QLCNIC_CMD_SET_LED_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	_qlcnic_alloc_mbx_args
	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_10
## %bb.9:
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movq	24(%rcx), %rcx
	movq	%rcx, 32(%rax)
LBB0_10:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_12
LBB0_3:
	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), %r12
	movq	%r12, %rdi
	callq	_qlcnic_free_mbx_args
	movq	_QLC_83XX_LED_CONFIG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_LSW
	movl	%eax, %ebx
	shll	$16, %ebx
	movl	(%r13), %edi
	callq	_LSW
	orl	%ebx, %eax
	movslq	%eax, %rbx
	movq	_QLCNIC_CMD_SET_LED_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_qlcnic_alloc_mbx_args
	movq	-56(%rbp), %rax
	movq	%rbx, 8(%rax)
	movq	%rbx, 16(%rax)
	movq	%rbx, 24(%rax)
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	_QLC_83XX_ENABLE_BEACON@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 32(%rax)
LBB0_5:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qlcnic_issue_cmd
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_12:
	movq	(%r15), %rdi
	callq	_dev_err
LBB0_13:
	leaq	-56(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.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, #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	x20, x2
	mov	x19, x0
	cbz	x1, LBB0_3
; %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	x1, sp
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	cbz	w0, LBB0_7
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_3:
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
	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_5
; %bb.4:
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	ldr	x9, [x9, #24]
	str	x9, [x8, #32]
LBB0_5:
	mov	x1, sp
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.6:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_7:
	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	x22, _QLC_83XX_LED_CONFIG@GOTPAGE
Lloh11:
	ldr	x22, [x22, _QLC_83XX_LED_CONFIG@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_LSW
	mov	x21, x0
	ldr	w0, [x22]
	bl	_LSW
	orr	w8, w0, w21, lsl #16
	sxtw	x21, w8
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
	ldr	x8, [sp]
	stp	x21, x21, [x8, #8]
	str	x21, [x8, #24]
	cbz	x20, LBB0_9
; %bb.8:
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_9:
	mov	x1, sp
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.10:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	ldr	x0, [x19]
	bl	_dev_err
LBB0_12:
	mov	x0, sp
	bl	_qlcnic_free_mbx_args
	mov	x0, x21
	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
	.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
