	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_power_saving_ctl_bits      ## -- Begin function b43_power_saving_ctl_bits
	.p2align	4, 0x90
_b43_power_saving_ctl_bits:             ## @b43_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	%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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_B43_PS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	setne	%al
	movq	_B43_PS_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%esi, %ecx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_B43_WARN_ON
	movq	_B43_PS_AWAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%al
	movq	_B43_PS_ASLEEP@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_B43_WARN_ON
	movq	_B43_MMIO_MACCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_b43_read32
	movq	_B43_MACCTL_HWPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_B43_MACCTL_AWAKE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_b43_write32
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_b43_read32
	movq	(%r14), %rax
	cmpl	$5, (%rax)
	jl	LBB0_4
## %bb.1:
	movl	$100, %ebx
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %r15
	movq	_B43_SHM_SH_UCODESTAT@GOTPCREL(%rip), %r12
	movq	_B43_SHM_SH_UCODESTAT_SLEEP@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_b43_shm_read16
	cmpq	(%r13), %rax
	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	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_PS_ENABLED,4,2             ## @B43_PS_ENABLED
	.comm	_B43_PS_DISABLED,4,2            ## @B43_PS_DISABLED
	.comm	_B43_PS_AWAKE,4,2               ## @B43_PS_AWAKE
	.comm	_B43_PS_ASLEEP,4,2              ## @B43_PS_ASLEEP
	.comm	_B43_MMIO_MACCTL,4,2            ## @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_HWPS,4,2            ## @B43_MACCTL_HWPS
	.comm	_B43_MACCTL_AWAKE,4,2           ## @B43_MACCTL_AWAKE
	.comm	_B43_SHM_SHARED,4,2             ## @B43_SHM_SHARED
	.comm	_B43_SHM_SH_UCODESTAT,4,2       ## @B43_SHM_SH_UCODESTAT
	.comm	_B43_SHM_SH_UCODESTAT_SLEEP,8,3 ## @B43_SHM_SH_UCODESTAT_SLEEP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_power_saving_ctl_bits      ; -- Begin function b43_power_saving_ctl_bits
	.p2align	2
_b43_power_saving_ctl_bits:             ; @b43_power_saving_ctl_bits
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _B43_PS_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_PS_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	cset	w8, ne
Lloh3:
	adrp	x9, _B43_PS_DISABLED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _B43_PS_DISABLED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w1
	cset	w9, ne
	and	w0, w8, w9
	bl	_B43_WARN_ON
Lloh6:
	adrp	x8, _B43_PS_AWAKE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43_PS_AWAKE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w8, ne
Lloh9:
	adrp	x9, _B43_PS_ASLEEP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _B43_PS_ASLEEP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w20
	cset	w9, ne
	and	w0, w8, w9
	bl	_B43_WARN_ON
Lloh12:
	adrp	x20, _B43_MMIO_MACCTL@GOTPAGE
Lloh13:
	ldr	x20, [x20, _B43_MMIO_MACCTL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_b43_read32
Lloh14:
	adrp	x8, _B43_MACCTL_HWPS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _B43_MACCTL_HWPS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh17:
	adrp	x9, _B43_MACCTL_AWAKE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _B43_MACCTL_AWAKE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_b43_write32
	ldr	w1, [x20]
	mov	x0, x19
	bl	_b43_read32
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #5
	b.lt	LBB0_4
; %bb.1:
	mov	w20, #100
Lloh20:
	adrp	x21, _B43_SHM_SHARED@GOTPAGE
Lloh21:
	ldr	x21, [x21, _B43_SHM_SHARED@GOTPAGEOFF]
Lloh22:
	adrp	x22, _B43_SHM_SH_UCODESTAT@GOTPAGE
Lloh23:
	ldr	x22, [x22, _B43_SHM_SH_UCODESTAT@GOTPAGEOFF]
Lloh24:
	adrp	x23, _B43_SHM_SH_UCODESTAT_SLEEP@GOTPAGE
Lloh25:
	ldr	x23, [x23, _B43_SHM_SH_UCODESTAT_SLEEP@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_b43_shm_read16
	ldr	x8, [x23]
	cmp	x0, x8
	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, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_PS_ENABLED,4,2             ; @B43_PS_ENABLED
	.comm	_B43_PS_DISABLED,4,2            ; @B43_PS_DISABLED
	.comm	_B43_PS_AWAKE,4,2               ; @B43_PS_AWAKE
	.comm	_B43_PS_ASLEEP,4,2              ; @B43_PS_ASLEEP
	.comm	_B43_MMIO_MACCTL,4,2            ; @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_HWPS,4,2            ; @B43_MACCTL_HWPS
	.comm	_B43_MACCTL_AWAKE,4,2           ; @B43_MACCTL_AWAKE
	.comm	_B43_SHM_SHARED,4,2             ; @B43_SHM_SHARED
	.comm	_B43_SHM_SH_UCODESTAT,4,2       ; @B43_SHM_SH_UCODESTAT
	.comm	_B43_SHM_SH_UCODESTAT_SLEEP,8,3 ; @B43_SHM_SH_UCODESTAT_SLEEP
.subsections_via_symbols
