	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_mctrl_write
_brcms_c_mctrl_write:                   ## @brcms_c_mctrl_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%ebx, %ebx
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_MCTL_WAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	orl	24(%rdi), %ebx
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.3:
	movq	_MCTL_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_MCTL_INFRA@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_4:
	movl	(%rdi), %r14d
	movl	%ebx, %edi
	callq	_D11REGOFFS
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bcma_write32                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCTL_WAKE,4,2                  ## @MCTL_WAKE
	.comm	_MCTL_AP,4,2                    ## @MCTL_AP
	.comm	_MCTL_INFRA,4,2                 ## @MCTL_INFRA
	.no_dead_strip	_brcms_c_mctrl_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_mctrl_write
_brcms_c_mctrl_write:                   ; @brcms_c_mctrl_write
	.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
	ldr	w8, [x0, #24]
Lloh0:
	adrp	x9, _MCTL_WAKE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MCTL_WAKE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldp	x11, x10, [x0, #8]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w19, w9, w8
	cbz	x11, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MCTL_AP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCTL_AP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	w8, w19, w8
Lloh6:
	adrp	x9, _MCTL_INFRA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MCTL_INFRA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w19, w8, w9
LBB0_2:
	ldr	w20, [x0]
	mov	x0, x19
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcma_write32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MCTL_WAKE,4,2                  ; @MCTL_WAKE
	.comm	_MCTL_AP,4,2                    ; @MCTL_AP
	.comm	_MCTL_INFRA,4,2                 ; @MCTL_INFRA
	.no_dead_strip	_brcms_c_mctrl_write
.subsections_via_symbols
