	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_led_band_off
_ipw_led_band_off:                      ## @ipw_led_band_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	%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_2
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_EEPROM_NIC_TYPE_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_IPW_EVENT_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_ipw_read_reg32
	andl	24(%rbx), %eax
	andl	20(%rbx), %eax
	movl	%eax, %edi
	callq	_ipw_register_toggle
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_IPW_DEBUG_LED
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ipw_write_reg32
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_IPW_EVENT_REG,4,2              ## @IPW_EVENT_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reg: 0x%08X\n"

	.no_dead_strip	_ipw_led_band_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_band_off
_ipw_led_band_off:                      ; @ipw_led_band_off
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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_3
; %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
; %bb.2:
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh6:
	adrp	x22, _IPW_EVENT_REG@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IPW_EVENT_REG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ipw_read_reg32
	ldp	w9, w8, [x19, #20]
	and	w8, w8, w0
	and	w0, w8, w9
	bl	_ipw_register_toggle
	mov	x21, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_IPW_DEBUG_LED
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_ipw_write_reg32
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.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	_IPW_EVENT_REG,4,2              ; @IPW_EVENT_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reg: 0x%08X\n"

	.no_dead_strip	_ipw_led_band_off
.subsections_via_symbols
