	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ipw_led_activity_on
___ipw_led_activity_on:                 ## @__ipw_led_activity_on
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CFG_NO_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movl	4(%rdi), %eax
	movq	_STATUS_RF_KILL_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_STATUS_LED_ACT_ON@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	jne	LBB0_4
## %bb.3:
	movq	_IPW_EVENT_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_ipw_read_reg32
	orl	12(%rbx), %eax
	movl	%eax, %edi
	callq	_ipw_register_toggle
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_LED
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_ipw_write_reg32
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_LED
	movl	(%r15), %eax
	orl	%eax, 4(%rbx)
LBB0_4:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_cancel_delayed_work
	movq	_LD_TIME_ACT_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_delayed_work          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG_NO_LED,4,2                 ## @CFG_NO_LED
	.comm	_STATUS_RF_KILL_MASK,4,2        ## @STATUS_RF_KILL_MASK
	.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 On\n"

	.comm	_LD_TIME_ACT_ON,4,2             ## @LD_TIME_ACT_ON
	.no_dead_strip	___ipw_led_activity_on
.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_on
___ipw_led_activity_on:                 ; @__ipw_led_activity_on
	.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
	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.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
Lloh3:
	adrp	x9, _STATUS_RF_KILL_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STATUS_RF_KILL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	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
LBB0_3:
Lloh6:
	adrp	x21, _STATUS_LED_ACT_ON@GOTPAGE
Lloh7:
	ldr	x21, [x21, _STATUS_LED_ACT_ON@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
Lloh8:
	adrp	x22, _IPW_EVENT_REG@GOTPAGE
Lloh9:
	ldr	x22, [x22, _IPW_EVENT_REG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ipw_read_reg32
	ldr	w8, [x19, #12]
	orr	w0, w8, w0
	bl	_ipw_register_toggle
	mov	x20, x0
	str	x20, [sp]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_LED
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_ipw_write_reg32
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_LED
	ldr	w8, [x21]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_5:
	add	x19, x19, #8
	mov	x0, x19
	bl	_cancel_delayed_work
Lloh14:
	adrp	x8, _LD_TIME_ACT_ON@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LD_TIME_ACT_ON@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	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
	add	sp, sp, #64
	b	_schedule_delayed_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_NO_LED,4,2                 ; @CFG_NO_LED
	.comm	_STATUS_RF_KILL_MASK,4,2        ; @STATUS_RF_KILL_MASK
	.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 On\n"

	.comm	_LD_TIME_ACT_ON,4,2             ; @LD_TIME_ACT_ON
	.no_dead_strip	___ipw_led_activity_on
.subsections_via_symbols
