	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_is_linkdown
_brcmf_is_linkdown:                     ## @brcmf_is_linkdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_BRCMF_E_DEAUTH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_5
## %bb.1:
	movq	_BRCMF_E_DEAUTH_IND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_5
## %bb.2:
	movq	_BRCMF_E_DISASSOC_IND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_5
## %bb.3:
	movq	_BRCMF_E_LINK@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.4:
	movl	8(%rdi), %ecx
	movq	_BRCMF_EVENT_MSG_LINK@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_5
LBB0_6:
	popq	%rbp
	retq
LBB0_5:
	movq	_CONN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_E_DEAUTH,8,3             ## @BRCMF_E_DEAUTH
	.comm	_BRCMF_E_DEAUTH_IND,8,3         ## @BRCMF_E_DEAUTH_IND
	.comm	_BRCMF_E_DISASSOC_IND,8,3       ## @BRCMF_E_DISASSOC_IND
	.comm	_BRCMF_E_LINK,8,3               ## @BRCMF_E_LINK
	.comm	_BRCMF_EVENT_MSG_LINK,4,2       ## @BRCMF_EVENT_MSG_LINK
	.comm	_CONN,4,2                       ## @CONN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Processing link down\n"

	.no_dead_strip	_brcmf_is_linkdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_is_linkdown
_brcmf_is_linkdown:                     ; @brcmf_is_linkdown
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BRCMF_E_DEAUTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BRCMF_E_DEAUTH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _BRCMF_E_DEAUTH_IND@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BRCMF_E_DEAUTH_IND@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _BRCMF_E_DISASSOC_IND@GOTPAGE
Lloh7:
	ldr	x11, [x11, _BRCMF_E_DISASSOC_IND@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_2
LBB0_1:
Lloh9:
	adrp	x8, _CONN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CONN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh14:
	adrp	x9, _BRCMF_E_LINK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BRCMF_E_LINK@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x0, #8]
Lloh17:
	adrp	x9, _BRCMF_EVENT_MSG_LINK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BRCMF_EVENT_MSG_LINK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_E_DEAUTH,8,3             ; @BRCMF_E_DEAUTH
	.comm	_BRCMF_E_DEAUTH_IND,8,3         ; @BRCMF_E_DEAUTH_IND
	.comm	_BRCMF_E_DISASSOC_IND,8,3       ; @BRCMF_E_DISASSOC_IND
	.comm	_BRCMF_E_LINK,8,3               ; @BRCMF_E_LINK
	.comm	_BRCMF_EVENT_MSG_LINK,4,2       ; @BRCMF_EVENT_MSG_LINK
	.comm	_CONN,4,2                       ; @CONN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Processing link down\n"

	.no_dead_strip	_brcmf_is_linkdown
.subsections_via_symbols
