	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_set_led
_qlcnic_set_led:                        ## @qlcnic_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, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movl	(%rax), %r15d
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	%r13, %rdi
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qlcnic_83xx_set_led            ## TAILCALL
LBB0_2:
	movq	24(%r13), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_NON_PRIV_FUNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_4:
	cmpl	$128, %ebx
	je	LBB0_8
## %bb.5:
	cmpl	$129, %ebx
	jne	LBB0_10
## %bb.6:
	movq	___QLCNIC_LED_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r13), %rbx
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_13
## %bb.7:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_8:
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r13), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_15
LBB0_9:
	movb	$1, %bl
	jmp	LBB0_28
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_18
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_15:
	movq	___QLCNIC_DEV_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_22
LBB0_16:
	movq	16(%r13), %rax
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$15, %edx
	callq	*(%rax)
	movb	$1, %bl
	testl	%eax, %eax
	je	LBB0_28
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_21
LBB0_18:
	movq	___QLCNIC_DEV_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_24
LBB0_19:
	movq	16(%r13), %rax
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$15, %edx
	callq	*(%rax)
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_27
## %bb.20:
	leaq	L_.str.1(%rip), %rsi
LBB0_21:
	movq	8(%r13), %rdi
	callq	_dev_err
LBB0_28:
	movq	___QLCNIC_DIAG_RES_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r13
	movq	%r13, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_qlcnic_diag_free_res
LBB0_30:
	testl	%r12d, %r12d
	setne	%al
	orb	%al, %bl
	xorl	%eax, %eax
	cmpb	$1, %bl
	jne	LBB0_12
## %bb.31:
	movq	___QLCNIC_LED_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_clear_bit
	movl	%r12d, %eax
	jmp	LBB0_12
LBB0_22:
	movq	_QLCNIC_LED_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qlcnic_diag_alloc_res
	testl	%eax, %eax
	jne	LBB0_9
## %bb.26:
	movq	___QLCNIC_DIAG_RES_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	jmp	LBB0_16
LBB0_24:
	movq	_QLCNIC_LED_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qlcnic_diag_alloc_res
	testl	%eax, %eax
	jne	LBB0_14
## %bb.32:
	movq	___QLCNIC_DIAG_RES_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	jmp	LBB0_19
LBB0_27:
	xorl	%r12d, %r12d
	jmp	LBB0_28
	.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 not supported for non privilege function\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
	.comm	___QLCNIC_DEV_UP,4,2            ## @__QLCNIC_DEV_UP
	.comm	_QLCNIC_LED_TEST,4,2            ## @QLCNIC_LED_TEST
	.comm	___QLCNIC_DIAG_RES_ALLOC,4,2    ## @__QLCNIC_DIAG_RES_ALLOC
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
	.no_dead_strip	_qlcnic_set_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_set_led
_qlcnic_set_led:                        ; @qlcnic_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	x23, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x22, x0
	ldr	w21, [x0]
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_qlcnic_83xx_check
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x23
	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
	b	_qlcnic_83xx_set_led
LBB0_2:
	ldr	x8, [x22, #24]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _QLCNIC_NON_PRIV_FUNC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QLCNIC_NON_PRIV_FUNC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_warn
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	neg	w19, w19
	cmp	w23, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w23, #129
	b.ne	LBB0_10
; %bb.6:
Lloh10:
	adrp	x8, ___QLCNIC_LED_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, ___QLCNIC_LED_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x23, x22, #4
	mov	x1, x23
	bl	_test_and_set_bit
	cbz	w0, LBB0_13
; %bb.7:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh15:
	adrp	x8, ___QLCNIC_RESETTING@GOTPAGE
Lloh16:
	ldr	x8, [x8, ___QLCNIC_RESETTING@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x23, x22, #4
	mov	x1, x23
	bl	_test_bit
	cbz	w0, LBB0_15
LBB0_9:
	mov	w23, #1
	b	LBB0_22
LBB0_10:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh20:
	adrp	x8, ___QLCNIC_RESETTING@GOTPAGE
Lloh21:
	ldr	x8, [x8, ___QLCNIC_RESETTING@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cbz	w0, LBB0_18
LBB0_14:
	mov	w23, #0
	b	LBB0_22
LBB0_15:
Lloh23:
	adrp	x8, ___QLCNIC_DEV_UP@GOTPAGE
Lloh24:
	ldr	x8, [x8, ___QLCNIC_DEV_UP@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cbz	w0, LBB0_27
LBB0_16:
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #15
	blr	x8
	mov	w23, #1
	cbz	w0, LBB0_22
; %bb.17:
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_18:
Lloh28:
	adrp	x8, ___QLCNIC_DEV_UP@GOTPAGE
Lloh29:
	ldr	x8, [x8, ___QLCNIC_DEV_UP@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cbz	w0, LBB0_29
LBB0_19:
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	mov	x0, x22
	mov	w1, #1
	mov	w2, #15
	blr	x8
	cbz	w0, LBB0_31
; %bb.20:
	mov	w23, #0
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_21:
	ldr	x0, [x22, #8]
	bl	_dev_err
LBB0_22:
Lloh33:
	adrp	x8, ___QLCNIC_DIAG_RES_ALLOC@GOTPAGE
Lloh34:
	ldr	x8, [x8, ___QLCNIC_DIAG_RES_ALLOC@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	add	x22, x22, #4
	mov	x1, x22
	bl	_test_and_clear_bit
	cbz	x0, LBB0_24
; %bb.23:
	mov	x0, x20
	mov	x1, x21
	bl	_qlcnic_diag_free_res
LBB0_24:
	cmp	w19, #0
	cset	w8, ne
	orr	w8, w23, w8
	cmp	w8, #1
	b.ne	LBB0_26
; %bb.25:
Lloh36:
	adrp	x8, ___QLCNIC_LED_ENABLE@GOTPAGE
Lloh37:
	ldr	x8, [x8, ___QLCNIC_LED_ENABLE@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_clear_bit
	b	LBB0_12
LBB0_26:
	mov	w19, #0
	b	LBB0_12
LBB0_27:
Lloh39:
	adrp	x8, _QLCNIC_LED_TEST@GOTPAGE
Lloh40:
	ldr	x8, [x8, _QLCNIC_LED_TEST@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_qlcnic_diag_alloc_res
	cbnz	w0, LBB0_9
; %bb.28:
Lloh42:
	adrp	x8, ___QLCNIC_DIAG_RES_ALLOC@GOTPAGE
Lloh43:
	ldr	x8, [x8, ___QLCNIC_DIAG_RES_ALLOC@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_set_bit
	b	LBB0_16
LBB0_29:
Lloh45:
	adrp	x8, _QLCNIC_LED_TEST@GOTPAGE
Lloh46:
	ldr	x8, [x8, _QLCNIC_LED_TEST@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_qlcnic_diag_alloc_res
	cbnz	w0, LBB0_14
; %bb.30:
Lloh48:
	adrp	x8, ___QLCNIC_DIAG_RES_ALLOC@GOTPAGE
Lloh49:
	ldr	x8, [x8, ___QLCNIC_DIAG_RES_ALLOC@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_set_bit
	b	LBB0_19
LBB0_31:
	mov	w19, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.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 not supported for non privilege function\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
	.comm	___QLCNIC_DEV_UP,4,2            ; @__QLCNIC_DEV_UP
	.comm	_QLCNIC_LED_TEST,4,2            ; @QLCNIC_LED_TEST
	.comm	___QLCNIC_DIAG_RES_ALLOC,4,2    ; @__QLCNIC_DIAG_RES_ALLOC
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
	.no_dead_strip	_qlcnic_set_led
.subsections_via_symbols
