	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism54_get_auth
_prism54_get_auth:                      ## @prism54_get_auth
	.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	%rdx, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_islpci_get_state
	movq	_PRV_STATE_INIT@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jl	LBB0_24
## %bb.1:
	movq	%rbx, %rdi
	callq	_down_write
	movl	4(%rbx), %r12d
	movq	%rbx, %rdi
	callq	_up_write
	movq	_IW_AUTH_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_3
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_24
LBB0_4:
	cmpl	$2, %r12d
	je	LBB0_19
## %bb.5:
	cmpl	$1, %r12d
	jne	LBB0_20
## %bb.6:
	movq	_IW_AUTH_WPA_VERSION_WPA@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_7:
	xorl	%eax, %eax
	testl	%r12d, %r12d
	jmp	LBB0_13
LBB0_8:
	movq	_DOT11_OID_DOT1XENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_DOT11_OID_PRIVACYINVOKED@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_DOT11_OID_EXUNENCRYPTED@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	leaq	-40(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_mgt_get_request
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_24
## %bb.12:
	xorl	%eax, %eax
	cmpl	$0, -40(%rbp)
LBB0_13:
	setg	%al
	jmp	LBB0_23
LBB0_14:
	movq	_DOT11_OID_AUTHENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_mgt_get_request
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_24
## %bb.15:
	movl	-40(%rbp), %eax
	cmpl	$137, %eax
	je	LBB0_21
## %bb.16:
	cmpl	$140, %eax
	je	LBB0_21
## %bb.17:
	cmpl	$138, %eax
	jne	LBB0_25
## %bb.18:
	movq	_IW_AUTH_ALG_OPEN_SYSTEM@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_19:
	movq	_IW_AUTH_WPA_VERSION_WPA2@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_20:
	movq	_IW_AUTH_WPA_VERSION_DISABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_21:
	movq	_IW_AUTH_ALG_SHARED_KEY@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %eax
LBB0_23:
	movl	%eax, 4(%r14)
LBB0_24:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	$0, 4(%r14)
	jmp	LBB0_24
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-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_3, LBB0_3-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_3
	.long	L0_0_set_10
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_PRV_STATE_INIT,8,3             ## @PRV_STATE_INIT
	.comm	_IW_AUTH_INDEX,4,2              ## @IW_AUTH_INDEX
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_IW_AUTH_WPA_VERSION_WPA,4,2    ## @IW_AUTH_WPA_VERSION_WPA
	.comm	_IW_AUTH_WPA_VERSION_WPA2,4,2   ## @IW_AUTH_WPA_VERSION_WPA2
	.comm	_IW_AUTH_WPA_VERSION_DISABLED,4,2 ## @IW_AUTH_WPA_VERSION_DISABLED
	.comm	_DOT11_OID_EXUNENCRYPTED,4,2    ## @DOT11_OID_EXUNENCRYPTED
	.comm	_DOT11_OID_AUTHENABLE,4,2       ## @DOT11_OID_AUTHENABLE
	.comm	_IW_AUTH_ALG_OPEN_SYSTEM,4,2    ## @IW_AUTH_ALG_OPEN_SYSTEM
	.comm	_IW_AUTH_ALG_SHARED_KEY,4,2     ## @IW_AUTH_ALG_SHARED_KEY
	.comm	_DOT11_OID_DOT1XENABLE,4,2      ## @DOT11_OID_DOT1XENABLE
	.comm	_DOT11_OID_PRIVACYINVOKED,4,2   ## @DOT11_OID_PRIVACYINVOKED
	.no_dead_strip	_prism54_get_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism54_get_auth
_prism54_get_auth:                      ; @prism54_get_auth
	.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, x2
	bl	_netdev_priv
	mov	x20, 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	w0, #0
	b	LBB0_25
LBB0_2:
	mov	x0, x20
	bl	_down_write
	ldr	w21, [x20, #4]
	mov	x0, x20
	bl	_up_write
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _IW_AUTH_INDEX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IW_AUTH_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_4
; %bb.3:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_25
LBB0_5:
	cmp	w21, #2
	b.eq	LBB0_20
; %bb.6:
	cmp	w21, #1
	b.ne	LBB0_21
; %bb.7:
	mov	w0, #0
Lloh11:
	adrp	x8, _IW_AUTH_WPA_VERSION_WPA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IW_AUTH_WPA_VERSION_WPA@GOTPAGEOFF]
	b	LBB0_23
LBB0_8:
	mov	w0, #0
	cmp	w21, #0
	b	LBB0_14
LBB0_9:
Lloh13:
	adrp	x8, _DOT11_OID_DOT1XENABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DOT11_OID_DOT1XENABLE@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh15:
	adrp	x8, _DOT11_OID_PRIVACYINVOKED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DOT11_OID_PRIVACYINVOKED@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh17:
	adrp	x8, _DOT11_OID_EXUNENCRYPTED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DOT11_OID_EXUNENCRYPTED@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x20
	mov	w2, #0
	mov	x3, #0
	bl	_mgt_get_request
	tbnz	w0, #31, LBB0_25
; %bb.13:
	ldr	w8, [sp, #8]
	cmp	w8, #0
LBB0_14:
	cset	w8, gt
	b	LBB0_24
LBB0_15:
Lloh19:
	adrp	x8, _DOT11_OID_AUTHENABLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DOT11_OID_AUTHENABLE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x20
	mov	w2, #0
	mov	x3, #0
	bl	_mgt_get_request
	tbnz	w0, #31, LBB0_25
; %bb.16:
	ldr	w8, [sp, #8]
	cmp	w8, #137
	b.eq	LBB0_22
; %bb.17:
	cmp	w8, #140
	b.eq	LBB0_22
; %bb.18:
	cmp	w8, #138
	b.ne	LBB0_26
; %bb.19:
Lloh22:
	adrp	x8, _IW_AUTH_ALG_OPEN_SYSTEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IW_AUTH_ALG_OPEN_SYSTEM@GOTPAGEOFF]
	b	LBB0_23
LBB0_20:
	mov	w0, #0
Lloh24:
	adrp	x8, _IW_AUTH_WPA_VERSION_WPA2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IW_AUTH_WPA_VERSION_WPA2@GOTPAGEOFF]
	b	LBB0_23
LBB0_21:
	mov	w0, #0
Lloh26:
	adrp	x8, _IW_AUTH_WPA_VERSION_DISABLED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IW_AUTH_WPA_VERSION_DISABLED@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:
Lloh28:
	adrp	x8, _IW_AUTH_ALG_SHARED_KEY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IW_AUTH_ALG_SHARED_KEY@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
LBB0_24:
	str	w8, [x19, #4]
LBB0_25:
	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
LBB0_26:
	str	wzr, [x19, #4]
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
                                        ; -- End function
	.comm	_PRV_STATE_INIT,8,3             ; @PRV_STATE_INIT
	.comm	_IW_AUTH_INDEX,4,2              ; @IW_AUTH_INDEX
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_IW_AUTH_WPA_VERSION_WPA,4,2    ; @IW_AUTH_WPA_VERSION_WPA
	.comm	_IW_AUTH_WPA_VERSION_WPA2,4,2   ; @IW_AUTH_WPA_VERSION_WPA2
	.comm	_IW_AUTH_WPA_VERSION_DISABLED,4,2 ; @IW_AUTH_WPA_VERSION_DISABLED
	.comm	_DOT11_OID_EXUNENCRYPTED,4,2    ; @DOT11_OID_EXUNENCRYPTED
	.comm	_DOT11_OID_AUTHENABLE,4,2       ; @DOT11_OID_AUTHENABLE
	.comm	_IW_AUTH_ALG_OPEN_SYSTEM,4,2    ; @IW_AUTH_ALG_OPEN_SYSTEM
	.comm	_IW_AUTH_ALG_SHARED_KEY,4,2     ; @IW_AUTH_ALG_SHARED_KEY
	.comm	_DOT11_OID_DOT1XENABLE,4,2      ; @DOT11_OID_DOT1XENABLE
	.comm	_DOT11_OID_PRIVACYINVOKED,4,2   ; @DOT11_OID_PRIVACYINVOKED
	.no_dead_strip	_prism54_get_auth
.subsections_via_symbols
