	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee802_1x_encapsulate_radius
_ieee802_1x_encapsulate_radius:         ## @ieee802_1x_encapsulate_radius
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_RADIUS_MAX_ATTR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	incl	%r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	24(%rbx), %edi
	callq	_radius_client_get_id
	movl	%eax, 56(%rbx)
	movq	_RADIUS_CODE_ACCESS_REQUEST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_radius_msg_new
	testq	%rax, %rax
	je	LBB0_31
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_radius_msg_make_authenticator
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	cmpq	$9, %r13
	movq	%r15, %r13
	jb	LBB0_6
## %bb.2:
	movq	(%r13), %rax
	movq	_EAP_CODE_RESPONSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	8(%r13), %rax
	movq	_EAP_TYPE_IDENTITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	(%rbx), %rdi
	callq	_os_free
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	-9(%rax), %rdi
	movq	%rdi, 8(%rbx)
	callq	_os_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	16(%r13), %rsi
	movq	8(%rbx), %rdx
	movq	%rax, %rdi
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump
LBB0_6:
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movq	_RADIUS_ATTR_USER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %ecx
	movq	%r14, %rdi
	callq	_radius_msg_add_attr
	testl	%eax, %eax
	je	LBB0_33
LBB0_8:
	cmpq	$0, 48(%rbx)
	je	LBB0_10
## %bb.9:
	movq	_RADIUS_ATTR_EAP_KEY_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	l_.str.4(%rip), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_radius_msg_add_attr
	testl	%eax, %eax
	je	LBB0_34
LBB0_10:
	movl	32(%rbx), %edi
	movq	_RADIUS_ATTR_NAS_IP_ADDRESS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_find_extra_attr
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	(%r15), %esi
	leaq	40(%rbx), %rdx
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_radius_msg_add_attr
	testl	%eax, %eax
	je	LBB0_35
LBB0_12:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	_RADIUS_802_1X_ADDR_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_MAC2STR
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_os_snprintf
	movl	32(%rbx), %edi
	movq	_RADIUS_ATTR_CALLING_STATION_ID@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_find_extra_attr
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movl	(%r15), %r15d
	movq	%r13, %rdi
	callq	_os_strlen
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_radius_msg_add_attr
	testl	%eax, %eax
	je	LBB0_36
LBB0_14:
	movl	32(%rbx), %edi
	movq	_RADIUS_ATTR_FRAMED_MTU@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_find_extra_attr
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$1400, %edx                     ## imm = 0x578
	callq	_radius_msg_add_attr_int32
	testl	%eax, %eax
	je	LBB0_37
LBB0_16:
	movl	32(%rbx), %edi
	movq	_RADIUS_ATTR_NAS_PORT_TYPE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_find_extra_attr
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movl	(%r15), %esi
	movq	_RADIUS_NAS_PORT_TYPE_IEEE_802_11@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_radius_msg_add_attr_int32
	testl	%eax, %eax
	je	LBB0_38
LBB0_18:
	movl	32(%rbx), %edi
	movq	_RADIUS_ATTR_SERVICE_TYPE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_find_extra_attr
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movl	(%r15), %esi
	movq	_RADIUS_SERVICE_TYPE_FRAMED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_radius_msg_add_attr_int32
	testl	%eax, %eax
	je	LBB0_39
LBB0_20:
	movl	36(%rbx), %ecx
	leaq	L_.str.11(%rip), %rdx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_os_snprintf
	movl	32(%rbx), %edi
	movq	_RADIUS_ATTR_CONNECT_INFO@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_find_extra_attr
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	movl	(%r15), %r15d
	movq	%r13, %rdi
	callq	_os_strlen
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_radius_msg_add_attr
	testl	%eax, %eax
	je	LBB0_40
LBB0_22:
	movl	32(%rbx), %esi
	movq	%r14, %rdi
	callq	_add_extra_attrs
	testq	%rax, %rax
	js	LBB0_44
## %bb.23:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_radius_msg_add_eap
	testl	%eax, %eax
	je	LBB0_41
LBB0_25:
	movl	28(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_30
## %bb.26:
	callq	_radius_msg_get_hdr
	movq	(%rax), %rax
	movq	_RADIUS_CODE_ACCESS_CHALLENGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.27:
	movl	28(%rbx), %esi
	movq	_RADIUS_ATTR_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_radius_msg_copy_attr
	testl	%eax, %eax
	js	LBB0_42
## %bb.28:
	je	LBB0_30
## %bb.29:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.15(%rip), %rsi
	callq	_wpa_printf
LBB0_30:
	movl	24(%rbx), %edi
	movq	_RADIUS_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%rbx), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_radius_client_send
	testq	%rax, %rax
	jns	LBB0_45
	jmp	LBB0_44
LBB0_31:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_47
## %bb.32:
	leaq	L_str.25(%rip), %rdi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_puts                           ## TAILCALL
LBB0_33:
	leaq	L_str.24(%rip), %rdi
	jmp	LBB0_43
LBB0_34:
	leaq	L_str.23(%rip), %rdi
	jmp	LBB0_43
LBB0_35:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_43
LBB0_36:
	leaq	L_str.16(%rip), %rdi
	jmp	LBB0_43
LBB0_37:
	leaq	L_str.17(%rip), %rdi
	jmp	LBB0_43
LBB0_38:
	leaq	L_str.18(%rip), %rdi
	jmp	LBB0_43
LBB0_39:
	leaq	L_str.19(%rip), %rdi
	jmp	LBB0_43
LBB0_40:
	leaq	L_str.20(%rip), %rdi
	jmp	LBB0_43
LBB0_41:
	leaq	L_str.22(%rip), %rdi
	jmp	LBB0_43
LBB0_42:
	leaq	L_str.21(%rip), %rdi
LBB0_43:
	callq	_puts
LBB0_44:
	movq	%r14, %rdi
	callq	_radius_msg_free
LBB0_45:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_47
## %bb.46:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_47:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RADIUS_MAX_ATTR_LEN,4,2        ## @RADIUS_MAX_ATTR_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Encapsulating EAP message into a RADIUS packet"

	.comm	_RADIUS_CODE_ACCESS_REQUEST,4,2 ## @RADIUS_CODE_ACCESS_REQUEST
	.comm	_EAP_CODE_RESPONSE,8,3          ## @EAP_CODE_RESPONSE
	.comm	_EAP_TYPE_IDENTITY,8,3          ## @EAP_TYPE_IDENTITY
L_.str.2:                               ## @.str.2
	.asciz	"Learned identity from EAP-Response-Identity"

	.comm	_RADIUS_ATTR_USER_NAME,4,2      ## @RADIUS_ATTR_USER_NAME
	.comm	_RADIUS_ATTR_EAP_KEY_NAME,4,2   ## @RADIUS_ATTR_EAP_KEY_NAME
	.section	__TEXT,__const
l_.str.4:                               ## @.str.4
	.space	2

	.comm	_RADIUS_ATTR_NAS_IP_ADDRESS,4,2 ## @RADIUS_ATTR_NAS_IP_ADDRESS
	.comm	_RADIUS_802_1X_ADDR_FORMAT,8,3  ## @RADIUS_802_1X_ADDR_FORMAT
	.comm	_RADIUS_ATTR_CALLING_STATION_ID,4,2 ## @RADIUS_ATTR_CALLING_STATION_ID
	.comm	_RADIUS_ATTR_FRAMED_MTU,4,2     ## @RADIUS_ATTR_FRAMED_MTU
	.comm	_RADIUS_ATTR_NAS_PORT_TYPE,4,2  ## @RADIUS_ATTR_NAS_PORT_TYPE
	.comm	_RADIUS_NAS_PORT_TYPE_IEEE_802_11,4,2 ## @RADIUS_NAS_PORT_TYPE_IEEE_802_11
	.comm	_RADIUS_ATTR_SERVICE_TYPE,4,2   ## @RADIUS_ATTR_SERVICE_TYPE
	.comm	_RADIUS_SERVICE_TYPE_FRAMED,4,2 ## @RADIUS_SERVICE_TYPE_FRAMED
	.section	__TEXT,__cstring,cstring_literals
L_.str.11:                              ## @.str.11
	.asciz	"%s"

	.comm	_RADIUS_ATTR_CONNECT_INFO,4,2   ## @RADIUS_ATTR_CONNECT_INFO
	.comm	_RADIUS_CODE_ACCESS_CHALLENGE,8,3 ## @RADIUS_CODE_ACCESS_CHALLENGE
	.comm	_RADIUS_ATTR_STATE,4,2          ## @RADIUS_ATTR_STATE
L_.str.15:                              ## @.str.15
	.asciz	"  Copied RADIUS State Attribute"

	.comm	_RADIUS_AUTH,4,2                ## @RADIUS_AUTH
L_str:                                  ## @str
	.asciz	"Could not add NAS-IP-Address"

L_str.16:                               ## @str.16
	.asciz	"Could not add Calling-Station-Id"

L_str.17:                               ## @str.17
	.asciz	"Could not add Framed-MTU"

L_str.18:                               ## @str.18
	.asciz	"Could not add NAS-Port-Type"

L_str.19:                               ## @str.19
	.asciz	"Could not add Service-Type"

L_str.20:                               ## @str.20
	.asciz	"Could not add Connect-Info"

L_str.21:                               ## @str.21
	.asciz	"Could not copy State attribute from previous Access-Challenge"

L_str.22:                               ## @str.22
	.asciz	"Could not add EAP-Message"

L_str.23:                               ## @str.23
	.asciz	"Could not add EAP-Key-Name"

L_str.24:                               ## @str.24
	.asciz	"Could not add User-Name"

L_str.25:                               ## @str.25
	.asciz	"Could not create net RADIUS packet"

	.no_dead_strip	_ieee802_1x_encapsulate_radius
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee802_1x_encapsulate_radius
_ieee802_1x_encapsulate_radius:         ; @ieee802_1x_encapsulate_radius
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _RADIUS_MAX_ATTR_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RADIUS_MAX_ATTR_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w24, w8, #1
	mov	x9, x24
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
Lloh8:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x20, #24]
	bl	_radius_client_get_id
	mov	x1, x0
	str	w0, [x20, #56]
Lloh12:
	adrp	x8, _RADIUS_CODE_ACCESS_REQUEST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RADIUS_CODE_ACCESS_REQUEST@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_radius_msg_new
	cbz	x0, LBB0_31
; %bb.1:
	mov	x19, x0
	bl	_radius_msg_make_authenticator
	subs	x25, x21, #9
	b.lo	LBB0_6
; %bb.2:
	ldr	x8, [x22]
Lloh15:
	adrp	x9, _EAP_CODE_RESPONSE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EAP_CODE_RESPONSE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x22, #8]
Lloh18:
	adrp	x9, _EAP_TYPE_IDENTITY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EAP_TYPE_IDENTITY@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	x0, [x20]
	bl	_os_free
	str	x25, [x20, #8]
	mov	x0, x25
	bl	_os_malloc
	str	x0, [x20]
	cbz	x0, LBB0_6
; %bb.5:
	add	x1, x22, #16
	ldr	x2, [x20, #8]
	bl	_os_memcpy
	ldr	w0, [x26]
	ldp	x2, x3, [x20]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump
LBB0_6:
	ldr	x2, [x20]
	cbz	x2, LBB0_8
; %bb.7:
Lloh23:
	adrp	x8, _RADIUS_ATTR_USER_NAME@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RADIUS_ATTR_USER_NAME@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w3, [x20, #8]
	mov	x0, x19
	bl	_radius_msg_add_attr
	cbz	w0, LBB0_33
LBB0_8:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_10
; %bb.9:
Lloh26:
	adrp	x8, _RADIUS_ATTR_EAP_KEY_NAME@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RADIUS_ATTR_EAP_KEY_NAME@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.4@PAGE
Lloh30:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w3, #1
	bl	_radius_msg_add_attr
	cbz	w0, LBB0_34
LBB0_10:
	ldr	w0, [x20, #32]
Lloh31:
	adrp	x25, _RADIUS_ATTR_NAS_IP_ADDRESS@GOTPAGE
Lloh32:
	ldr	x25, [x25, _RADIUS_ATTR_NAS_IP_ADDRESS@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_find_extra_attr
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	w1, [x25]
	add	x2, x20, #40
	mov	x0, x19
	mov	w3, #4
	bl	_radius_msg_add_attr
	cbz	w0, LBB0_35
LBB0_12:
Lloh33:
	adrp	x8, _RADIUS_802_1X_ADDR_FORMAT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RADIUS_802_1X_ADDR_FORMAT@GOTPAGEOFF]
Lloh35:
	ldr	x25, [x8]
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_MAC2STR
	mov	x3, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_os_snprintf
	ldr	w0, [x20, #32]
Lloh36:
	adrp	x25, _RADIUS_ATTR_CALLING_STATION_ID@GOTPAGE
Lloh37:
	ldr	x25, [x25, _RADIUS_ATTR_CALLING_STATION_ID@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_find_extra_attr
	cbnz	w0, LBB0_14
; %bb.13:
	ldr	w25, [x25]
	mov	x0, x23
	bl	_os_strlen
	mov	x3, x0
	mov	x0, x19
	mov	x1, x25
	mov	x2, x23
	bl	_radius_msg_add_attr
	cbz	w0, LBB0_36
LBB0_14:
	ldr	w0, [x20, #32]
Lloh38:
	adrp	x25, _RADIUS_ATTR_FRAMED_MTU@GOTPAGE
Lloh39:
	ldr	x25, [x25, _RADIUS_ATTR_FRAMED_MTU@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_find_extra_attr
	cbnz	w0, LBB0_16
; %bb.15:
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #1400
	bl	_radius_msg_add_attr_int32
	cbz	w0, LBB0_37
LBB0_16:
	ldr	w0, [x20, #32]
Lloh40:
	adrp	x25, _RADIUS_ATTR_NAS_PORT_TYPE@GOTPAGE
Lloh41:
	ldr	x25, [x25, _RADIUS_ATTR_NAS_PORT_TYPE@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_find_extra_attr
	cbnz	w0, LBB0_18
; %bb.17:
	ldr	w1, [x25]
Lloh42:
	adrp	x8, _RADIUS_NAS_PORT_TYPE_IEEE_802_11@GOTPAGE
Lloh43:
	ldr	x8, [x8, _RADIUS_NAS_PORT_TYPE_IEEE_802_11@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_radius_msg_add_attr_int32
	cbz	w0, LBB0_38
LBB0_18:
	ldr	w0, [x20, #32]
Lloh45:
	adrp	x25, _RADIUS_ATTR_SERVICE_TYPE@GOTPAGE
Lloh46:
	ldr	x25, [x25, _RADIUS_ATTR_SERVICE_TYPE@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_find_extra_attr
	cbnz	w0, LBB0_20
; %bb.19:
	ldr	w1, [x25]
Lloh47:
	adrp	x8, _RADIUS_SERVICE_TYPE_FRAMED@GOTPAGE
Lloh48:
	ldr	x8, [x8, _RADIUS_SERVICE_TYPE_FRAMED@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_radius_msg_add_attr_int32
	cbz	w0, LBB0_39
LBB0_20:
	ldr	w3, [x20, #36]
Lloh50:
	adrp	x2, l_.str.11@PAGE
Lloh51:
	add	x2, x2, l_.str.11@PAGEOFF
	mov	x0, x23
	mov	x1, x24
	bl	_os_snprintf
	ldr	w0, [x20, #32]
Lloh52:
	adrp	x24, _RADIUS_ATTR_CONNECT_INFO@GOTPAGE
Lloh53:
	ldr	x24, [x24, _RADIUS_ATTR_CONNECT_INFO@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_find_extra_attr
	cbnz	w0, LBB0_22
; %bb.21:
	ldr	w24, [x24]
	mov	x0, x23
	bl	_os_strlen
	mov	x3, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_radius_msg_add_attr
	cbz	w0, LBB0_40
LBB0_22:
	ldr	w1, [x20, #32]
	mov	x0, x19
	bl	_add_extra_attrs
	tbnz	x0, #63, LBB0_44
; %bb.23:
	cbz	x22, LBB0_25
; %bb.24:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_radius_msg_add_eap
	cbz	w0, LBB0_41
LBB0_25:
	ldr	w0, [x20, #28]
	cbz	w0, LBB0_30
; %bb.26:
	bl	_radius_msg_get_hdr
	ldr	x8, [x0]
Lloh54:
	adrp	x9, _RADIUS_CODE_ACCESS_CHALLENGE@GOTPAGE
Lloh55:
	ldr	x9, [x9, _RADIUS_CODE_ACCESS_CHALLENGE@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.27:
	ldr	w1, [x20, #28]
Lloh57:
	adrp	x8, _RADIUS_ATTR_STATE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _RADIUS_ATTR_STATE@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_radius_msg_copy_attr
	tbnz	w0, #31, LBB0_42
; %bb.28:
	cbz	w0, LBB0_30
; %bb.29:
	ldr	w0, [x26]
Lloh60:
	adrp	x1, l_.str.15@PAGE
Lloh61:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_wpa_printf
LBB0_30:
	ldr	w0, [x20, #24]
Lloh62:
	adrp	x8, _RADIUS_AUTH@GOTPAGE
Lloh63:
	ldr	x8, [x8, _RADIUS_AUTH@GOTPAGEOFF]
Lloh64:
	ldr	w2, [x8]
	ldr	x8, [x20, #16]
	ldr	w3, [x8]
	mov	x1, x19
	bl	_radius_client_send
	tbz	x0, #63, LBB0_45
	b	LBB0_44
LBB0_31:
	ldur	x8, [x29, #-72]
Lloh65:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh66:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh67:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_47
; %bb.32:
Lloh68:
	adrp	x0, l_str.25@PAGE
Lloh69:
	add	x0, x0, l_str.25@PAGEOFF
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_puts
LBB0_33:
Lloh70:
	adrp	x0, l_str.24@PAGE
Lloh71:
	add	x0, x0, l_str.24@PAGEOFF
	b	LBB0_43
LBB0_34:
Lloh72:
	adrp	x0, l_str.23@PAGE
Lloh73:
	add	x0, x0, l_str.23@PAGEOFF
	b	LBB0_43
LBB0_35:
Lloh74:
	adrp	x0, l_str@PAGE
Lloh75:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_43
LBB0_36:
Lloh76:
	adrp	x0, l_str.16@PAGE
Lloh77:
	add	x0, x0, l_str.16@PAGEOFF
	b	LBB0_43
LBB0_37:
Lloh78:
	adrp	x0, l_str.17@PAGE
Lloh79:
	add	x0, x0, l_str.17@PAGEOFF
	b	LBB0_43
LBB0_38:
Lloh80:
	adrp	x0, l_str.18@PAGE
Lloh81:
	add	x0, x0, l_str.18@PAGEOFF
	b	LBB0_43
LBB0_39:
Lloh82:
	adrp	x0, l_str.19@PAGE
Lloh83:
	add	x0, x0, l_str.19@PAGEOFF
	b	LBB0_43
LBB0_40:
Lloh84:
	adrp	x0, l_str.20@PAGE
Lloh85:
	add	x0, x0, l_str.20@PAGEOFF
	b	LBB0_43
LBB0_41:
Lloh86:
	adrp	x0, l_str.22@PAGE
Lloh87:
	add	x0, x0, l_str.22@PAGEOFF
	b	LBB0_43
LBB0_42:
Lloh88:
	adrp	x0, l_str.21@PAGE
Lloh89:
	add	x0, x0, l_str.21@PAGEOFF
LBB0_43:
	bl	_puts
LBB0_44:
	mov	x0, x19
	bl	_radius_msg_free
LBB0_45:
	ldur	x8, [x29, #-72]
Lloh90:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh91:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh92:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_47
; %bb.46:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_47:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.cfi_endproc
                                        ; -- End function
	.comm	_RADIUS_MAX_ATTR_LEN,4,2        ; @RADIUS_MAX_ATTR_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Encapsulating EAP message into a RADIUS packet"

	.comm	_RADIUS_CODE_ACCESS_REQUEST,4,2 ; @RADIUS_CODE_ACCESS_REQUEST
	.comm	_EAP_CODE_RESPONSE,8,3          ; @EAP_CODE_RESPONSE
	.comm	_EAP_TYPE_IDENTITY,8,3          ; @EAP_TYPE_IDENTITY
l_.str.2:                               ; @.str.2
	.asciz	"Learned identity from EAP-Response-Identity"

	.comm	_RADIUS_ATTR_USER_NAME,4,2      ; @RADIUS_ATTR_USER_NAME
	.comm	_RADIUS_ATTR_EAP_KEY_NAME,4,2   ; @RADIUS_ATTR_EAP_KEY_NAME
	.section	__TEXT,__const
l_.str.4:                               ; @.str.4
	.space	2

	.comm	_RADIUS_ATTR_NAS_IP_ADDRESS,4,2 ; @RADIUS_ATTR_NAS_IP_ADDRESS
	.comm	_RADIUS_802_1X_ADDR_FORMAT,8,3  ; @RADIUS_802_1X_ADDR_FORMAT
	.comm	_RADIUS_ATTR_CALLING_STATION_ID,4,2 ; @RADIUS_ATTR_CALLING_STATION_ID
	.comm	_RADIUS_ATTR_FRAMED_MTU,4,2     ; @RADIUS_ATTR_FRAMED_MTU
	.comm	_RADIUS_ATTR_NAS_PORT_TYPE,4,2  ; @RADIUS_ATTR_NAS_PORT_TYPE
	.comm	_RADIUS_NAS_PORT_TYPE_IEEE_802_11,4,2 ; @RADIUS_NAS_PORT_TYPE_IEEE_802_11
	.comm	_RADIUS_ATTR_SERVICE_TYPE,4,2   ; @RADIUS_ATTR_SERVICE_TYPE
	.comm	_RADIUS_SERVICE_TYPE_FRAMED,4,2 ; @RADIUS_SERVICE_TYPE_FRAMED
	.section	__TEXT,__cstring,cstring_literals
l_.str.11:                              ; @.str.11
	.asciz	"%s"

	.comm	_RADIUS_ATTR_CONNECT_INFO,4,2   ; @RADIUS_ATTR_CONNECT_INFO
	.comm	_RADIUS_CODE_ACCESS_CHALLENGE,8,3 ; @RADIUS_CODE_ACCESS_CHALLENGE
	.comm	_RADIUS_ATTR_STATE,4,2          ; @RADIUS_ATTR_STATE
l_.str.15:                              ; @.str.15
	.asciz	"  Copied RADIUS State Attribute"

	.comm	_RADIUS_AUTH,4,2                ; @RADIUS_AUTH
l_str:                                  ; @str
	.asciz	"Could not add NAS-IP-Address"

l_str.16:                               ; @str.16
	.asciz	"Could not add Calling-Station-Id"

l_str.17:                               ; @str.17
	.asciz	"Could not add Framed-MTU"

l_str.18:                               ; @str.18
	.asciz	"Could not add NAS-Port-Type"

l_str.19:                               ; @str.19
	.asciz	"Could not add Service-Type"

l_str.20:                               ; @str.20
	.asciz	"Could not add Connect-Info"

l_str.21:                               ; @str.21
	.asciz	"Could not copy State attribute from previous Access-Challenge"

l_str.22:                               ; @str.22
	.asciz	"Could not add EAP-Message"

l_str.23:                               ; @str.23
	.asciz	"Could not add EAP-Key-Name"

l_str.24:                               ; @str.24
	.asciz	"Could not add User-Name"

l_str.25:                               ; @str.25
	.asciz	"Could not create net RADIUS packet"

	.no_dead_strip	_ieee802_1x_encapsulate_radius
.subsections_via_symbols
