	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_led_link_off
_ipw_led_link_off:                      ## @ipw_led_link_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)
	jne	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_EEPROM_NIC_TYPE_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	20(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_STATUS_LED_LINK_ON@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_6
## %bb.3:
	movq	_IPW_EVENT_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ipw_read_reg32
	andl	28(%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	16(%rbx), %eax
	movl	%eax, 16(%rbx)
	movq	_STATUS_RF_KILL_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.4:
	movq	_STATUS_ASSOCIATED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.5:
	addq	$24, %rbx
	movq	_LD_TIME_LINK_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_schedule_delayed_work
LBB0_6:
	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	_EEPROM_NIC_TYPE_1,8,3          ## @EEPROM_NIC_TYPE_1
	.comm	_STATUS_LED_LINK_ON,4,2         ## @STATUS_LED_LINK_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	"Link LED Off\n"

	.comm	_STATUS_RF_KILL_MASK,4,2        ## @STATUS_RF_KILL_MASK
	.comm	_STATUS_ASSOCIATED,4,2          ## @STATUS_ASSOCIATED
	.comm	_LD_TIME_LINK_OFF,4,2           ## @LD_TIME_LINK_OFF
	.no_dead_strip	_ipw_led_link_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_link_off
_ipw_led_link_off:                      ; @ipw_led_link_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.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _EEPROM_NIC_TYPE_1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EEPROM_NIC_TYPE_1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	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_3:
	add	x20, x19, #20
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #16]
Lloh6:
	adrp	x22, _STATUS_LED_LINK_ON@GOTPAGE
Lloh7:
	ldr	x22, [x22, _STATUS_LED_LINK_ON@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
Lloh8:
	adrp	x23, _IPW_EVENT_REG@GOTPAGE
Lloh9:
	ldr	x23, [x23, _IPW_EVENT_REG@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ipw_read_reg32
	ldr	w8, [x19, #28]
	and	w0, w8, w0
	bl	_ipw_register_toggle
	mov	x21, x0
	str	x21, [sp]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_LED
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	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, [x22]
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
	str	w8, [x19, #16]
Lloh14:
	adrp	x9, _STATUS_RF_KILL_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _STATUS_RF_KILL_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.5:
Lloh17:
	adrp	x9, _STATUS_ASSOCIATED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _STATUS_ASSOCIATED@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	add	x0, x19, #24
Lloh20:
	adrp	x8, _LD_TIME_LINK_OFF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LD_TIME_LINK_OFF@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_schedule_delayed_work
LBB0_7:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_NO_LED,4,2                 ; @CFG_NO_LED
	.comm	_EEPROM_NIC_TYPE_1,8,3          ; @EEPROM_NIC_TYPE_1
	.comm	_STATUS_LED_LINK_ON,4,2         ; @STATUS_LED_LINK_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	"Link LED Off\n"

	.comm	_STATUS_RF_KILL_MASK,4,2        ; @STATUS_RF_KILL_MASK
	.comm	_STATUS_ASSOCIATED,4,2          ; @STATUS_ASSOCIATED
	.comm	_LD_TIME_LINK_OFF,4,2           ; @LD_TIME_LINK_OFF
	.no_dead_strip	_ipw_led_link_off
.subsections_via_symbols
