	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism54_set_wpa
_prism54_set_wpa:                       ## @prism54_set_wpa
	.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	%rdx, %r12
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_islpci_get_state
	movq	_PRV_STATE_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_5
## %bb.1:
	movl	$1, -36(%rbp)
	movl	$1, -40(%rbp)
	movl	$1, -44(%rbp)
	movq	_DOT11_MLME_EXTENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_DOT11_AUTH_OS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	%rbx, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_down_write
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	decl	%eax
	cmpl	$2, %eax
	jae	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_3:
	movl	$0, -36(%rbp)
	movl	$0, -40(%rbp)
	movl	$0, -44(%rbp)
	movq	_DOT11_MLME_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
LBB0_4:
	movl	(%r14), %esi
	callq	_printk
	movq	%r15, %rdi
	callq	_up_write
	movq	_DOT11_OID_AUTHENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mgt_set_request
	movq	_DOT11_OID_PRIVACYINVOKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mgt_set_request
	movq	_DOT11_OID_EXUNENCRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mgt_set_request
	movq	_DOT11_OID_DOT1XENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mgt_set_request
	movq	_DOT11_OID_MLMEAUTOLEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mgt_set_request
LBB0_5:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRV_STATE_INIT,8,3             ## @PRV_STATE_INIT
	.comm	_DOT11_MLME_EXTENDED,4,2        ## @DOT11_MLME_EXTENDED
	.comm	_DOT11_AUTH_OS,4,2              ## @DOT11_AUTH_OS
	.comm	_DOT11_MLME_AUTO,4,2            ## @DOT11_MLME_AUTO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Disabling WPA\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: Enabling WPA\n"

	.comm	_DOT11_OID_AUTHENABLE,4,2       ## @DOT11_OID_AUTHENABLE
	.comm	_DOT11_OID_PRIVACYINVOKED,4,2   ## @DOT11_OID_PRIVACYINVOKED
	.comm	_DOT11_OID_EXUNENCRYPTED,4,2    ## @DOT11_OID_EXUNENCRYPTED
	.comm	_DOT11_OID_DOT1XENABLE,4,2      ## @DOT11_OID_DOT1XENABLE
	.comm	_DOT11_OID_MLMEAUTOLEVEL,4,2    ## @DOT11_OID_MLMEAUTOLEVEL
	.no_dead_strip	_prism54_set_wpa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism54_set_wpa
_prism54_set_wpa:                       ; @prism54_set_wpa
	.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	x22, x2
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_islpci_get_state
Lloh0:
	adrp	x8, _PRV_STATE_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRV_STATE_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_5
; %bb.1:
	mov	w8, #1
	stp	w8, w8, [sp, #12]
	str	w8, [sp, #20]
Lloh3:
	adrp	x8, _DOT11_MLME_EXTENDED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DOT11_MLME_EXTENDED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #28]
Lloh6:
	adrp	x8, _DOT11_AUTH_OS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DOT11_AUTH_OS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x21, x19, #4
	mov	x0, x21
	bl	_down_write
	ldr	w8, [x22]
	str	w8, [x19]
	sub	w8, w8, #1
	cmp	w8, #2
	b.hs	LBB0_3
; %bb.2:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	str	wzr, [sp, #12]
	str	xzr, [sp, #16]
Lloh11:
	adrp	x8, _DOT11_MLME_AUTO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DOT11_MLME_AUTO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #28]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	ldr	w1, [x20]
	bl	_printk
	mov	x0, x21
	bl	_up_write
Lloh16:
	adrp	x8, _DOT11_OID_AUTHENABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DOT11_OID_AUTHENABLE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x3, sp, #24
	mov	x0, x19
	mov	w2, #0
	bl	_mgt_set_request
Lloh19:
	adrp	x8, _DOT11_OID_PRIVACYINVOKED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DOT11_OID_PRIVACYINVOKED@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #0
	bl	_mgt_set_request
Lloh22:
	adrp	x8, _DOT11_OID_EXUNENCRYPTED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DOT11_OID_EXUNENCRYPTED@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	x0, x19
	mov	w2, #0
	bl	_mgt_set_request
Lloh25:
	adrp	x8, _DOT11_OID_DOT1XENABLE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DOT11_OID_DOT1XENABLE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	add	x3, sp, #20
	mov	x0, x19
	mov	w2, #0
	bl	_mgt_set_request
Lloh28:
	adrp	x8, _DOT11_OID_MLMEAUTOLEVEL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DOT11_OID_MLMEAUTOLEVEL@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	add	x3, sp, #28
	mov	x0, x19
	mov	w2, #0
	bl	_mgt_set_request
LBB0_5:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PRV_STATE_INIT,8,3             ; @PRV_STATE_INIT
	.comm	_DOT11_MLME_EXTENDED,4,2        ; @DOT11_MLME_EXTENDED
	.comm	_DOT11_AUTH_OS,4,2              ; @DOT11_AUTH_OS
	.comm	_DOT11_MLME_AUTO,4,2            ; @DOT11_MLME_AUTO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Disabling WPA\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: Enabling WPA\n"

	.comm	_DOT11_OID_AUTHENABLE,4,2       ; @DOT11_OID_AUTHENABLE
	.comm	_DOT11_OID_PRIVACYINVOKED,4,2   ; @DOT11_OID_PRIVACYINVOKED
	.comm	_DOT11_OID_EXUNENCRYPTED,4,2    ; @DOT11_OID_EXUNENCRYPTED
	.comm	_DOT11_OID_DOT1XENABLE,4,2      ; @DOT11_OID_DOT1XENABLE
	.comm	_DOT11_OID_MLMEAUTOLEVEL,4,2    ; @DOT11_OID_MLMEAUTOLEVEL
	.no_dead_strip	_prism54_set_wpa
.subsections_via_symbols
