	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_led_band_on
_ipw_led_band_on:                       ## @ipw_led_band_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_9
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_EEPROM_NIC_TYPE_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	cmpq	$0, 32(%rbx)
	je	LBB0_9
## %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
	movl	%eax, %r15d
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	_IEEE_A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	orl	28(%rbx), %r15d
	andl	40(%rbx), %r15d
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_IEEE_G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	orl	28(%rbx), %r15d
	orl	20(%rbx), %r15d
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_7:
	andl	24(%rbx), %r15d
	orl	20(%rbx), %r15d
	leaq	L_.str.2(%rip), %rdi
LBB0_8:
	xorl	%eax, %eax
	callq	_IPW_DEBUG_LED
	movl	%r15d, %edi
	callq	_ipw_register_toggle
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	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
	.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
	.comm	_IEEE_A,8,3                     ## @IEEE_A
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mode LED On: 802.11a\n"

	.comm	_IEEE_G,8,3                     ## @IEEE_G
L_.str.1:                               ## @.str.1
	.asciz	"Mode LED On: 802.11g\n"

L_.str.2:                               ## @.str.2
	.asciz	"Mode LED On: 802.11b\n"

L_.str.3:                               ## @.str.3
	.asciz	"Reg: 0x%08X\n"

	.no_dead_strip	_ipw_led_band_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_band_on
_ipw_led_band_on:                       ; @ipw_led_band_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_5
; %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_5
; %bb.2:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.3:
	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
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _IEEE_A@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IEEE_A@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x19, #28]
	orr	w8, w8, w0
	ldr	w9, [x19, #40]
	and	w21, w8, w9
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_5:
	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_6:
Lloh13:
	adrp	x9, _IEEE_G@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IEEE_G@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x19, #28]
	orr	w8, w8, w0
	ldr	w9, [x19, #20]
	orr	w21, w8, w9
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldp	w9, w8, [x19, #20]
	and	w8, w8, w0
	orr	w21, w8, w9
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:
	bl	_IPW_DEBUG_LED
	mov	x0, x21
	bl	_ipw_register_toggle
	mov	x21, x0
	str	x21, [sp]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_IPW_DEBUG_LED
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_ipw_write_reg32
	mov	x0, x20
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.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
	.comm	_IEEE_A,8,3                     ; @IEEE_A
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mode LED On: 802.11a\n"

	.comm	_IEEE_G,8,3                     ; @IEEE_G
l_.str.1:                               ; @.str.1
	.asciz	"Mode LED On: 802.11g\n"

l_.str.2:                               ; @.str.2
	.asciz	"Mode LED On: 802.11b\n"

l_.str.3:                               ; @.str.3
	.asciz	"Reg: 0x%08X\n"

	.no_dead_strip	_ipw_led_band_on
.subsections_via_symbols
