	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_common_radius_sta_attr_rsn
_add_common_radius_sta_attr_rsn:        ## @add_common_radius_sta_attr_rsn
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	(%rdx), %edi
	callq	_wpa_auth_sta_wpa_version
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_wpa_auth_get_pairwise
	movl	%eax, %r15d
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_wpa_cipher_to_suite
	cmpl	$-1, %r15d
	movq	%r13, %r15
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movq	_RADIUS_ATTR_WLAN_PAIRWISE_CIPHER@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_hostapd_config_get_radius_attr
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	(%r13), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_radius_msg_add_attr_int32
	testl	%eax, %eax
	je	LBB0_15
LBB0_3:
	movq	(%r12), %rax
	testb	$2, (%rax)
	jne	LBB0_7
## %bb.4:
	cmpq	$0, 24(%rax)
	jne	LBB0_7
## %bb.5:
	movq	_WPA_PROTO_WPA@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_7:
	movq	_WPA_PROTO_RSN@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %edi
	movl	4(%rax), %esi
	callq	_wpa_cipher_to_suite
	movl	%eax, %r12d
	movq	_RADIUS_ATTR_WLAN_GROUP_CIPHER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_hostapd_config_get_radius_attr
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	(%rbx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_radius_msg_add_attr_int32
	testl	%eax, %eax
	je	LBB0_14
LBB0_10:
	movl	(%r14), %edi
	callq	_wpa_auth_sta_key_mgmt
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_wpa_akm_to_suite
	xorl	%r14d, %r14d
	cmpl	$-1, %ebx
	je	LBB0_17
## %bb.11:
	movl	%eax, %r12d
	movq	_RADIUS_ATTR_WLAN_AKM_SUITE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_hostapd_config_get_radius_attr
	testl	%eax, %eax
	jne	LBB0_17
## %bb.12:
	movl	(%rbx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_radius_msg_add_attr_int32
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str(%rip), %rsi
LBB0_16:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wpa_printf
	movl	$-1, %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADIUS_ATTR_WLAN_PAIRWISE_CIPHER,4,2 ## @RADIUS_ATTR_WLAN_PAIRWISE_CIPHER
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not add WLAN-Pairwise-Cipher"

	.comm	_WPA_PROTO_RSN,4,2              ## @WPA_PROTO_RSN
	.comm	_WPA_PROTO_WPA,4,2              ## @WPA_PROTO_WPA
	.comm	_RADIUS_ATTR_WLAN_GROUP_CIPHER,4,2 ## @RADIUS_ATTR_WLAN_GROUP_CIPHER
L_.str.1:                               ## @.str.1
	.asciz	"Could not add WLAN-Group-Cipher"

	.comm	_RADIUS_ATTR_WLAN_AKM_SUITE,4,2 ## @RADIUS_ATTR_WLAN_AKM_SUITE
L_.str.2:                               ## @.str.2
	.asciz	"Could not add WLAN-AKM-Suite"

	.comm	_NO_MGMT_FRAME_PROTECTION,8,3   ## @NO_MGMT_FRAME_PROTECTION
	.comm	_RADIUS_ATTR_WLAN_GROUP_MGMT_CIPHER,4,2 ## @RADIUS_ATTR_WLAN_GROUP_MGMT_CIPHER
	.no_dead_strip	_add_common_radius_sta_attr_rsn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_common_radius_sta_attr_rsn
_add_common_radius_sta_attr_rsn:        ; @add_common_radius_sta_attr_rsn
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	w0, [x2]
	bl	_wpa_auth_sta_wpa_version
	mov	x23, x0
	ldr	w0, [x21]
	bl	_wpa_auth_get_pairwise
	mov	x24, x0
	mov	x0, x23
	mov	x1, x24
	bl	_wpa_cipher_to_suite
	cmn	w24, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x24, _RADIUS_ATTR_WLAN_PAIRWISE_CIPHER@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RADIUS_ATTR_WLAN_PAIRWISE_CIPHER@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_hostapd_config_get_radius_attr
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x23
	bl	_radius_msg_add_attr_int32
	cbz	w0, LBB0_12
LBB0_3:
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _WPA_PROTO_RSN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WPA_PROTO_RSN@GOTPAGEOFF]
	ldrb	w10, [x8]
	tbnz	w10, #1, LBB0_5
; %bb.4:
	ldr	x10, [x8, #24]
Lloh4:
	adrp	x11, _WPA_PROTO_WPA@GOTPAGE
Lloh5:
	ldr	x11, [x11, _WPA_PROTO_WPA@GOTPAGEOFF]
	cmp	x10, #0
	csel	x9, x11, x9, eq
LBB0_5:
	ldr	w0, [x9]
	ldr	w1, [x8, #4]
	bl	_wpa_cipher_to_suite
	mov	x22, x0
Lloh6:
	adrp	x23, _RADIUS_ATTR_WLAN_GROUP_CIPHER@GOTPAGE
Lloh7:
	ldr	x23, [x23, _RADIUS_ATTR_WLAN_GROUP_CIPHER@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_hostapd_config_get_radius_attr
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x22
	bl	_radius_msg_add_attr_int32
	cbz	w0, LBB0_11
LBB0_7:
	ldr	w0, [x21]
	bl	_wpa_auth_sta_key_mgmt
	mov	x22, x0
	bl	_wpa_akm_to_suite
	cmn	w22, #1
	b.eq	LBB0_10
; %bb.8:
	mov	x21, x0
Lloh8:
	adrp	x22, _RADIUS_ATTR_WLAN_AKM_SUITE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _RADIUS_ATTR_WLAN_AKM_SUITE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_hostapd_config_get_radius_attr
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_radius_msg_add_attr_int32
	cbz	w0, LBB0_13
LBB0_10:
	mov	w0, #0
	b	LBB0_15
LBB0_11:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
Lloh16:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_wpa_printf
	mov	w0, #-1
LBB0_15:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_RADIUS_ATTR_WLAN_PAIRWISE_CIPHER,4,2 ; @RADIUS_ATTR_WLAN_PAIRWISE_CIPHER
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not add WLAN-Pairwise-Cipher"

	.comm	_WPA_PROTO_RSN,4,2              ; @WPA_PROTO_RSN
	.comm	_WPA_PROTO_WPA,4,2              ; @WPA_PROTO_WPA
	.comm	_RADIUS_ATTR_WLAN_GROUP_CIPHER,4,2 ; @RADIUS_ATTR_WLAN_GROUP_CIPHER
l_.str.1:                               ; @.str.1
	.asciz	"Could not add WLAN-Group-Cipher"

	.comm	_RADIUS_ATTR_WLAN_AKM_SUITE,4,2 ; @RADIUS_ATTR_WLAN_AKM_SUITE
l_.str.2:                               ; @.str.2
	.asciz	"Could not add WLAN-AKM-Suite"

	.comm	_NO_MGMT_FRAME_PROTECTION,8,3   ; @NO_MGMT_FRAME_PROTECTION
	.comm	_RADIUS_ATTR_WLAN_GROUP_MGMT_CIPHER,4,2 ; @RADIUS_ATTR_WLAN_GROUP_MGMT_CIPHER
	.no_dead_strip	_add_common_radius_sta_attr_rsn
.subsections_via_symbols
