	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_ioctl_siwauth
_prism2_ioctl_siwauth:                  ## @prism2_ioctl_siwauth
	.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	%rdx, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	_IW_AUTH_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rbx), %ecx
	addl	$-128, %ecx
	cmpl	$9, %ecx
	ja	LBB0_5
## %bb.1:
	movq	(%rax), %r14
	xorl	%r12d, %r12d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	cmpl	$0, 4(%rbx)
	je	LBB0_11
## %bb.3:
	movl	40(%r14), %ebx
	xorl	%r12d, %r12d
	movl	$1, %edi
	movl	$7, %esi
	xorl	%edx, %edx
	callq	_PRISM2_FW_VER
	cmpl	%eax, %ebx
	jge	LBB0_17
## %bb.4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_6:
	movl	4(%rbx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_24
LBB0_7:
	movl	4(%rbx), %eax
	movl	%eax, 24(%r14)
	jmp	LBB0_24
LBB0_8:
	movl	4(%rbx), %eax
	movl	%eax, 20(%r14)
	jmp	LBB0_24
LBB0_9:
	movl	4(%rbx), %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_24
LBB0_10:
	movl	4(%rbx), %eax
	movl	%eax, 8(%r14)
	jmp	LBB0_24
LBB0_11:
	movl	$0, 12(%r14)
	movl	40(%r14), %ebx
	xorl	%r12d, %r12d
	movl	$1, %edi
	movl	$7, %esi
	xorl	%edx, %edx
	callq	_PRISM2_FW_VER
	cmpl	%eax, %ebx
	jl	LBB0_24
## %bb.12:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_prism2_set_genericelement
	movq	$0, 16(%r14)
	movq	_HFA384X_RID_SSNHANDLINGMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_hostap_set_word
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movq	%r14, %rdi
	callq	_hostap_set_roaming
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	callq	_hostap_set_encryption
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	32(%r14), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_26
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_17:
	movl	$1, 20(%r14)
	movabsq	$8589934593, %rax               ## imm = 0x200000001
	movq	%rax, 12(%r14)
	movq	_HFA384X_RID_SSNHANDLINGMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_hostap_set_word
	testl	%eax, %eax
	jne	LBB0_21
## %bb.18:
	movq	%r14, %rdi
	callq	_hostap_set_roaming
	testl	%eax, %eax
	jne	LBB0_21
## %bb.19:
	movq	%r14, %rdi
	callq	_hostap_set_encryption
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	movq	32(%r14), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_26
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_22:
	xorl	%r12d, %r12d
LBB0_23:
	subl	(%rax), %r12d
LBB0_24:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	xorl	%r12d, %r12d
	jmp	LBB0_24
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_24
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_24
	.long	L0_0_set_9
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_IW_AUTH_INDEX,4,2              ## @IW_AUTH_INDEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_HFA384X_RID_SSNHANDLINGMODE,4,2 ## @HFA384X_RID_SSNHANDLINGMODE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_prism2_ioctl_siwauth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function prism2_ioctl_siwauth
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_prism2_ioctl_siwauth:                  ; @prism2_ioctl_siwauth
	.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	x21, x2
	mov	x19, x0
	bl	_netdev_priv
	ldr	w9, [x21]
Lloh0:
	adrp	x10, _IW_AUTH_INDEX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IW_AUTH_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w9, w10, w9
	sub	w9, w9, #128
	cmp	w9, #9
	b.hi	LBB0_4
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	ldr	x20, [x8]
Lloh3:
	adrp	x8, lJTI0_0@PAGE
Lloh4:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_10
; %bb.3:
	ldr	w22, [x20, #40]
	mov	w21, #1
	mov	w0, #1
	mov	w1, #7
	mov	w2, #0
	bl	_PRISM2_FW_VER
	cmp	w22, w0
	b.ge	LBB0_12
LBB0_4:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_18
LBB0_5:
	mov	w0, #0
	ldr	w8, [x21, #4]
	str	w8, [x20]
	b	LBB0_19
LBB0_6:
	mov	w0, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #24]
	b	LBB0_19
LBB0_7:
	mov	w0, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #20]
	b	LBB0_19
LBB0_8:
	mov	w0, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #4]
	b	LBB0_19
LBB0_9:
	mov	w0, #0
	ldr	w8, [x21, #4]
	str	w8, [x20, #8]
	b	LBB0_19
LBB0_10:
	str	wzr, [x20, #12]
	ldr	w21, [x20, #40]
	mov	w0, #1
	mov	w1, #7
	mov	w2, #0
	bl	_PRISM2_FW_VER
	mov	x8, x0
	mov	w0, #0
	cmp	w21, w8
	b.lt	LBB0_19
; %bb.11:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_prism2_set_genericelement
	str	xzr, [x20, #16]
Lloh9:
	adrp	x8, _HFA384X_RID_SSNHANDLINGMODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HFA384X_RID_SSNHANDLINGMODE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	b	LBB0_13
LBB0_12:
	str	w21, [x20, #20]
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #12]
Lloh14:
	adrp	x8, _HFA384X_RID_SSNHANDLINGMODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HFA384X_RID_SSNHANDLINGMODE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
LBB0_13:
	bl	_hostap_set_word
	cbnz	w0, LBB0_17
; %bb.14:
	mov	x0, x20
	bl	_hostap_set_roaming
	cbnz	w0, LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_hostap_set_encryption
	cbnz	w0, LBB0_17
; %bb.16:
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_19
LBB0_17:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_IW_AUTH_INDEX,4,2              ; @IW_AUTH_INDEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_HFA384X_RID_SSNHANDLINGMODE,4,2 ; @HFA384X_RID_SSNHANDLINGMODE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_prism2_ioctl_siwauth
.subsections_via_symbols
