	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_mac_enable           ## -- Begin function b43legacy_mac_enable
	.p2align	4, 0x90
_b43legacy_mac_enable:                  ## @b43legacy_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	(%rdi), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rdi)
	xorl	%edi, %edi
	testq	%rax, %rax
	setle	%dil
	callq	_B43legacy_WARN_ON
	xorl	%eax, %eax
	callq	_irqs_disabled
	movl	%eax, %edi
	callq	_B43legacy_WARN_ON
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_B43legacy_MMIO_MACCTL@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_b43legacy_read32
	movq	_B43legacy_MACCTL_ENABLED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_b43legacy_write32
	movq	_B43legacy_MMIO_GEN_IRQ_REASON@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_B43legacy_IRQ_MAC_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_b43legacy_write32
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_b43legacy_read32
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_b43legacy_read32
	movq	%rbx, %rdi
	movl	$-1, %esi
	movl	$-1, %edx
	callq	_b43legacy_power_saving_ctl_bits
	movq	16(%rbx), %rdi
	callq	_spin_lock_irq
	movq	_B43legacy_MMIO_GEN_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	callq	_b43legacy_write32
	movq	16(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_MMIO_MACCTL,4,2      ## @B43legacy_MMIO_MACCTL
	.comm	_B43legacy_MACCTL_ENABLED,4,2   ## @B43legacy_MACCTL_ENABLED
	.comm	_B43legacy_MMIO_GEN_IRQ_REASON,4,2 ## @B43legacy_MMIO_GEN_IRQ_REASON
	.comm	_B43legacy_IRQ_MAC_SUSPENDED,4,2 ## @B43legacy_IRQ_MAC_SUSPENDED
	.comm	_B43legacy_MMIO_GEN_IRQ_MASK,4,2 ## @B43legacy_MMIO_GEN_IRQ_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_mac_enable           ; -- Begin function b43legacy_mac_enable
	.p2align	2
_b43legacy_mac_enable:                  ; @b43legacy_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
	ldr	x8, [x0]
	subs	x8, x8, #1
	str	x8, [x0]
	cset	w0, lt
	bl	_B43legacy_WARN_ON
	bl	_irqs_disabled
	bl	_B43legacy_WARN_ON
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	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	x21, _B43legacy_MMIO_MACCTL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _B43legacy_MMIO_MACCTL@GOTPAGEOFF]
	ldr	w20, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_read32
Lloh2:
	adrp	x8, _B43legacy_MACCTL_ENABLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _B43legacy_MACCTL_ENABLED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_b43legacy_write32
Lloh5:
	adrp	x20, _B43legacy_MMIO_GEN_IRQ_REASON@GOTPAGE
Lloh6:
	ldr	x20, [x20, _B43legacy_MMIO_GEN_IRQ_REASON@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh7:
	adrp	x8, _B43legacy_IRQ_MAC_SUSPENDED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _B43legacy_IRQ_MAC_SUSPENDED@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43legacy_write32
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w1, [x20]
	mov	x0, x19
	bl	_b43legacy_read32
	mov	x0, x19
	mov	w1, #-1
	mov	w2, #-1
	bl	_b43legacy_power_saving_ctl_bits
	ldr	x0, [x19, #16]
	bl	_spin_lock_irq
Lloh10:
	adrp	x8, _B43legacy_MMIO_GEN_IRQ_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _B43legacy_MMIO_GEN_IRQ_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_b43legacy_write32
	ldr	x0, [x19, #16]
	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	_spin_unlock_irq
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_MMIO_MACCTL,4,2      ; @B43legacy_MMIO_MACCTL
	.comm	_B43legacy_MACCTL_ENABLED,4,2   ; @B43legacy_MACCTL_ENABLED
	.comm	_B43legacy_MMIO_GEN_IRQ_REASON,4,2 ; @B43legacy_MMIO_GEN_IRQ_REASON
	.comm	_B43legacy_IRQ_MAC_SUSPENDED,4,2 ; @B43legacy_IRQ_MAC_SUSPENDED
	.comm	_B43legacy_MMIO_GEN_IRQ_MASK,4,2 ; @B43legacy_MMIO_GEN_IRQ_MASK
.subsections_via_symbols
