	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_power_saving_ctl_bits ## -- Begin function b43legacy_power_saving_ctl_bits
	.p2align	4, 0x90
_b43legacy_power_saving_ctl_bits:       ## @b43legacy_power_saving_ctl_bits
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_B43legacy_MMIO_MACCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_b43legacy_read32
	movq	_B43legacy_MACCTL_HWPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_B43legacy_MACCTL_AWAKE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_b43legacy_write32
	movq	(%r14), %rax
	cmpl	$5, (%rax)
	jl	LBB0_4
## %bb.1:
	movl	$100, %ebx
	movq	_B43legacy_SHM_SHARED@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_b43legacy_shm_read32
	cmpl	$4, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_2
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_MMIO_MACCTL,4,2      ## @B43legacy_MMIO_MACCTL
	.comm	_B43legacy_MACCTL_HWPS,4,2      ## @B43legacy_MACCTL_HWPS
	.comm	_B43legacy_MACCTL_AWAKE,4,2     ## @B43legacy_MACCTL_AWAKE
	.comm	_B43legacy_SHM_SHARED,4,2       ## @B43legacy_SHM_SHARED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_power_saving_ctl_bits ; -- Begin function b43legacy_power_saving_ctl_bits
	.p2align	2
_b43legacy_power_saving_ctl_bits:       ; @b43legacy_power_saving_ctl_bits
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _B43legacy_MMIO_MACCTL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _B43legacy_MMIO_MACCTL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_b43legacy_read32
Lloh2:
	adrp	x8, _B43legacy_MACCTL_HWPS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _B43legacy_MACCTL_HWPS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh5:
	adrp	x9, _B43legacy_MACCTL_AWAKE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _B43legacy_MACCTL_AWAKE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_b43legacy_write32
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #5
	b.lt	LBB0_4
; %bb.1:
	mov	w20, #100
Lloh8:
	adrp	x21, _B43legacy_SHM_SHARED@GOTPAGE
Lloh9:
	ldr	x21, [x21, _B43legacy_SHM_SHARED@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #64
	bl	_b43legacy_shm_read32
	cmp	w0, #4
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w20, w20, #1
	b.ne	LBB0_2
LBB0_4:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_MMIO_MACCTL,4,2      ; @B43legacy_MMIO_MACCTL
	.comm	_B43legacy_MACCTL_HWPS,4,2      ; @B43legacy_MACCTL_HWPS
	.comm	_B43legacy_MACCTL_AWAKE,4,2     ; @B43legacy_MACCTL_AWAKE
	.comm	_B43legacy_SHM_SHARED,4,2       ; @B43legacy_SHM_SHARED
.subsections_via_symbols
