	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_ioctl_get_encryption
_prism2_ioctl_get_encryption:           ## @prism2_ioctl_get_encryption
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	$0, 32(%rsi)
	movl	16(%rsi), %eax
	movl	%ebx, %r14d
	subl	%eax, %r14d
	addl	%edx, %r14d
	js	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	movl	40(%rbx), %edi
	callq	_is_broadcast_ether_addr
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	(%rbx), %rax
	movq	_WEP_KEYS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jb	LBB0_4
## %bb.3:
	movq	8(%r15), %rax
	movq	%rax, (%rbx)
LBB0_4:
	shlq	$3, %rax
	addq	16(%r15), %rax
	movq	%rax, -40(%rbp)
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_6:
	movq	$0, (%rbx)
	movl	(%r15), %edi
	movl	40(%rbx), %esi
	xorl	%r12d, %r12d
	leaq	-40(%rbp), %rcx
	xorl	%edx, %edx
	callq	_ap_crypt_get_ptrs
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:
	movq	%rax, %r15
	movq	-40(%rbp), %rax
LBB0_8:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	28(%rbx), %edi
	movl	8(%rax), %esi
	movq	_HOSTAP_CRYPT_ALG_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strncpy
	movl	$0, 24(%rbx)
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	-40(%rbp), %rax
	movq	(%rax), %rcx
	movq	8(%rcx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	16(%rbx), %rdi
	movl	8(%rbx), %edx
	movl	(%rcx), %ecx
	movl	%r14d, %esi
	callq	*%rax
	movl	%eax, 24(%rbx)
	jmp	LBB0_13
LBB0_12:
	movl	28(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$5, %edx
	callq	_memcpy
	movl	$0, 24(%rbx)
	movq	$255, (%rbx)
LBB0_13:
	xorl	%r12d, %r12d
	testq	%r15, %r15
	je	LBB0_17
## %bb.14:
	movq	%r15, %rdi
	callq	_hostap_handle_sta_release
	jmp	LBB0_17
LBB0_15:
	movq	_HOSTAP_CRYPT_ERR_UNKNOWN_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	subl	(%rax), %r12d
LBB0_17:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WEP_KEYS,8,3                   ## @WEP_KEYS
	.comm	_HOSTAP_CRYPT_ERR_UNKNOWN_ADDR,8,3 ## @HOSTAP_CRYPT_ERR_UNKNOWN_ADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"none"

	.comm	_HOSTAP_CRYPT_ALG_NAME_LEN,4,2  ## @HOSTAP_CRYPT_ALG_NAME_LEN
	.no_dead_strip	_prism2_ioctl_get_encryption
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism2_ioctl_get_encryption
_prism2_ioctl_get_encryption:           ; @prism2_ioctl_get_encryption
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	str	xzr, [x1, #32]
	ldr	w8, [x1, #16]
	sub	w8, w19, w8
	adds	w20, w8, w2
	b.mi	LBB0_15
; %bb.1:
	mov	x22, x0
	ldr	w0, [x19, #40]
	bl	_is_broadcast_ether_addr
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _WEP_KEYS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WEP_KEYS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lo	LBB0_4
; %bb.3:
	ldr	x8, [x22, #8]
	str	x8, [x19]
LBB0_4:
	mov	x21, #0
	ldr	x9, [x22, #16]
	add	x8, x9, x8, lsl #3
	str	x8, [sp, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
	b	LBB0_10
LBB0_5:
	str	xzr, [x19]
	ldr	w0, [x22]
	ldr	w1, [x19, #40]
	add	x3, sp, #8
	mov	w2, #0
	bl	_ap_crypt_get_ptrs
	cbz	x0, LBB0_14
; %bb.6:
	mov	x21, x0
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
LBB0_7:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	w0, [x19, #28]
	ldr	w1, [x8, #8]
Lloh3:
	adrp	x8, _HOSTAP_CRYPT_ALG_NAME_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HOSTAP_CRYPT_ALG_NAME_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_strncpy
	str	wzr, [x19, #24]
	ldr	w0, [x19, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [sp, #8]
	ldr	x9, [x8]
	ldr	x8, [x9, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	x0, [x19, #16]
	ldr	w2, [x19, #8]
	ldr	w3, [x9]
	mov	x1, x20
	blr	x8
	str	w0, [x19, #24]
	b	LBB0_11
LBB0_10:
	ldr	w0, [x19, #28]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	bl	_memcpy
	str	wzr, [x19, #24]
	mov	w8, #255
	str	x8, [x19]
LBB0_11:
	cbz	x21, LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_hostap_handle_sta_release
LBB0_13:
	mov	w0, #0
	b	LBB0_16
LBB0_14:
Lloh8:
	adrp	x8, _HOSTAP_CRYPT_ERR_UNKNOWN_ADDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HOSTAP_CRYPT_ERR_UNKNOWN_ADDR@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19, #32]
LBB0_15:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WEP_KEYS,8,3                   ; @WEP_KEYS
	.comm	_HOSTAP_CRYPT_ERR_UNKNOWN_ADDR,8,3 ; @HOSTAP_CRYPT_ERR_UNKNOWN_ADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"none"

	.comm	_HOSTAP_CRYPT_ALG_NAME_LEN,4,2  ; @HOSTAP_CRYPT_ALG_NAME_LEN
	.no_dead_strip	_prism2_ioctl_get_encryption
.subsections_via_symbols
