	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_ioctl_priv_hostapd
_prism2_ioctl_priv_hostapd:             ## @prism2_ioctl_priv_hostapd
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	(%rsi), %esi
	cmpl	$4, %esi
	jb	LBB0_5
## %bb.1:
	movq	_PRISM2_HOSTAPD_MAX_BUF_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jg	LBB0_5
## %bb.2:
	movq	%rdi, %r15
	movl	4(%r12), %edi
	testl	%edi, %edi
	je	LBB0_5
## %bb.3:
	callq	_memdup_user
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_10
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_prism2_ioctl_set_encryption
	jmp	LBB0_18
LBB0_10:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_prism2_hostapd
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	cmpl	$1, %eax
	je	LBB0_19
	jmp	LBB0_21
LBB0_11:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_prism2_ioctl_set_rid
	jmp	LBB0_18
LBB0_12:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_prism2_ioctl_set_generic_element
	jmp	LBB0_18
LBB0_13:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_prism2_ioctl_set_assoc_ap_addr
	jmp	LBB0_18
LBB0_14:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_prism2_ioctl_scan_req
	jmp	LBB0_18
LBB0_15:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_prism2_ioctl_mlme
	jmp	LBB0_18
LBB0_16:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_prism2_ioctl_get_rid
	jmp	LBB0_18
LBB0_17:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_prism2_ioctl_get_encryption
LBB0_18:
	movl	%eax, %r15d
LBB0_19:
	movl	(%r12), %edx
	movl	4(%r12), %edi
	movq	%r14, %rsi
	callq	_copy_to_user
	movl	%r15d, %ebx
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_6
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_PRISM2_HOSTAPD_MAX_BUF_SIZE,4,2 ## @PRISM2_HOSTAPD_MAX_BUF_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_prism2_ioctl_priv_hostapd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism2_ioctl_priv_hostapd
_prism2_ioctl_priv_hostapd:             ; @prism2_ioctl_priv_hostapd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	ldr	w1, [x1]
Lloh0:
	adrp	x8, _PRISM2_HOSTAPD_MAX_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRISM2_HOSTAPD_MAX_BUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w1, #4
	ccmp	w1, w8, #0, hs
	b.gt	LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	w0, [x20, #4]
	cbz	w0, LBB0_4
; %bb.2:
	bl	_memdup_user
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_16
; %bb.7:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	ldr	w2, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_prism2_ioctl_set_encryption
	mov	x21, x0
	b	LBB0_18
LBB0_9:
	ldr	w2, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_prism2_ioctl_set_rid
	mov	x21, x0
	b	LBB0_18
LBB0_10:
	ldr	w2, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_prism2_ioctl_set_generic_element
	mov	x21, x0
	b	LBB0_18
LBB0_11:
	ldr	w2, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_prism2_ioctl_set_assoc_ap_addr
	mov	x21, x0
	b	LBB0_18
LBB0_12:
	mov	x0, x21
	mov	x1, x19
	bl	_prism2_ioctl_scan_req
	mov	x21, x0
	b	LBB0_18
LBB0_13:
	mov	x0, x21
	mov	x1, x19
	bl	_prism2_ioctl_mlme
	mov	x21, x0
	b	LBB0_18
LBB0_14:
	ldr	w2, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_prism2_ioctl_get_rid
	mov	x21, x0
	b	LBB0_18
LBB0_15:
	ldr	w2, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_prism2_ioctl_get_encryption
	mov	x21, x0
	b	LBB0_18
LBB0_16:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_prism2_hostapd
	mov	x21, x0
	cmp	w0, #1
	b.ne	LBB0_20
; %bb.17:
	mov	w21, #0
LBB0_18:
	ldp	w2, w0, [x20]
	mov	x1, x19
	bl	_copy_to_user
	cbz	x0, LBB0_20
; %bb.19:
Lloh8:
	adrp	x8, _EFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_20:
	mov	x0, x19
	bl	_kfree
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_9-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
                                        ; -- End function
	.comm	_PRISM2_HOSTAPD_MAX_BUF_SIZE,4,2 ; @PRISM2_HOSTAPD_MAX_BUF_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_prism2_ioctl_priv_hostapd
.subsections_via_symbols
