	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism54_get_encodeext
_prism54_get_encodeext:                 ## @prism54_get_encodeext
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_islpci_get_state
	movq	_PRV_STATE_INIT@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	jl	LBB0_26
## %bb.1:
	movq	_DOT11_OID_AUTHENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r12
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_mgt_get_request
	movl	-48(%rbp), %r13d
	movq	_DOT11_OID_PRIVACYINVOKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_mgt_get_request
	movl	-48(%rbp), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_DOT11_OID_EXUNENCRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_mgt_get_request
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_26
## %bb.2:
	movl	(%r15), %eax
	addl	$-12, %eax
	js	LBB0_3
## %bb.5:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_IW_ENCODE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r15), %eax
	movl	%eax, %r13d
	decl	%r13d
	je	LBB0_7
## %bb.6:
	addl	$-5, %eax
	cmpl	$-5, %eax
	ja	LBB0_9
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_26
LBB0_7:
	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, %r12d
	testl	%eax, %eax
	js	LBB0_26
## %bb.8:
	movl	-48(%rbp), %r13d
LBB0_9:
	leal	1(%r13), %eax
	movl	%eax, 4(%r15)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	$130, %eax
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_12
## %bb.10:
	cmpl	$132, %eax
	jne	LBB0_11
LBB0_12:
	movq	_IW_ENCODE_RESTRICTED@GOTPCREL(%rip), %rcx
	movl	4(%r15), %eax
	orl	(%rcx), %eax
	jmp	LBB0_13
LBB0_11:
	movl	4(%r15), %eax
LBB0_13:
	movq	_IW_ENCODE_OPEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%r15)
	movq	%rbx, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_down_write
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_up_write
	cmpl	$131, -52(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_18
## %bb.14:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_18
## %bb.15:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_18
## %bb.16:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_18
## %bb.17:
	movq	_IW_ENCODE_ALG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movl	$0, (%rcx)
	movq	_IW_ENCODE_DISABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_18:
	movq	_DOT11_OID_DEFKEYX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_mgt_get_request
	movl	%eax, %r12d
	testl	%eax, %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	js	LBB0_26
## %bb.19:
	movq	-48(%rbp), %rbx
	movl	(%rbx), %edx
	cmpl	%edx, -60(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_21
## %bb.20:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_21:
	movl	8(%r14), %edi
	movl	8(%rbx), %esi
	callq	_memcpy
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	cmpl	$129, 4(%rbx)
	jne	LBB0_22
## %bb.23:
	movq	_IW_ENCODE_ALG_TKIP@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_22:
	movq	_IW_ENCODE_ALG_WEP@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_IW_ENCODE_ENABLED@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
LBB0_26:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRV_STATE_INIT,8,3             ## @PRV_STATE_INIT
	.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	_EINVAL,4,2                     ## @EINVAL
	.comm	_IW_ENCODE_INDEX,4,2            ## @IW_ENCODE_INDEX
	.comm	_DOT11_OID_DEFKEYID,4,2         ## @DOT11_OID_DEFKEYID
	.comm	_IW_ENCODE_RESTRICTED,4,2       ## @IW_ENCODE_RESTRICTED
	.comm	_IW_ENCODE_OPEN,4,2             ## @IW_ENCODE_OPEN
	.comm	_IW_ENCODE_ALG_NONE,4,2         ## @IW_ENCODE_ALG_NONE
	.comm	_IW_ENCODE_DISABLED,4,2         ## @IW_ENCODE_DISABLED
	.comm	_DOT11_OID_DEFKEYX,4,2          ## @DOT11_OID_DEFKEYX
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_IW_ENCODE_ALG_TKIP,4,2         ## @IW_ENCODE_ALG_TKIP
	.comm	_IW_ENCODE_ALG_WEP,4,2          ## @IW_ENCODE_ALG_WEP
	.comm	_IW_ENCODE_ENABLED,4,2          ## @IW_ENCODE_ENABLED
	.no_dead_strip	_prism54_get_encodeext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism54_get_encodeext
_prism54_get_encodeext:                 ; @prism54_get_encodeext
	.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	x22, 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.ge	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_24
LBB0_2:
Lloh3:
	adrp	x8, _DOT11_OID_AUTHENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DOT11_OID_AUTHENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x22
	mov	w2, #0
	mov	x3, #0
	bl	_mgt_get_request
	ldr	w26, [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, x22
	mov	w2, #0
	mov	x3, #0
	bl	_mgt_get_request
	ldr	w27, [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, x22
	mov	w2, #0
	mov	x3, #0
	bl	_mgt_get_request
	mov	x21, x0
	tbnz	w0, #31, LBB0_24
; %bb.3:
	ldr	w8, [x19]
	subs	w24, w8, #12
	b.mi	LBB0_6
; %bb.4:
	ldr	w28, [sp, #8]
	ldr	w8, [x19, #4]
Lloh12:
	adrp	x9, _IW_ENCODE_INDEX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IW_ENCODE_INDEX@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w8, w9, w8
	subs	w23, w8, #1
	b.eq	LBB0_8
; %bb.5:
	sub	w8, w8, #5
	cmn	w8, #5
	b.hi	LBB0_10
LBB0_6:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_24
LBB0_8:
Lloh17:
	adrp	x8, _DOT11_OID_DEFKEYID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DOT11_OID_DEFKEYID@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x22
	mov	w2, #0
	mov	x3, #0
	bl	_mgt_get_request
	mov	x21, x0
	tbnz	w0, #31, LBB0_24
; %bb.9:
	ldr	w23, [sp, #8]
LBB0_10:
	add	w8, w23, #1
	str	w8, [x19, #4]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	cmp	w26, #130
	str	w24, [sp, #4]                   ; 4-byte Folded Spill
	b.eq	LBB0_12
; %bb.11:
	cmp	w26, #132
	b.ne	LBB0_13
LBB0_12:
Lloh20:
	adrp	x8, _IW_ENCODE_RESTRICTED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IW_ENCODE_RESTRICTED@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	b	LBB0_14
LBB0_13:
	ldr	w8, [x19, #4]
LBB0_14:
Lloh23:
	adrp	x9, _IW_ENCODE_OPEN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IW_ENCODE_OPEN@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #4]
	add	x24, x22, #4
	mov	x0, x24
	bl	_down_write
	ldr	w25, [x22]
	mov	x0, x24
	bl	_up_write
	cmp	w26, #131
	b.ne	LBB0_19
; %bb.15:
	cbnz	w28, LBB0_19
; %bb.16:
	cbnz	w27, LBB0_19
; %bb.17:
	cbnz	w25, LBB0_19
; %bb.18:
Lloh26:
	adrp	x8, _IW_ENCODE_ALG_NONE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IW_ENCODE_ALG_NONE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	stp	wzr, w8, [x20]
Lloh29:
	adrp	x8, _IW_ENCODE_DISABLED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IW_ENCODE_DISABLED@GOTPAGEOFF]
	b	LBB0_23
LBB0_19:
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, x22
	mov	x2, x23
	mov	x3, #0
	bl	_mgt_get_request
	mov	x21, x0
	tbnz	w0, #31, LBB0_24
; %bb.20:
	ldr	x22, [sp, #8]
	ldr	w2, [x22]
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w8, w2
	b.ge	LBB0_22
; %bb.21:
Lloh34:
	adrp	x8, _E2BIG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
	b	LBB0_7
LBB0_22:
	ldr	w0, [x20, #8]
	ldr	w1, [x22, #8]
	bl	_memcpy
	ldp	w8, w9, [x22]
	str	w8, [x20]
Lloh36:
	adrp	x8, _IW_ENCODE_ALG_TKIP@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IW_ENCODE_ALG_TKIP@GOTPAGEOFF]
Lloh38:
	adrp	x10, _IW_ENCODE_ALG_WEP@GOTPAGE
Lloh39:
	ldr	x10, [x10, _IW_ENCODE_ALG_WEP@GOTPAGEOFF]
	cmp	w9, #129
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	str	w8, [x20, #4]
Lloh40:
	adrp	x8, _IW_ENCODE_ENABLED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IW_ENCODE_ENABLED@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_24:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_PRV_STATE_INIT,8,3             ; @PRV_STATE_INIT
	.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	_EINVAL,4,2                     ; @EINVAL
	.comm	_IW_ENCODE_INDEX,4,2            ; @IW_ENCODE_INDEX
	.comm	_DOT11_OID_DEFKEYID,4,2         ; @DOT11_OID_DEFKEYID
	.comm	_IW_ENCODE_RESTRICTED,4,2       ; @IW_ENCODE_RESTRICTED
	.comm	_IW_ENCODE_OPEN,4,2             ; @IW_ENCODE_OPEN
	.comm	_IW_ENCODE_ALG_NONE,4,2         ; @IW_ENCODE_ALG_NONE
	.comm	_IW_ENCODE_DISABLED,4,2         ; @IW_ENCODE_DISABLED
	.comm	_DOT11_OID_DEFKEYX,4,2          ; @DOT11_OID_DEFKEYX
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_IW_ENCODE_ALG_TKIP,4,2         ; @IW_ENCODE_ALG_TKIP
	.comm	_IW_ENCODE_ALG_WEP,4,2          ; @IW_ENCODE_ALG_WEP
	.comm	_IW_ENCODE_ENABLED,4,2          ; @IW_ENCODE_ENABLED
	.no_dead_strip	_prism54_get_encodeext
.subsections_via_symbols
