	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_set_join_pref
_brcmf_set_join_pref:                   ## @brcmf_set_join_pref
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %r14
	movl	$2, -96(%rbp)
	movq	$0, -80(%rbp)
	cmpl	$131, (%rsi)
	je	LBB0_7
## %bb.1:
	movq	_BRCMF_C_SET_ASSOC_PREFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WLC_BAND_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_brcmf_fil_cmd_int_set
	movl	(%rbx), %eax
	cmpl	$131, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_8
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_14
## %bb.6:
	movq	%r15, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmf_c_set_joinpref_default   ## TAILCALL
LBB0_7:
	movq	_BRCMF_JOIN_PREF_BAND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	8(%rbx), %edi
	callq	_nl80211_band_to_fwil
	movq	%rax, -88(%rbp)
LBB0_9:
	movl	$1, %eax
LBB0_10:
	movq	_BRCMF_JOIN_PREF_RSSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shlq	$5, %rax
	movl	%ecx, -72(%rbp,%rax)
	movl	$2, -96(%rbp,%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -88(%rbp,%rax)
	leaq	L_.str(%rip), %rsi
	leaq	-96(%rbp), %rdx
	movq	%r15, %rdi
	movl	$64, %ecx
	callq	_brcmf_fil_iovar_data_set
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_bphy_err
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_BRCMF_JOIN_PREF_RSSI_DELTA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	16(%rbx), %edi
	callq	_nl80211_band_to_fwil
	movq	%rax, -88(%rbp)
	movq	24(%rbx), %rax
	movq	%rax, -80(%rbp)
	jmp	LBB0_9
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_C_SET_ASSOC_PREFER,4,2   ## @BRCMF_C_SET_ASSOC_PREFER
	.comm	_WLC_BAND_AUTO,4,2              ## @WLC_BAND_AUTO
	.comm	_BRCMF_JOIN_PREF_BAND,4,2       ## @BRCMF_JOIN_PREF_BAND
	.comm	_BRCMF_JOIN_PREF_RSSI_DELTA,4,2 ## @BRCMF_JOIN_PREF_RSSI_DELTA
	.comm	_BRCMF_JOIN_PREF_RSSI,4,2       ## @BRCMF_JOIN_PREF_RSSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"join_pref"

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

	.no_dead_strip	_brcmf_set_join_pref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_set_join_pref
_brcmf_set_join_pref:                   ; @brcmf_set_join_pref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x19, [x0]
	mov	w8, #2
	str	w8, [sp, #8]
	str	xzr, [sp, #24]
	ldr	w8, [x1]
	cmp	w8, #131
	b.eq	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _BRCMF_C_SET_ASSOC_PREFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRCMF_C_SET_ASSOC_PREFER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _WLC_BAND_AUTO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLC_BAND_AUTO@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_brcmf_fil_cmd_int_set
	ldr	w8, [x21]
	cmp	w8, #131
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_12
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.4:
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.5:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_brcmf_c_set_joinpref_default
LBB0_6:
Lloh12:
	adrp	x8, _BRCMF_JOIN_PREF_BAND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BRCMF_JOIN_PREF_BAND@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	ldr	w0, [x21, #8]
	bl	_nl80211_band_to_fwil
	str	x0, [sp, #16]
LBB0_7:
	mov	w8, #1
LBB0_8:
Lloh15:
	adrp	x9, _BRCMF_JOIN_PREF_RSSI@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BRCMF_JOIN_PREF_RSSI@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	add	x10, sp, #8
	add	x8, x10, x8, lsl #5
	str	w9, [x8, #24]
	mov	w9, #2
	str	w9, [x8]
	stp	xzr, xzr, [x8, #8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #64
	bl	_brcmf_fil_iovar_data_set
	cbz	w0, LBB0_10
; %bb.9:
	mov	x2, x0
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_bphy_err
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
Lloh25:
	adrp	x8, _BRCMF_JOIN_PREF_RSSI_DELTA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BRCMF_JOIN_PREF_RSSI_DELTA@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	ldr	w0, [x21, #16]
	bl	_nl80211_band_to_fwil
	ldr	x8, [x21, #24]
	stp	x0, x8, [sp, #16]
	b	LBB0_7
LBB0_13:
	mov	x8, #0
	b	LBB0_8
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_C_SET_ASSOC_PREFER,4,2   ; @BRCMF_C_SET_ASSOC_PREFER
	.comm	_WLC_BAND_AUTO,4,2              ; @WLC_BAND_AUTO
	.comm	_BRCMF_JOIN_PREF_BAND,4,2       ; @BRCMF_JOIN_PREF_BAND
	.comm	_BRCMF_JOIN_PREF_RSSI_DELTA,4,2 ; @BRCMF_JOIN_PREF_RSSI_DELTA
	.comm	_BRCMF_JOIN_PREF_RSSI,4,2       ; @BRCMF_JOIN_PREF_RSSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"join_pref"

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

	.no_dead_strip	_brcmf_set_join_pref
.subsections_via_symbols
