	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ttls_parse_attr_eap
_eap_ttls_parse_attr_eap:               ## @eap_ttls_parse_attr_eap
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %rsi
	addq	%r14, %rsi
	callq	_os_realloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r12
	movq	(%rbx), %rax
	leaq	(%r12,%rax,4), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_os_memcpy
	movq	%r12, 8(%rbx)
	addq	%r14, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_os_memdup
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%r14, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_5:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movl	$-1, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TTLS: AVP - EAP Message"

	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TTLS: Failed to allocate memory for Phase 2 EAP data"

	.no_dead_strip	_eap_ttls_parse_attr_eap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ttls_parse_attr_eap
_eap_ttls_parse_attr_eap:               ; @eap_ttls_parse_attr_eap
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	add	x1, x8, x20
	bl	_os_realloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	ldr	x8, [x19]
	add	x0, x0, x8, lsl #2
	mov	x1, x21
	mov	x2, x20
	bl	_os_memcpy
	mov	w0, #0
	ldr	x8, [x19]
	add	x8, x8, x20
	stp	x8, x22, [x19]
	b	LBB0_6
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	bl	_os_memdup
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
LBB0_6:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TTLS: AVP - EAP Message"

	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TTLS: Failed to allocate memory for Phase 2 EAP data"

	.no_dead_strip	_eap_ttls_parse_attr_eap
.subsections_via_symbols
