	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_link_down
_brcmf_link_down:                       ## @brcmf_link_down
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movl	28(%rdi), %edi
	callq	_wiphy_to_cfg
	movq	%rax, %r14
	movq	8(%rax), %r13
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_BRCMF_BUS_UP@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	movq	_BRCMF_VIF_STATUS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %r12
	movq	%r12, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_4
## %bb.2:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_brcmf_dbg
	movl	8(%rbx), %edi
	movq	_BRCMF_C_DISASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_brcmf_fil_cmd_data_set
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_bphy_err
LBB0_4:
	movq	16(%rbx), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_NL80211_IFTYPE_P2P_CLIENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_6:
	movl	24(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_cfg80211_disconnected
LBB0_7:
	movq	_BRCMF_VIF_STATUS_CONNECTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	_BRCMF_SCAN_STATUS_SUPPRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_BRCMF_BTCOEX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_brcmf_btcoex_set_mode
	movq	_BRCMF_PROFILE_FWSUP_NONE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	%rax, (%rbx)
	je	LBB0_11
## %bb.8:
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_10
## %bb.9:
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_brcmf_set_pmk
	movq	(%r14), %rax
LBB0_10:
	movq	%rax, (%rbx)
LBB0_11:
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmf_dbg                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_BUS_UP,8,3               ## @BRCMF_BUS_UP
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_BRCMF_VIF_STATUS_CONNECTED,4,2 ## @BRCMF_VIF_STATUS_CONNECTED
	.comm	_INFO,4,2                       ## @INFO
L_.str.1:                               ## @.str.1
	.asciz	"Call WLC_DISASSOC to stop excess roaming\n"

	.comm	_BRCMF_C_DISASSOC,4,2           ## @BRCMF_C_DISASSOC
L_.str.2:                               ## @.str.2
	.asciz	"WLC_DISASSOC failed (%d)\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_P2P_CLIENT,8,3  ## @NL80211_IFTYPE_P2P_CLIENT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_BRCMF_VIF_STATUS_CONNECTING,4,2 ## @BRCMF_VIF_STATUS_CONNECTING
	.comm	_BRCMF_SCAN_STATUS_SUPPRESS,4,2 ## @BRCMF_SCAN_STATUS_SUPPRESS
	.comm	_BRCMF_BTCOEX_ENABLED,4,2       ## @BRCMF_BTCOEX_ENABLED
	.comm	_BRCMF_PROFILE_FWSUP_NONE,8,3   ## @BRCMF_PROFILE_FWSUP_NONE
L_.str.3:                               ## @.str.3
	.asciz	"Exit\n"

	.no_dead_strip	_brcmf_link_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_link_down
_brcmf_link_down:                       ; @brcmf_link_down
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #28]
	bl	_wiphy_to_cfg
	mov	x20, x0
	ldr	x23, [x0, #8]
	ldr	x8, [x23]
	ldr	x25, [x8]
Lloh0:
	adrp	x8, _BRCMF_BUS_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCMF_BUS_UP@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
Lloh3:
	adrp	x24, _TRACE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _TRACE@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
Lloh7:
	adrp	x8, _BRCMF_VIF_STATUS_CONNECTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BRCMF_VIF_STATUS_CONNECTED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x22, x19, #12
	mov	x1, x22
	bl	_test_and_clear_bit
	cbz	x0, LBB0_6
; %bb.1:
	cmp	x25, x26
	b.ne	LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
	ldr	w0, [x19, #8]
Lloh15:
	adrp	x8, _BRCMF_C_DISASSOC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BRCMF_C_DISASSOC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #0
	bl	_brcmf_fil_cmd_data_set
	cbz	x0, LBB0_4
; %bb.3:
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_bphy_err
LBB0_4:
	ldr	x8, [x19, #16]
Lloh20:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
Lloh23:
	adrp	x10, _NL80211_IFTYPE_P2P_CLIENT@GOTPAGE
Lloh24:
	ldr	x10, [x10, _NL80211_IFTYPE_P2P_CLIENT@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x19, #24]
Lloh26:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh28:
	ldr	w5, [x8]
	mov	x1, x21
	mov	x2, #0
	mov	w3, #0
	mov	w4, #1
	bl	_cfg80211_disconnected
LBB0_6:
Lloh29:
	adrp	x8, _BRCMF_VIF_STATUS_CONNECTING@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BRCMF_VIF_STATUS_CONNECTING@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_clear_bit
Lloh32:
	adrp	x8, _BRCMF_SCAN_STATUS_SUPPRESS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BRCMF_SCAN_STATUS_SUPPRESS@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
Lloh35:
	adrp	x8, _BRCMF_BTCOEX_ENABLED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BRCMF_BTCOEX_ENABLED@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_brcmf_btcoex_set_mode
	ldr	x9, [x19]
Lloh38:
	adrp	x20, _BRCMF_PROFILE_FWSUP_NONE@GOTPAGE
Lloh39:
	ldr	x20, [x20, _BRCMF_PROFILE_FWSUP_NONE@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x9, x8
	b.eq	LBB0_10
; %bb.7:
	cmp	x25, x26
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x19, #8]
	mov	x1, #0
	mov	w2, #0
	bl	_brcmf_set_pmk
	ldr	x8, [x20]
LBB0_9:
	str	x8, [x19]
LBB0_10:
	ldr	w0, [x24]
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_brcmf_dbg
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_BUS_UP,8,3               ; @BRCMF_BUS_UP
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_BRCMF_VIF_STATUS_CONNECTED,4,2 ; @BRCMF_VIF_STATUS_CONNECTED
	.comm	_INFO,4,2                       ; @INFO
l_.str.1:                               ; @.str.1
	.asciz	"Call WLC_DISASSOC to stop excess roaming\n"

	.comm	_BRCMF_C_DISASSOC,4,2           ; @BRCMF_C_DISASSOC
l_.str.2:                               ; @.str.2
	.asciz	"WLC_DISASSOC failed (%d)\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_P2P_CLIENT,8,3  ; @NL80211_IFTYPE_P2P_CLIENT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_BRCMF_VIF_STATUS_CONNECTING,4,2 ; @BRCMF_VIF_STATUS_CONNECTING
	.comm	_BRCMF_SCAN_STATUS_SUPPRESS,4,2 ; @BRCMF_SCAN_STATUS_SUPPRESS
	.comm	_BRCMF_BTCOEX_ENABLED,4,2       ; @BRCMF_BTCOEX_ENABLED
	.comm	_BRCMF_PROFILE_FWSUP_NONE,8,3   ; @BRCMF_PROFILE_FWSUP_NONE
l_.str.3:                               ; @.str.3
	.asciz	"Exit\n"

	.no_dead_strip	_brcmf_link_down
.subsections_via_symbols
