	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_deviceremoved
_brcms_deviceremoved:                   ## @brcms_deviceremoved
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movl	(%rax), %ebx
	movq	_maccontrol@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bcma_read32
	movq	_MCTL_PSM_JMP_0@GOTPCREL(%rip), %rcx
	movq	_MCTL_IHR_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rcx), %ecx
	orl	%edx, %ecx
	andl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	4(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ai_deviceremoved               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_maccontrol,4,2                 ## @maccontrol
	.comm	_MCTL_PSM_JMP_0,4,2             ## @MCTL_PSM_JMP_0
	.comm	_MCTL_IHR_EN,4,2                ## @MCTL_IHR_EN
	.no_dead_strip	_brcms_deviceremoved
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_deviceremoved
_brcms_deviceremoved:                   ; @brcms_deviceremoved
	.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	x8, [x0]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_2
; %bb.1:
	ldr	w19, [x8]
Lloh0:
	adrp	x8, _maccontrol@GOTPAGE
Lloh1:
	ldr	x8, [x8, _maccontrol@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x19
	bl	_bcma_read32
Lloh3:
	adrp	x8, _MCTL_PSM_JMP_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCTL_PSM_JMP_0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MCTL_IHR_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MCTL_IHR_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w8, w8, w0
	cmp	w8, w9
	cset	w0, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x8, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ai_deviceremoved
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_maccontrol,4,2                 ; @maccontrol
	.comm	_MCTL_PSM_JMP_0,4,2             ; @MCTL_PSM_JMP_0
	.comm	_MCTL_IHR_EN,4,2                ; @MCTL_IHR_EN
	.no_dead_strip	_brcms_deviceremoved
.subsections_via_symbols
