	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_pno_add_ssid
_brcmf_pno_add_ssid:                    ## @brcmf_pno_add_ssid
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	_WLAN_AUTH_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, -48(%rbp)
	movq	_BRCMF_PNO_WPA_AUTH_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, -56(%rbp)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	%rax, -64(%rbp)
	movl	$1, %ebx
	movl	$1, %edi
	callq	_cpu_to_le32
	movq	%rax, -72(%rbp)
	movq	$0, -80(%rbp)
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	_BRCMF_PNO_HIDDEN_BIT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, -80(%rbp)
LBB0_2:
	movl	(%r13), %edi
	callq	_cpu_to_le32
	movq	%rax, -88(%rbp)
	movl	(%r13), %edx
	movl	4(%r13), %esi
	callq	_memcpy
	movq	_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %ecx
	callq	_brcmf_dbg
	leaq	L_.str.1(%rip), %rsi
	leaq	-96(%rbp), %rdx
	movq	%r15, %rdi
	movl	$56, %ecx
	callq	_brcmf_fil_iovar_data_set
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_bphy_err
LBB0_4:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_AUTH_OPEN,4,2             ## @WLAN_AUTH_OPEN
	.comm	_BRCMF_PNO_WPA_AUTH_ANY,4,2     ## @BRCMF_PNO_WPA_AUTH_ANY
	.comm	_BRCMF_PNO_HIDDEN_BIT,4,2       ## @BRCMF_PNO_HIDDEN_BIT
	.comm	_SCAN,4,2                       ## @SCAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adding ssid=%.32s (active=%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"pfn_add"

L_.str.2:                               ## @.str.2
	.asciz	"adding failed: err=%d\n"

	.no_dead_strip	_brcmf_pno_add_ssid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_pno_add_ssid
_brcmf_pno_add_ssid:                    ; @brcmf_pno_add_ssid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _WLAN_AUTH_OPEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_AUTH_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [sp, #56]
Lloh3:
	adrp	x8, _BRCMF_PNO_WPA_AUTH_ANY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRCMF_PNO_WPA_AUTH_ANY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [sp, #48]
	mov	w0, #0
	bl	_cpu_to_le32
	str	x0, [sp, #40]
	mov	w23, #1
	mov	w0, #1
	bl	_cpu_to_le32
	stp	xzr, x0, [sp, #24]
	cbz	w21, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _BRCMF_PNO_HIDDEN_BIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BRCMF_PNO_HIDDEN_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w0, w23, w8
	bl	_cpu_to_le32
	str	x0, [sp, #24]
LBB0_2:
	ldr	w0, [x22]
	bl	_cpu_to_le32
	str	x0, [sp, #16]
	ldp	w2, w1, [x22]
	bl	_memcpy
Lloh9:
	adrp	x8, _SCAN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCAN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w2, [x22, #4]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	bl	_brcmf_dbg
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #56
	bl	_brcmf_fil_iovar_data_set
	mov	x20, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_bphy_err
LBB0_4:
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_AUTH_OPEN,4,2             ; @WLAN_AUTH_OPEN
	.comm	_BRCMF_PNO_WPA_AUTH_ANY,4,2     ; @BRCMF_PNO_WPA_AUTH_ANY
	.comm	_BRCMF_PNO_HIDDEN_BIT,4,2       ; @BRCMF_PNO_HIDDEN_BIT
	.comm	_SCAN,4,2                       ; @SCAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adding ssid=%.32s (active=%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"pfn_add"

l_.str.2:                               ; @.str.2
	.asciz	"adding failed: err=%d\n"

	.no_dead_strip	_brcmf_pno_add_ssid
.subsections_via_symbols
