	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_mac_enable                 ## -- Begin function b43_mac_enable
	.p2align	4, 0x90
_b43_mac_enable:                        ## @b43_mac_enable
	.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, %rbx
	movq	_B43_DBG_FIRMWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_b43_debug
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_SHM_SH_UCODESTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_b43_shm_read16
	movq	_B43_SHM_SH_UCODESTAT_SUSP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_B43_SHM_SH_UCODESTAT_SLEEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_b43err
LBB0_4:
	movq	(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setle	%dil
	callq	_B43_WARN_ON
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_B43_MMIO_MACCTL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_B43_MACCTL_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_b43_maskset32
	movq	_B43_MMIO_GEN_IRQ_REASON@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_B43_IRQ_MAC_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_b43_write32
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_b43_read32
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_b43_read32
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_power_saving_ctl_bits      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_DBG_FIRMWARE,4,2           ## @B43_DBG_FIRMWARE
	.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_SUSP,8,3  ## @B43_SHM_SH_UCODESTAT_SUSP
	.comm	_B43_SHM_SH_UCODESTAT_SLEEP,8,3 ## @B43_SHM_SH_UCODESTAT_SLEEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"b43_mac_enable(): The firmware should be suspended, but current state is %u\n"

	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_mac_enable                 ; -- Begin function b43_mac_enable
	.p2align	2
_b43_mac_enable:                        ; @b43_mac_enable
	.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	x8, _B43_DBG_FIRMWARE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_DBG_FIRMWARE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_b43_debug
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _B43_SHM_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_SHM_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _B43_SHM_SH_UCODESTAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43_SHM_SH_UCODESTAT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43_shm_read16
Lloh9:
	adrp	x8, _B43_SHM_SH_UCODESTAT_SUSP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B43_SHM_SH_UCODESTAT_SUSP@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _B43_SHM_SH_UCODESTAT_SLEEP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _B43_SHM_SH_UCODESTAT_SLEEP@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_3
; %bb.2:
	mov	x2, x0
	ldr	w0, [x19, #8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
LBB0_3:
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	cset	w0, lt
	bl	_B43_WARN_ON
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.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
LBB0_5:
Lloh17:
	adrp	x20, _B43_MMIO_MACCTL@GOTPAGE
Lloh18:
	ldr	x20, [x20, _B43_MMIO_MACCTL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh19:
	adrp	x8, _B43_MACCTL_ENABLED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _B43_MACCTL_ENABLED@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_b43_maskset32
Lloh22:
	adrp	x21, _B43_MMIO_GEN_IRQ_REASON@GOTPAGE
Lloh23:
	ldr	x21, [x21, _B43_MMIO_GEN_IRQ_REASON@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh24:
	adrp	x8, _B43_IRQ_MAC_SUSPENDED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _B43_IRQ_MAC_SUSPENDED@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43_write32
	ldr	w1, [x20]
	mov	x0, x19
	bl	_b43_read32
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43_read32
	mov	x0, x19
	mov	w1, #0
	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
	b	_b43_power_saving_ctl_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_DBG_FIRMWARE,4,2           ; @B43_DBG_FIRMWARE
	.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_SUSP,8,3  ; @B43_SHM_SH_UCODESTAT_SUSP
	.comm	_B43_SHM_SH_UCODESTAT_SLEEP,8,3 ; @B43_SHM_SH_UCODESTAT_SLEEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"b43_mac_enable(): The firmware should be suspended, but current state is %u\n"

	.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
.subsections_via_symbols
