	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_ops_stop
_brcms_ops_stop:                        ## @brcms_ops_stop
	.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
	callq	_ieee80211_stop_queues
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_brcms_c_chipmatch
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.2:
	movl	(%rdi), %edi
	xorl	%esi, %esi
	callq	_bcma_core_pci_power_save
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	%rbx, %rdi
	callq	_brcms_down
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_brcms_err                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wl: brcms_ops_stop: chipmatch failed\n"

	.no_dead_strip	_brcms_ops_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_ops_stop
_brcms_ops_stop:                        ; @brcms_ops_stop
	.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	x19, [x0]
	bl	_ieee80211_stop_queues
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x0, [x8]
	bl	_brcms_c_chipmatch
	mov	x20, x0
	mov	x0, x19
	bl	_spin_unlock_bh
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x0, [x8]
	cbz	w20, LBB0_4
; %bb.2:
	ldr	w0, [x0]
	mov	w1, #0
	bl	_bcma_core_pci_power_save
	mov	x0, x19
	bl	_spin_lock_bh
	mov	x0, x19
	bl	_brcms_down
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_bh
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	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	_brcms_err
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wl: brcms_ops_stop: chipmatch failed\n"

	.no_dead_strip	_brcms_ops_stop
.subsections_via_symbols
