	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcma_core_enable               ## -- Begin function bcma_core_enable
	.p2align	4, 0x90
_bcma_core_enable:                      ## @bcma_core_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_bcma_core_disable
	movq	_BCMA_IOCTL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_BCMA_IOCTL_CLK@GOTPCREL(%rip), %r12
	movq	_BCMA_IOCTL_FGC@GOTPCREL(%rip), %rax
	movl	(%r12), %edx
	orl	%r14d, %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_bcma_awrite32
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_bcma_aread32
	movq	_BCMA_RESET_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_bcma_awrite32
	movl	$1, %edi
	callq	_udelay
	movl	(%r15), %esi
	orl	(%r12), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_bcma_awrite32
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_bcma_aread32
	movl	$1, %edi
	callq	_udelay
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCMA_IOCTL,4,2                 ## @BCMA_IOCTL
	.comm	_BCMA_IOCTL_CLK,4,2             ## @BCMA_IOCTL_CLK
	.comm	_BCMA_IOCTL_FGC,4,2             ## @BCMA_IOCTL_FGC
	.comm	_BCMA_RESET_CTL,4,2             ## @BCMA_RESET_CTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcma_core_enable               ; -- Begin function bcma_core_enable
	.p2align	2
_bcma_core_enable:                      ; @bcma_core_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, x1
	mov	x20, x0
	bl	_bcma_core_disable
Lloh0:
	adrp	x21, _BCMA_IOCTL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BCMA_IOCTL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _BCMA_IOCTL_CLK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _BCMA_IOCTL_CLK@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh4:
	adrp	x9, _BCMA_IOCTL_FGC@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BCMA_IOCTL_FGC@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w8, w8, w19
	orr	w2, w8, w9
	mov	x0, x20
	bl	_bcma_awrite32
	ldr	w1, [x21]
	mov	x0, x20
	bl	_bcma_aread32
Lloh7:
	adrp	x8, _BCMA_RESET_CTL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BCMA_RESET_CTL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_bcma_awrite32
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x21]
	ldr	w8, [x22]
	orr	w2, w8, w19
	mov	x0, x20
	bl	_bcma_awrite32
	ldr	w1, [x21]
	mov	x0, x20
	bl	_bcma_aread32
	mov	w0, #1
	bl	_udelay
	mov	w0, #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
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BCMA_IOCTL,4,2                 ; @BCMA_IOCTL
	.comm	_BCMA_IOCTL_CLK,4,2             ; @BCMA_IOCTL_CLK
	.comm	_BCMA_IOCTL_FGC,4,2             ; @BCMA_IOCTL_FGC
	.comm	_BCMA_RESET_CTL,4,2             ; @BCMA_RESET_CTL
.subsections_via_symbols
