	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_set_wpa_version
_brcmf_set_wpa_version:                 ## @brcmf_set_wpa_version
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_ndev_to_prof
	movq	%rax, %r14
	movl	(%r15), %eax
	movq	_NL80211_WPA_VERSION_1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_WPA_AUTH_PSK@GOTPCREL(%rip), %rax
	movq	_WPA_AUTH_UNSPECIFIED@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	_NL80211_WPA_VERSION_2@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_WPA2_AUTH_PSK@GOTPCREL(%rip), %rax
	movq	_WPA2_AUTH_UNSPECIFIED@GOTPCREL(%rip), %rcx
LBB0_2:
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
LBB0_6:
	movq	(%r12), %r13
	movq	_CONN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_brcmf_dbg
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_brcmf_fil_bsscfg_int_set
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_bphy_err
	jmp	LBB0_9
LBB0_8:
	movl	(%r15), %eax
	movl	%eax, (%r14)
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_WPA_AUTH_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_WPA_VERSION_1,4,2      ## @NL80211_WPA_VERSION_1
	.comm	_WPA_AUTH_PSK,4,2               ## @WPA_AUTH_PSK
	.comm	_WPA_AUTH_UNSPECIFIED,4,2       ## @WPA_AUTH_UNSPECIFIED
	.comm	_NL80211_WPA_VERSION_2,4,2      ## @NL80211_WPA_VERSION_2
	.comm	_WPA2_AUTH_PSK,4,2              ## @WPA2_AUTH_PSK
	.comm	_WPA2_AUTH_UNSPECIFIED,4,2      ## @WPA2_AUTH_UNSPECIFIED
	.comm	_WPA_AUTH_DISABLED,4,2          ## @WPA_AUTH_DISABLED
	.comm	_CONN,4,2                       ## @CONN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting wpa_auth to 0x%0x\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"set wpa_auth failed (%d)\n"

	.no_dead_strip	_brcmf_set_wpa_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_set_wpa_version
_brcmf_set_wpa_version:                 ; @brcmf_set_wpa_version
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x20
	bl	_ndev_to_prof
	mov	x20, x0
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _NL80211_WPA_VERSION_1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_WPA_VERSION_1@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _WPA_AUTH_PSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WPA_AUTH_PSK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _WPA_AUTH_UNSPECIFIED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WPA_AUTH_UNSPECIFIED@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x9, _NL80211_WPA_VERSION_2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NL80211_WPA_VERSION_2@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.3:
Lloh11:
	adrp	x8, _WPA2_AUTH_PSK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WPA2_AUTH_PSK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _WPA2_AUTH_UNSPECIFIED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _WPA2_AUTH_UNSPECIFIED@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	orr	w22, w9, w8
LBB0_5:
	ldr	x23, [x21]
Lloh16:
	adrp	x8, _CONN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CONN@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_brcmf_dbg
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_brcmf_fil_bsscfg_int_set
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.6:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, x21
	bl	_bphy_err
	b	LBB0_8
LBB0_7:
	ldr	w8, [x19]
	str	w8, [x20]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh25:
	adrp	x8, _WPA_AUTH_DISABLED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WPA_AUTH_DISABLED@GOTPAGEOFF]
Lloh27:
	ldr	w22, [x8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_WPA_VERSION_1,4,2      ; @NL80211_WPA_VERSION_1
	.comm	_WPA_AUTH_PSK,4,2               ; @WPA_AUTH_PSK
	.comm	_WPA_AUTH_UNSPECIFIED,4,2       ; @WPA_AUTH_UNSPECIFIED
	.comm	_NL80211_WPA_VERSION_2,4,2      ; @NL80211_WPA_VERSION_2
	.comm	_WPA2_AUTH_PSK,4,2              ; @WPA2_AUTH_PSK
	.comm	_WPA2_AUTH_UNSPECIFIED,4,2      ; @WPA2_AUTH_UNSPECIFIED
	.comm	_WPA_AUTH_DISABLED,4,2          ; @WPA_AUTH_DISABLED
	.comm	_CONN,4,2                       ; @CONN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting wpa_auth to 0x%0x\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"set wpa_auth failed (%d)\n"

	.no_dead_strip	_brcmf_set_wpa_version
.subsections_via_symbols
