	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcma_pmu_workarounds
_bcma_pmu_workarounds:                  ## @bcma_pmu_workarounds
	.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
	leal	-128(%rdx), %eax
	cmpl	$4, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	%rbx, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bcma_chipco_bcm4331_ext_pa_lines_ctl ## TAILCALL
LBB0_5:
	cmpl	$0, 4(%rdi)
	je	LBB0_6
## %bb.7:
	movq	_BCMA_CCTRL_43224B0_12MA_LED_DRIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bcma_debug                     ## TAILCALL
LBB0_2:
	movq	_BCMA_CCTRL_4313_12MA_LED_DRIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	_BCMA_CC_CHIPCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BCMA_CCTRL_43224_GPIO_TOGGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	notl	%edx
	movq	%rbx, %rdi
	callq	_bcma_cc_maskset32
	movq	_BCMA_CCTRL_43224A0_12MA_LED_DRIVE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movl	%ecx, %edx
	notl	%edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bcma_chipco_chipctl_maskset    ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_BCMA_CCTRL_4313_12MA_LED_DRIVE,4,2 ## @BCMA_CCTRL_4313_12MA_LED_DRIVE
	.comm	_BCMA_CC_CHIPCTL,4,2            ## @BCMA_CC_CHIPCTL
	.comm	_BCMA_CCTRL_43224_GPIO_TOGGLE,4,2 ## @BCMA_CCTRL_43224_GPIO_TOGGLE
	.comm	_BCMA_CCTRL_43224A0_12MA_LED_DRIVE,4,2 ## @BCMA_CCTRL_43224A0_12MA_LED_DRIVE
	.comm	_BCMA_CCTRL_43224B0_12MA_LED_DRIVE,4,2 ## @BCMA_CCTRL_43224B0_12MA_LED_DRIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Workarounds unknown or not needed for device 0x%04X\n"

	.no_dead_strip	_bcma_pmu_workarounds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcma_pmu_workarounds
_bcma_pmu_workarounds:                  ; @bcma_pmu_workarounds
	.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]
	sub	w8, w2, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcma_chipco_bcm4331_ext_pa_lines_ctl
LBB0_3:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_7
; %bb.4:
Lloh2:
	adrp	x8, _BCMA_CCTRL_43224B0_12MA_LED_DRIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BCMA_CCTRL_43224B0_12MA_LED_DRIVE@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcma_debug
LBB0_6:
Lloh6:
	adrp	x8, _BCMA_CCTRL_4313_12MA_LED_DRIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BCMA_CCTRL_4313_12MA_LED_DRIVE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _BCMA_CC_CHIPCTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BCMA_CC_CHIPCTL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _BCMA_CCTRL_43224_GPIO_TOGGLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BCMA_CCTRL_43224_GPIO_TOGGLE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mvn	w2, w3
	mov	x0, x19
	bl	_bcma_cc_maskset32
Lloh14:
	adrp	x8, _BCMA_CCTRL_43224A0_12MA_LED_DRIVE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BCMA_CCTRL_43224A0_12MA_LED_DRIVE@GOTPAGEOFF]
LBB0_8:
	ldr	w3, [x8]
	mvn	w2, w3
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcma_chipco_chipctl_maskset
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_BCMA_CCTRL_4313_12MA_LED_DRIVE,4,2 ; @BCMA_CCTRL_4313_12MA_LED_DRIVE
	.comm	_BCMA_CC_CHIPCTL,4,2            ; @BCMA_CC_CHIPCTL
	.comm	_BCMA_CCTRL_43224_GPIO_TOGGLE,4,2 ; @BCMA_CCTRL_43224_GPIO_TOGGLE
	.comm	_BCMA_CCTRL_43224A0_12MA_LED_DRIVE,4,2 ; @BCMA_CCTRL_43224A0_12MA_LED_DRIVE
	.comm	_BCMA_CCTRL_43224B0_12MA_LED_DRIVE,4,2 ; @BCMA_CCTRL_43224B0_12MA_LED_DRIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Workarounds unknown or not needed for device 0x%04X\n"

	.no_dead_strip	_bcma_pmu_workarounds
.subsections_via_symbols
