	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_coredisable
_brcms_c_coredisable:                   ## @brcms_c_coredisable
	.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
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movl	36(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_brcms_dbg_info
	movl	32(%rbx), %edi
	callq	_brcms_deviceremoved
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 24(%rbx)
	je	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	_OFF@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_wlc_phy_switch_radio
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_wlc_phy_anacore
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_brcms_b_core_phypll_ctl
	movl	$0, (%rbx)
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	callq	_bcma_core_disable
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wlc_phy_hw_clk_state_upd       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wl%d: disable core\n"

	.comm	_OFF,4,2                        ## @OFF
	.no_dead_strip	_brcms_c_coredisable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_coredisable
_brcms_c_coredisable:                   ; @brcms_c_coredisable
	.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	w0, [x0, #16]
	ldr	w2, [x19, #36]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcms_dbg_info
	ldr	w0, [x19, #32]
	bl	_brcms_deviceremoved
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh2:
	adrp	x20, _OFF@GOTPAGE
Lloh3:
	ldr	x20, [x20, _OFF@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_wlc_phy_switch_radio
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_wlc_phy_anacore
	mov	x0, x19
	mov	w1, #0
	bl	_brcms_b_core_phypll_ctl
	str	wzr, [x19]
	ldr	w0, [x19, #16]
	mov	w1, #0
	bl	_bcma_core_disable
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wlc_phy_hw_clk_state_upd
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wl%d: disable core\n"

	.comm	_OFF,4,2                        ; @OFF
	.no_dead_strip	_brcms_c_coredisable
.subsections_via_symbols
