	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_mac_suspend                ## -- Begin function b43_mac_suspend
	.p2align	4, 0x90
_b43_mac_suspend:                       ## @b43_mac_suspend
	.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	%rdi, %r12
	xorl	%eax, %eax
	callq	_might_sleep
	movq	(%r12), %rdi
	shrq	$63, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_B43_WARN_ON
	cmpq	$0, (%r12)
	je	LBB0_1
LBB0_8:
	incq	(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_B43_PS_AWAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_b43_power_saving_ctl_bits
	movq	_B43_MMIO_MACCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_B43_MACCTL_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_b43_maskset32
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_b43_read32
	movl	$-35, %ebx
	movq	_B43_MMIO_GEN_IRQ_REASON@GOTPCREL(%rip), %r14
	movq	_B43_IRQ_MAC_SUSPENDED@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_b43_read32
	testl	%eax, (%r15)
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_udelay
	incl	%ebx
	jne	LBB0_2
## %bb.4:
	movl	$-40, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_b43_read32
	testl	%eax, (%r15)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	callq	_msleep
	incl	%ebx
	jne	LBB0_5
## %bb.7:
	movl	8(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43err
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_PS_AWAKE,4,2               ## @B43_PS_AWAKE
	.comm	_B43_MMIO_MACCTL,4,2            ## @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_ENABLED,4,2         ## @B43_MACCTL_ENABLED
	.comm	_B43_MMIO_GEN_IRQ_REASON,4,2    ## @B43_MMIO_GEN_IRQ_REASON
	.comm	_B43_IRQ_MAC_SUSPENDED,4,2      ## @B43_IRQ_MAC_SUSPENDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC suspend failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_mac_suspend                ; -- Begin function b43_mac_suspend
	.p2align	2
_b43_mac_suspend:                       ; @b43_mac_suspend
	.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
	bl	_might_sleep
	ldr	x8, [x19]
	lsr	x0, x8, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_B43_WARN_ON
	ldr	x8, [x19]
	cbz	x8, LBB0_2
LBB0_1:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	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
LBB0_2:
Lloh0:
	adrp	x8, _B43_PS_AWAKE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_PS_AWAKE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_power_saving_ctl_bits
Lloh3:
	adrp	x20, _B43_MMIO_MACCTL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _B43_MMIO_MACCTL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _B43_MACCTL_ENABLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _B43_MACCTL_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	x0, x19
	mov	w3, #0
	bl	_b43_maskset32
	ldr	w1, [x20]
	mov	x0, x19
	bl	_b43_read32
	mov	w22, #-35
Lloh8:
	adrp	x20, _B43_MMIO_GEN_IRQ_REASON@GOTPAGE
Lloh9:
	ldr	x20, [x20, _B43_MMIO_GEN_IRQ_REASON@GOTPAGEOFF]
Lloh10:
	adrp	x21, _B43_IRQ_MAC_SUSPENDED@GOTPAGE
Lloh11:
	ldr	x21, [x21, _B43_IRQ_MAC_SUSPENDED@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_b43_read32
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #10
	bl	_udelay
	adds	w22, w22, #1
	b.lo	LBB0_3
; %bb.5:
	mov	w22, #-40
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_b43_read32
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	bl	_msleep
	adds	w22, w22, #1
	b.lo	LBB0_6
; %bb.8:
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
	b	LBB0_1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_PS_AWAKE,4,2               ; @B43_PS_AWAKE
	.comm	_B43_MMIO_MACCTL,4,2            ; @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_ENABLED,4,2         ; @B43_MACCTL_ENABLED
	.comm	_B43_MMIO_GEN_IRQ_REASON,4,2    ; @B43_MMIO_GEN_IRQ_REASON
	.comm	_B43_IRQ_MAC_SUSPENDED,4,2      ; @B43_IRQ_MAC_SUSPENDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC suspend failed\n"

.subsections_via_symbols
