	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_chip_ai_resetcore
_brcmf_chip_ai_resetcore:               ## @brcmf_chip_ai_resetcore
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	callq	_brcmf_chip_ai_coredisable
	movq	8(%rbx), %rax
	movl	(%rbx), %edi
	movq	_BCMA_RESET_CTL@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	callq	*(%rax)
	movq	_BCMA_RESET_CTL_RESET@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.1:
	movl	$51, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	xorl	%edx, %edx
	callq	*8(%rax)
	decl	%r14d
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$40, %edi
	movl	$60, %esi
	callq	_usleep_range
	movq	8(%rbx), %rax
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	callq	*(%rax)
	testl	%eax, (%r13)
	jne	LBB0_2
LBB0_4:
	movq	8(%rbx), %rax
	movq	_BCMA_IOCTL@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%r15), %rsi
	movl	(%rbx), %edi
	movq	_BCMA_IOCTL_CLK@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	orl	(%rcx), %edx
	callq	*8(%rax)
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rbx), %edi
	movq	(%r14), %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_CLK,4,2             ## @BCMA_IOCTL_CLK
	.no_dead_strip	_brcmf_chip_ai_resetcore
.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_resetcore
_brcmf_chip_ai_resetcore:               ; @brcmf_chip_ai_resetcore
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x19, x0
	ldr	x21, [x0, #8]
	bl	_brcmf_chip_ai_coredisable
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w0, [x21]
	ldr	x9, [x19]
Lloh0:
	adrp	x22, _BCMA_RESET_CTL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BCMA_RESET_CTL@GOTPAGEOFF]
	ldr	x10, [x22]
	add	x1, x10, x9
	blr	x8
Lloh2:
	adrp	x23, _BCMA_RESET_CTL_RESET@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BCMA_RESET_CTL_RESET@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	mov	w24, #51
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x21]
	ldr	x9, [x19]
	ldr	x10, [x22]
	add	x1, x10, x9
	mov	w2, #0
	blr	x8
	subs	w24, w24, #1
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #40
	mov	w1, #60
	bl	_usleep_range
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w0, [x21]
	ldr	x9, [x19]
	ldr	x10, [x22]
	add	x1, x10, x9
	blr	x8
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_2
LBB0_4:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x21]
	ldr	x9, [x19]
Lloh4:
	adrp	x22, _BCMA_IOCTL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _BCMA_IOCTL@GOTPAGEOFF]
	ldr	x10, [x22]
	add	x1, x10, x9
Lloh6:
	adrp	x9, _BCMA_IOCTL_CLK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BCMA_IOCTL_CLK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w20
	blr	x8
	ldr	x8, [x21, #8]
	ldr	x2, [x8]
	ldr	w0, [x21]
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.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_CLK,4,2             ; @BCMA_IOCTL_CLK
	.no_dead_strip	_brcmf_chip_ai_resetcore
.subsections_via_symbols
