	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcma_pmu_resources_init
_bcma_pmu_resources_init:               ## @bcma_pmu_resources_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	movl	(%rdi), %edx
	cmpl	$128, %edx
	jne	LBB0_1
## %bb.2:
	movq	_BCMA_CC_PMU_MINRES_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$8205, %edx                     ## imm = 0x200D
	callq	_bcma_cc_write32
	movq	_BCMA_CC_PMU_MAXRES_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_bcma_cc_write32
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	callq	_bcma_debug
LBB0_3:
	movl	$2, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mdelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PMU resource config unknown or not needed for device 0x%04X\n"

	.comm	_BCMA_CC_PMU_MINRES_MSK,4,2     ## @BCMA_CC_PMU_MINRES_MSK
	.comm	_BCMA_CC_PMU_MAXRES_MSK,4,2     ## @BCMA_CC_PMU_MAXRES_MSK
	.no_dead_strip	_bcma_pmu_resources_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcma_pmu_resources_init
_bcma_pmu_resources_init:               ; @bcma_pmu_resources_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	ldr	w2, [x0]
	cmp	w2, #128
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _BCMA_CC_PMU_MINRES_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCMA_CC_PMU_MINRES_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8205
	bl	_bcma_cc_write32
Lloh3:
	adrp	x8, _BCMA_CC_PMU_MAXRES_MSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCMA_CC_PMU_MAXRES_MSK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	bl	_bcma_cc_write32
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_bcma_debug
LBB0_3:
	mov	w0, #2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mdelay
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PMU resource config unknown or not needed for device 0x%04X\n"

	.comm	_BCMA_CC_PMU_MINRES_MSK,4,2     ; @BCMA_CC_PMU_MINRES_MSK
	.comm	_BCMA_CC_PMU_MAXRES_MSK,4,2     ; @BCMA_CC_PMU_MAXRES_MSK
	.no_dead_strip	_bcma_pmu_resources_init
.subsections_via_symbols
