	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_leds_init                  ## -- Begin function b43_leds_init
	.p2align	4, 0x90
_b43_leds_init:                         ## @b43_leds_init
	.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	%rdi, %r15
	movq	(%rdi), %r14
	cmpq	$0, 96(%r14)
	je	LBB0_6
## %bb.1:
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_b43_is_hw_radio_enabled
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	80(%r14), %esi
	movl	84(%r14), %edx
	movq	%r15, %rdi
	callq	_b43_led_turn_on
	movl	$1, %esi
	jmp	LBB0_5
LBB0_4:
	movl	80(%r14), %esi
	movl	84(%r14), %edx
	movq	%r15, %rdi
	callq	_b43_led_turn_off
	xorl	%esi, %esi
LBB0_5:
	movl	%esi, 88(%r14)
	addq	$92, %r14
	movq	%r14, %rdi
	callq	_atomic_set
LBB0_6:
	movq	(%r15), %r14
	cmpq	$0, 72(%r14)
	je	LBB0_8
## %bb.7:
	movl	56(%r14), %esi
	movl	60(%r14), %edx
	movq	%r15, %rdi
	callq	_b43_led_turn_off
	movl	$0, 64(%r14)
	addq	$68, %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	(%r15), %r14
LBB0_8:
	cmpq	$0, 48(%r14)
	je	LBB0_10
## %bb.9:
	movl	32(%r14), %esi
	movl	36(%r14), %edx
	movq	%r15, %rdi
	callq	_b43_led_turn_off
	movl	$0, 40(%r14)
	addq	$44, %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	(%r15), %r14
LBB0_10:
	cmpq	$0, 24(%r14)
	je	LBB0_12
## %bb.11:
	movl	8(%r14), %esi
	movl	12(%r14), %edx
	movq	%r15, %rdi
	callq	_b43_led_turn_off
	movl	$0, 16(%r14)
	addq	$20, %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
LBB0_12:
	movq	_B43_MAX_NR_LEDS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	je	LBB0_19
## %bb.13:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r14
	leaq	-44(%rbp), %r12
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_b43_led_turn_on
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jae	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_b43_led_get_sprominfo
	movl	-48(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$129, %eax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_b43_led_turn_off
	jmp	LBB0_18
LBB0_19:
	movq	(%r15), %rax
	movq	$0, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_MAX_NR_LEDS,4,2            ## @B43_MAX_NR_LEDS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_leds_init                  ; -- Begin function b43_leds_init
	.p2align	2
_b43_leds_init:                         ; @b43_leds_init
	.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
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x8, [x20, #96]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_b43_is_hw_radio_enabled
	cbz	x0, LBB0_4
; %bb.3:
	ldp	w1, w2, [x20, #80]
	mov	x0, x19
	bl	_b43_led_turn_on
	mov	w1, #1
	b	LBB0_5
LBB0_4:
	ldp	w1, w2, [x20, #80]
	mov	x0, x19
	bl	_b43_led_turn_off
	mov	w1, #0
LBB0_5:
	str	w1, [x20, #88]
	add	x0, x20, #92
	bl	_atomic_set
LBB0_6:
	ldr	x20, [x19]
	ldr	x8, [x20, #72]
	cbz	x8, LBB0_8
; %bb.7:
	ldp	w1, w2, [x20, #56]
	mov	x0, x19
	bl	_b43_led_turn_off
	str	wzr, [x20, #64]
	add	x0, x20, #68
	mov	w1, #0
	bl	_atomic_set
	ldr	x20, [x19]
LBB0_8:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_10
; %bb.9:
	ldp	w1, w2, [x20, #32]
	mov	x0, x19
	bl	_b43_led_turn_off
	str	wzr, [x20, #40]
	add	x0, x20, #44
	mov	w1, #0
	bl	_atomic_set
	ldr	x20, [x19]
LBB0_10:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_12
; %bb.11:
	ldp	w1, w2, [x20, #8]
	mov	x0, x19
	bl	_b43_led_turn_off
	str	wzr, [x20, #16]
	add	x0, x20, #20
	mov	w1, #0
	bl	_atomic_set
LBB0_12:
Lloh0:
	adrp	x21, _B43_MAX_NR_LEDS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _B43_MAX_NR_LEDS@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_19
; %bb.13:
	mov	w20, #0
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_b43_led_turn_on
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.hs	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_b43_led_get_sprominfo
	ldr	w8, [sp, #12]
	cmp	w8, #128
	b.eq	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w8, #129
	b.ne	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_b43_led_turn_off
	b	LBB0_15
LBB0_19:
	ldr	x8, [x19]
	str	xzr, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_MAX_NR_LEDS,4,2            ; @B43_MAX_NR_LEDS
.subsections_via_symbols
