	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_set_led            ## -- Begin function qlcnic_83xx_set_led
	.p2align	4, 0x90
_qlcnic_83xx_set_led:                   ## @qlcnic_83xx_set_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_NON_PRIV_FUNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, %r12d
	negl	%r12d
	cmpl	$128, %ebx
	je	LBB0_12
## %bb.3:
	cmpl	$129, %ebx
	jne	LBB0_15
## %bb.4:
	movq	___QLCNIC_LED_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_12:
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_11
## %bb.13:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_qlcnic_83xx_config_led
	testl	%eax, %eax
	je	LBB0_11
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_18
LBB0_7:
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_8
## %bb.16:
	testl	%r13d, %r13d
	jne	LBB0_11
## %bb.17:
	xorl	%r12d, %r12d
	jmp	LBB0_18
LBB0_8:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_qlcnic_83xx_config_led
	testl	%eax, %eax
	je	LBB0_18
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
LBB0_10:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_netdev_err
LBB0_11:
	movq	___QLCNIC_LED_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
LBB0_18:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_NON_PRIV_FUNC,8,3       ## @QLCNIC_NON_PRIV_FUNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LED test is not supported in non-privileged mode\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	___QLCNIC_LED_ENABLE,4,2        ## @__QLCNIC_LED_ENABLE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	___QLCNIC_RESETTING,4,2         ## @__QLCNIC_RESETTING
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set LED blink state\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to reset LED blink state\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_set_led            ; -- Begin function qlcnic_83xx_set_led
	.p2align	2
_qlcnic_83xx_set_led:                   ; @qlcnic_83xx_set_led
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _QLCNIC_NON_PRIV_FUNC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_NON_PRIV_FUNC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_warn
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	mov	x19, x0
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
	neg	w21, w23
	cmp	w22, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w22, #129
	b.ne	LBB0_9
; %bb.4:
Lloh10:
	adrp	x8, ___QLCNIC_LED_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, ___QLCNIC_LED_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	w0, LBB0_11
; %bb.5:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh15:
	adrp	x8, ___QLCNIC_RESETTING@GOTPAGE
Lloh16:
	ldr	x8, [x8, ___QLCNIC_RESETTING@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbnz	w0, LBB0_17
; %bb.7:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_qlcnic_83xx_config_led
	mov	x21, x0
	cbz	w0, LBB0_17
; %bb.8:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_9:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_11:
Lloh22:
	adrp	x8, ___QLCNIC_RESETTING@GOTPAGE
Lloh23:
	ldr	x8, [x8, ___QLCNIC_RESETTING@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	w0, LBB0_14
; %bb.12:
	cbnz	w23, LBB0_17
; %bb.13:
	mov	w21, #0
	b	LBB0_18
LBB0_14:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_qlcnic_83xx_config_led
	mov	x21, x0
	cbz	w0, LBB0_18
; %bb.15:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_16:
	mov	x0, x20
	bl	_netdev_err
LBB0_17:
Lloh27:
	adrp	x8, ___QLCNIC_LED_ENABLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, ___QLCNIC_LED_ENABLE@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
LBB0_18:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_NON_PRIV_FUNC,8,3       ; @QLCNIC_NON_PRIV_FUNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LED test is not supported in non-privileged mode\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	___QLCNIC_LED_ENABLE,4,2        ; @__QLCNIC_LED_ENABLE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	___QLCNIC_RESETTING,4,2         ; @__QLCNIC_RESETTING
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set LED blink state\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to reset LED blink state\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
