	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism54_get_encode
_prism54_get_encode:                    ## @prism54_get_encode
	.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
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %r14
	movq	_IW_ENCODE_INDEX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_DOT11_OID_AUTHENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r15
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_mgt_get_request
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %r12
	movq	_DOT11_OID_PRIVACYINVOKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_mgt_get_request
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_DOT11_OID_EXUNENCRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rbx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_mgt_get_request
	movq	-48(%rbp), %rdx
	testq	%rbx, %rbx
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.1:
	movq	_DOT11_AUTH_BOTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	jne	LBB0_8
## %bb.2:
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.3:
	movq	_IW_ENCODE_RESTRICTED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_DOT11_AUTH_OS@GOTPCREL(%rip), %rcx
	xorq	(%rcx), %r12
	orq	%rdx, %r12
	movl	$0, %ecx
	jne	LBB0_7
## %bb.5:
	movq	_IW_ENCODE_DISABLED@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ecx
LBB0_7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
	movq	%r14, %rax
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%ecx, (%rsi)
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	andq	%rax, %r14
	movq	%r14, %r12
	decq	%r12
	movq	_DOT11_OID_DEFKEYID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_mgt_get_request
	movl	%eax, %r15d
	movq	-48(%rbp), %r13
	cmpl	$5, %r14d
	cmovgeq	%r13, %r12
	testl	%r14d, %r14d
	cmoveq	%r13, %r12
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	orl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	orl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	orl	%eax, %r15d
	movq	_DOT11_OID_DEFKEYX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	leaq	-48(%rbp), %r8
	callq	_mgt_get_request
	movl	%eax, %r14d
	orl	%r15d, %r14d
	movq	-48(%rbp), %rbx
	movl	4(%rbx), %edx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	%edx, 4(%r15)
	movl	(%rbx), %esi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_kfree
	incl	%r13d
	orl	%r13d, (%r15)
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_DOT11_AUTH_OS@GOTPCREL(%rip), %rcx
	xorq	(%rcx), %r12
	xorl	%ecx, %ecx
	orq	%rdx, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_10
## %bb.9:
	movq	_IW_ENCODE_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_ENCODE_INDEX,4,2            ## @IW_ENCODE_INDEX
	.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_AUTH_BOTH,8,3            ## @DOT11_AUTH_BOTH
	.comm	_IW_ENCODE_RESTRICTED,4,2       ## @IW_ENCODE_RESTRICTED
	.comm	_DOT11_AUTH_OS,8,3              ## @DOT11_AUTH_OS
	.comm	_IW_ENCODE_OPEN,4,2             ## @IW_ENCODE_OPEN
	.comm	_IW_ENCODE_DISABLED,4,2         ## @IW_ENCODE_DISABLED
	.comm	_DOT11_OID_DEFKEYID,4,2         ## @DOT11_OID_DEFKEYID
	.comm	_DOT11_OID_DEFKEYX,4,2          ## @DOT11_OID_DEFKEYX
	.no_dead_strip	_prism54_get_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism54_get_encode
_prism54_get_encode:                    ; @prism54_get_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x19, x2
	bl	_netdev_priv
	mov	x21, x0
	ldrsw	x25, [x19]
Lloh0:
	adrp	x8, _IW_ENCODE_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IW_ENCODE_INDEX@GOTPAGEOFF]
Lloh2:
	ldrsw	x26, [x8]
Lloh3:
	adrp	x8, _DOT11_OID_AUTHENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DOT11_OID_AUTHENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x2, #0
	mov	x3, #0
	bl	_mgt_get_request
	mov	x22, x0
	ldr	x27, [sp, #8]
Lloh6:
	adrp	x8, _DOT11_OID_PRIVACYINVOKED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DOT11_OID_PRIVACYINVOKED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x21
	mov	x2, #0
	mov	x3, #0
	bl	_mgt_get_request
	mov	x23, x0
	ldr	x28, [sp, #8]
Lloh9:
	adrp	x8, _DOT11_OID_EXUNENCRYPTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DOT11_OID_EXUNENCRYPTED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x21
	mov	x2, #0
	mov	x3, #0
	bl	_mgt_get_request
	mov	x24, x0
	ldr	x8, [sp, #8]
	cbz	x28, LBB0_3
; %bb.1:
Lloh12:
	adrp	x9, _DOT11_AUTH_BOTH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DOT11_AUTH_BOTH@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x27, x9
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_5
; %bb.2:
	cmp	x8, #0
Lloh15:
	adrp	x8, _DOT11_AUTH_OS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DOT11_AUTH_OS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ccmp	x27, x8, #0, eq
Lloh18:
	adrp	x8, _IW_ENCODE_OPEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IW_ENCODE_OPEN@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh20:
	adrp	x9, _DOT11_AUTH_OS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DOT11_AUTH_OS@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x27, x9, #0, eq
Lloh23:
	adrp	x8, _IW_ENCODE_DISABLED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IW_ENCODE_DISABLED@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	csel	w8, wzr, w8, ne
	b	LBB0_6
LBB0_5:
Lloh25:
	adrp	x8, _IW_ENCODE_RESTRICTED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IW_ENCODE_RESTRICTED@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
LBB0_6:
	str	w8, [x19]
	and	x25, x26, x25
	sub	x26, x25, #1
Lloh28:
	adrp	x8, _DOT11_OID_DEFKEYID@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DOT11_OID_DEFKEYID@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x21
	mov	x2, #0
	mov	x3, #0
	bl	_mgt_get_request
	ldr	x27, [sp, #8]
	cmp	w25, #4
	ccmp	w25, #0, #4, le
	csel	x2, x27, x26, eq
	orr	w8, w23, w22
	orr	w8, w8, w24
	orr	w22, w8, w0
Lloh31:
	adrp	x8, _DOT11_OID_DEFKEYX@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DOT11_OID_DEFKEYX@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x21
	mov	x3, #0
	bl	_mgt_get_request
	orr	w21, w22, w0
	ldr	x22, [sp, #8]
	ldp	w1, w2, [x22]
	str	w2, [x19, #4]
	mov	x0, x20
	bl	_memcpy
	mov	x0, x22
	bl	_kfree
	ldr	w8, [x19]
	add	w9, w27, #1
	orr	w8, w8, w9
	str	w8, [x19]
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_ENCODE_INDEX,4,2            ; @IW_ENCODE_INDEX
	.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_AUTH_BOTH,8,3            ; @DOT11_AUTH_BOTH
	.comm	_IW_ENCODE_RESTRICTED,4,2       ; @IW_ENCODE_RESTRICTED
	.comm	_DOT11_AUTH_OS,8,3              ; @DOT11_AUTH_OS
	.comm	_IW_ENCODE_OPEN,4,2             ; @IW_ENCODE_OPEN
	.comm	_IW_ENCODE_DISABLED,4,2         ; @IW_ENCODE_DISABLED
	.comm	_DOT11_OID_DEFKEYID,4,2         ; @DOT11_OID_DEFKEYID
	.comm	_DOT11_OID_DEFKEYX,4,2          ; @DOT11_OID_DEFKEYX
	.no_dead_strip	_prism54_get_encode
.subsections_via_symbols
