	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_chip_ai_coredisable
_brcmf_chip_ai_coredisable:             ## @brcmf_chip_ai_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	8(%rbx), %rax
	movl	(%rbx), %edi
	movq	_BCMA_RESET_CTL@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	(%r15), %rsi
	callq	*(%rax)
	movq	_BCMA_RESET_CTL_RESET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_BCMA_IOCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movq	8(%rbx), %rax
	movq	_BCMA_IOCTL_FGC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r12d
	movl	(%rbx), %edi
	movq	_BCMA_IOCTL_CLK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r12d
	movl	%r12d, %edx
	callq	*8(%rax)
	movq	8(%rbx), %rax
	movl	(%rbx), %edi
	movq	_BCMA_IOCTL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r15), %rsi
	callq	*(%rax)
	movq	8(%rbx), %rax
	movl	(%rbx), %edi
	movq	(%r13), %rsi
	addq	(%r15), %rsi
	movq	_BCMA_RESET_CTL_RESET@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	*8(%rax)
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movq	8(%rbx), %rax
	movl	(%rbx), %edi
	movq	(%r13), %rsi
	addq	(%r15), %rsi
	callq	*(%rax)
	xorl	%edi, %edi
	cmpl	(%r12), %eax
	setne	%dil
	movl	$300, %esi                      ## imm = 0x12C
	callq	_SPINWAIT
LBB0_2:
	movq	_BCMA_IOCTL@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movq	8(%rbx), %rax
	movq	_BCMA_IOCTL_FGC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r14d
	movl	(%rbx), %edi
	movq	_BCMA_IOCTL_CLK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r14d
	movl	%r14d, %edx
	callq	*8(%rax)
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BCMA_RESET_CTL,8,3             ## @BCMA_RESET_CTL
	.comm	_BCMA_RESET_CTL_RESET,4,2       ## @BCMA_RESET_CTL_RESET
	.comm	_BCMA_IOCTL,8,3                 ## @BCMA_IOCTL
	.comm	_BCMA_IOCTL_FGC,4,2             ## @BCMA_IOCTL_FGC
	.comm	_BCMA_IOCTL_CLK,4,2             ## @BCMA_IOCTL_CLK
	.no_dead_strip	_brcmf_chip_ai_coredisable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_chip_ai_coredisable
_brcmf_chip_ai_coredisable:             ; @brcmf_chip_ai_coredisable
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldp	x8, x22, [x0]
	ldr	x9, [x22, #8]
	ldr	x9, [x9]
	ldr	w0, [x22]
Lloh0:
	adrp	x26, _BCMA_RESET_CTL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _BCMA_RESET_CTL@GOTPAGEOFF]
	ldr	x10, [x26]
	add	x1, x10, x8
	blr	x9
Lloh2:
	adrp	x27, _BCMA_RESET_CTL_RESET@GOTPAGE
Lloh3:
	ldr	x27, [x27, _BCMA_RESET_CTL_RESET@GOTPAGEOFF]
Lloh4:
	adrp	x23, _BCMA_IOCTL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _BCMA_IOCTL@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh6:
	adrp	x25, _BCMA_IOCTL_FGC@GOTPAGE
Lloh7:
	ldr	x25, [x25, _BCMA_IOCTL_FGC@GOTPAGEOFF]
Lloh8:
	adrp	x24, _BCMA_IOCTL_CLK@GOTPAGE
Lloh9:
	ldr	x24, [x24, _BCMA_IOCTL_CLK@GOTPAGEOFF]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x22]
	ldr	x9, [x19]
	ldr	x10, [x23]
	add	x1, x10, x9
	ldr	w9, [x25]
	orr	w9, w9, w21
	ldr	w10, [x24]
	orr	w2, w9, w10
	blr	x8
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	w0, [x22]
	ldr	x9, [x19]
	ldr	x10, [x23]
	add	x1, x10, x9
	blr	x8
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x22]
	ldr	x9, [x19]
	ldr	x10, [x26]
	add	x1, x10, x9
	ldr	w2, [x27]
	blr	x8
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	w0, [x22]
	ldr	x9, [x19]
	ldr	x10, [x26]
	add	x1, x10, x9
	blr	x8
	ldr	w8, [x27]
	cmp	w0, w8
	cset	w0, ne
	mov	w1, #300
	bl	_SPINWAIT
LBB0_2:
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x22]
	ldr	x9, [x19]
	ldr	x10, [x23]
	add	x1, x10, x9
	ldr	w9, [x25]
	orr	w9, w9, w20
	ldr	w10, [x24]
	orr	w2, w9, w10
	blr	x8
	ldr	x8, [x22, #8]
	ldr	x2, [x8]
	ldr	w0, [x22]
	ldr	x8, [x19]
	ldr	x9, [x23]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BCMA_RESET_CTL,8,3             ; @BCMA_RESET_CTL
	.comm	_BCMA_RESET_CTL_RESET,4,2       ; @BCMA_RESET_CTL_RESET
	.comm	_BCMA_IOCTL,8,3                 ; @BCMA_IOCTL
	.comm	_BCMA_IOCTL_FGC,4,2             ; @BCMA_IOCTL_FGC
	.comm	_BCMA_IOCTL_CLK,4,2             ; @BCMA_IOCTL_CLK
	.no_dead_strip	_brcmf_chip_ai_coredisable
.subsections_via_symbols
