	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_dongle_roam
_brcmf_dongle_roam:                     ## @brcmf_dongle_roam
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %r14
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_BRCMF_DEFAULT_BCN_TIMEOUT_ROAM_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_BRCMF_DEFAULT_BCN_TIMEOUT_ROAM_OFF@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_brcmf_fil_iovar_int_set
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_5:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_brcmf_dbg
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_brcmf_fil_iovar_int_set
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rbx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_12
LBB0_7:
	movq	_WL_ROAM_TRIGGER_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
	movq	_BRCM_BAND_ALL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_cpu_to_le32
	movl	%eax, -44(%rbp)
	movq	_BRCMF_C_SET_ROAM_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$8, %ecx
	callq	_brcmf_fil_cmd_data_set
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %rbx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_12
LBB0_9:
	movq	_WL_ROAM_DELTA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, -56(%rbp)
	movl	(%r12), %edi
	callq	_cpu_to_le32
	movl	%eax, -52(%rbp)
	movq	_BRCMF_C_SET_ROAM_DELTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movl	$8, %ecx
	callq	_brcmf_fil_cmd_data_set
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	leaq	L_.str.8(%rip), %rsi
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_bphy_err
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_DEFAULT_BCN_TIMEOUT_ROAM_OFF,8,3 ## @BRCMF_DEFAULT_BCN_TIMEOUT_ROAM_OFF
	.comm	_BRCMF_DEFAULT_BCN_TIMEOUT_ROAM_ON,8,3 ## @BRCMF_DEFAULT_BCN_TIMEOUT_ROAM_ON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bcn_timeout"

L_.str.1:                               ## @.str.1
	.asciz	"bcn_timeout error (%d)\n"

	.comm	_INFO,4,2                       ## @INFO
L_.str.2:                               ## @.str.2
	.asciz	"Internal Roaming = %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Off"

L_.str.4:                               ## @.str.4
	.asciz	"On"

L_.str.5:                               ## @.str.5
	.asciz	"roam_off"

L_.str.6:                               ## @.str.6
	.asciz	"roam_off error (%d)\n"

	.comm	_WL_ROAM_TRIGGER_LEVEL,4,2      ## @WL_ROAM_TRIGGER_LEVEL
	.comm	_BRCM_BAND_ALL,4,2              ## @BRCM_BAND_ALL
	.comm	_BRCMF_C_SET_ROAM_TRIGGER,4,2   ## @BRCMF_C_SET_ROAM_TRIGGER
L_.str.7:                               ## @.str.7
	.asciz	"WLC_SET_ROAM_TRIGGER error (%d)\n"

	.comm	_WL_ROAM_DELTA,4,2              ## @WL_ROAM_DELTA
	.comm	_BRCMF_C_SET_ROAM_DELTA,4,2     ## @BRCMF_C_SET_ROAM_DELTA
L_.str.8:                               ## @.str.8
	.asciz	"WLC_SET_ROAM_DELTA error (%d)\n"

	.no_dead_strip	_brcmf_dongle_roam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_dongle_roam
_brcmf_dongle_roam:                     ; @brcmf_dongle_roam
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x19, [x0]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _BRCMF_DEFAULT_BCN_TIMEOUT_ROAM_ON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BRCMF_DEFAULT_BCN_TIMEOUT_ROAM_ON@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh5:
	adrp	x10, _BRCMF_DEFAULT_BCN_TIMEOUT_ROAM_OFF@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BRCMF_DEFAULT_BCN_TIMEOUT_ROAM_OFF@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	x2, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_fil_iovar_int_set
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_2:
Lloh11:
	adrp	x8, _INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh14:
	adrp	x9, l_.str.3@PAGE
Lloh15:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh16:
	adrp	x10, l_.str.4@PAGE
Lloh17:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x2, [x8]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_brcmf_fil_iovar_int_set
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh24:
	adrp	x8, _WL_ROAM_TRIGGER_LEVEL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WL_ROAM_TRIGGER_LEVEL@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [sp, #16]
Lloh27:
	adrp	x22, _BRCM_BAND_ALL@GOTPAGE
Lloh28:
	ldr	x22, [x22, _BRCM_BAND_ALL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_cpu_to_le32
	str	w0, [sp, #20]
Lloh29:
	adrp	x8, _BRCMF_C_SET_ROAM_TRIGGER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BRCMF_C_SET_ROAM_TRIGGER@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x20
	mov	w3, #8
	bl	_brcmf_fil_cmd_data_set
	cbz	x0, LBB0_6
; %bb.5:
	mov	x21, x0
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh34:
	adrp	x8, _WL_ROAM_DELTA@GOTPAGE
Lloh35:
	ldr	x8, [x8, _WL_ROAM_DELTA@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [sp, #8]
	ldr	w0, [x22]
	bl	_cpu_to_le32
	str	w0, [sp, #12]
Lloh37:
	adrp	x8, _BRCMF_C_SET_ROAM_DELTA@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BRCMF_C_SET_ROAM_DELTA@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #8
	bl	_brcmf_fil_cmd_data_set
	mov	x21, x0
	cbz	x0, LBB0_9
; %bb.7:
Lloh40:
	adrp	x1, l_.str.8@PAGE
Lloh41:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_8:
	mov	x0, x19
	mov	x2, x21
	bl	_bphy_err
LBB0_9:
	ldr	x8, [sp, #24]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_DEFAULT_BCN_TIMEOUT_ROAM_OFF,8,3 ; @BRCMF_DEFAULT_BCN_TIMEOUT_ROAM_OFF
	.comm	_BRCMF_DEFAULT_BCN_TIMEOUT_ROAM_ON,8,3 ; @BRCMF_DEFAULT_BCN_TIMEOUT_ROAM_ON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bcn_timeout"

l_.str.1:                               ; @.str.1
	.asciz	"bcn_timeout error (%d)\n"

	.comm	_INFO,4,2                       ; @INFO
l_.str.2:                               ; @.str.2
	.asciz	"Internal Roaming = %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Off"

l_.str.4:                               ; @.str.4
	.asciz	"On"

l_.str.5:                               ; @.str.5
	.asciz	"roam_off"

l_.str.6:                               ; @.str.6
	.asciz	"roam_off error (%d)\n"

	.comm	_WL_ROAM_TRIGGER_LEVEL,4,2      ; @WL_ROAM_TRIGGER_LEVEL
	.comm	_BRCM_BAND_ALL,4,2              ; @BRCM_BAND_ALL
	.comm	_BRCMF_C_SET_ROAM_TRIGGER,4,2   ; @BRCMF_C_SET_ROAM_TRIGGER
l_.str.7:                               ; @.str.7
	.asciz	"WLC_SET_ROAM_TRIGGER error (%d)\n"

	.comm	_WL_ROAM_DELTA,4,2              ; @WL_ROAM_DELTA
	.comm	_BRCMF_C_SET_ROAM_DELTA,4,2     ; @BRCMF_C_SET_ROAM_DELTA
l_.str.8:                               ; @.str.8
	.asciz	"WLC_SET_ROAM_DELTA error (%d)\n"

	.no_dead_strip	_brcmf_dongle_roam
.subsections_via_symbols
