	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_led_activity_off
_ipw_led_activity_off:                  ## @ipw_led_activity_off
	.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
	movq	_CFG_NO_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_STATUS_LED_ACT_ON@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_IPW_EVENT_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ipw_read_reg32
	andl	12(%rbx), %eax
	movl	%eax, %edi
	callq	_ipw_register_toggle
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_LED
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ipw_write_reg32
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_LED
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
LBB0_3:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG_NO_LED,4,2                 ## @CFG_NO_LED
	.comm	_STATUS_LED_ACT_ON,4,2          ## @STATUS_LED_ACT_ON
	.comm	_IPW_EVENT_REG,4,2              ## @IPW_EVENT_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reg: 0x%08X\n"

L_.str.1:                               ## @.str.1
	.asciz	"Activity LED Off\n"

	.no_dead_strip	_ipw_led_activity_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_led_activity_off
_ipw_led_activity_off:                  ; @ipw_led_activity_off
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _CFG_NO_LED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CFG_NO_LED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x22, _STATUS_LED_ACT_ON@GOTPAGE
Lloh4:
	ldr	x22, [x22, _STATUS_LED_ACT_ON@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh5:
	adrp	x23, _IPW_EVENT_REG@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IPW_EVENT_REG@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ipw_read_reg32
	ldr	w8, [x19, #12]
	and	w0, w8, w0
	bl	_ipw_register_toggle
	mov	x21, x0
	str	x21, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_LED
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_ipw_write_reg32
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_LED
	ldr	w8, [x22]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
LBB0_4:
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_NO_LED,4,2                 ; @CFG_NO_LED
	.comm	_STATUS_LED_ACT_ON,4,2          ; @STATUS_LED_ACT_ON
	.comm	_IPW_EVENT_REG,4,2              ; @IPW_EVENT_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reg: 0x%08X\n"

l_.str.1:                               ; @.str.1
	.asciz	"Activity LED Off\n"

	.no_dead_strip	_ipw_led_activity_off
.subsections_via_symbols
