	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_add_pac_data
_eap_teap_add_pac_data:                 ## @eap_teap_add_pac_data
	.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, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	(%rdx), %rdi
	movl	(%rsi), %esi
	addl	(%rcx), %esi
	subl	%edi, %esi
	movl	44(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_os_snprintf
	movl	%eax, %r12d
	movl	(%r13), %edi
	addl	(%r14), %edi
	subl	(%r15), %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	movl	$-1, %ecx
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movslq	%r12d, %rax
	addq	%rax, (%r15)
	movl	40(%rbx), %r8d
	movq	_EAP_TEAP_PAC_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, (%rsp)
	leaq	L_.str.1(%rip), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_eap_teap_write
	movl	32(%rbx), %r9d
	movl	36(%rbx), %r8d
	movl	$0, (%rsp)
	leaq	L_.str.2(%rip), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_eap_teap_write
	movl	24(%rbx), %r9d
	movl	28(%rbx), %r8d
	movl	$0, (%rsp)
	leaq	L_.str.3(%rip), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_eap_teap_write
	movl	16(%rbx), %r9d
	movl	20(%rbx), %r8d
	movl	$0, (%rsp)
	leaq	L_.str.4(%rip), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_eap_teap_write
	movl	8(%rbx), %r9d
	movl	12(%rbx), %r8d
	movl	$1, (%rsp)
	leaq	L_.str.5(%rip), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_eap_teap_write
	movl	(%rbx), %r9d
	movl	4(%rbx), %r8d
	movl	$1, (%rsp)
	leaq	L_.str.6(%rip), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_eap_teap_write
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	(%r15), %rdi
	addl	(%r14), %esi
	subl	%edi, %esi
	leaq	L_.str.8(%rip), %rdx
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_os_snprintf
	movl	%eax, %ebx
	movl	(%r13), %edi
	addl	(%r14), %edi
	subl	(%r15), %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	movl	$-1, %ecx
	jne	LBB0_5
## %bb.4:
	movslq	%ebx, %rax
	addq	%rax, (%r15)
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_wpa_printf
	movl	$-1, %ecx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"START\nPAC-Type=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"PAC-Key"

	.comm	_EAP_TEAP_PAC_KEY_LEN,4,2       ## @EAP_TEAP_PAC_KEY_LEN
L_.str.2:                               ## @.str.2
	.asciz	"PAC-Opaque"

L_.str.3:                               ## @.str.3
	.asciz	"PAC-Info"

L_.str.4:                               ## @.str.4
	.asciz	"A-ID"

L_.str.5:                               ## @.str.5
	.asciz	"I-ID"

L_.str.6:                               ## @.str.6
	.asciz	"A-ID-Info"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.7:                               ## @.str.7
	.asciz	"EAP-TEAP: No memory for PAC data"

L_.str.8:                               ## @.str.8
	.asciz	"END\n"

	.no_dead_strip	_eap_teap_add_pac_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_add_pac_data
_eap_teap_add_pac_data:                 ; @eap_teap_add_pac_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x0, [x2]
	ldr	w8, [x1]
	ldr	w9, [x3]
	add	w8, w8, w9
	sub	w1, w8, w0
	ldr	w8, [x22, #44]
	str	x8, [sp]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	bl	_os_snprintf
	mov	x23, x0
	ldr	w8, [x21]
	ldr	w9, [x20]
	ldr	w10, [x19]
	add	w8, w8, w9
	sub	w0, w8, w10
	mov	x1, x23
	bl	_os_snprintf_error
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	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
	add	sp, sp, #80
	ret
LBB0_3:
	ldr	x8, [x19]
	add	x8, x8, w23, sxtw
	str	x8, [x19]
	ldr	w4, [x22, #40]
Lloh2:
	adrp	x8, _EAP_TEAP_PAC_KEY_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAP_TEAP_PAC_KEY_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w5, [x8]
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w6, #0
	bl	_eap_teap_write
	ldp	w5, w4, [x22, #32]
Lloh7:
	adrp	x3, l_.str.2@PAGE
Lloh8:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w6, #0
	bl	_eap_teap_write
	ldp	w5, w4, [x22, #24]
Lloh9:
	adrp	x3, l_.str.3@PAGE
Lloh10:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w6, #0
	bl	_eap_teap_write
	ldp	w5, w4, [x22, #16]
Lloh11:
	adrp	x3, l_.str.4@PAGE
Lloh12:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w6, #0
	bl	_eap_teap_write
	ldp	w5, w4, [x22, #8]
Lloh13:
	adrp	x3, l_.str.5@PAGE
Lloh14:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w6, #1
	bl	_eap_teap_write
	ldp	w5, w4, [x22]
Lloh15:
	adrp	x3, l_.str.6@PAGE
Lloh16:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w6, #1
	bl	_eap_teap_write
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x0, [x19]
	ldr	w9, [x20]
	add	w8, w8, w9
	sub	w1, w8, w0
Lloh17:
	adrp	x2, l_.str.8@PAGE
Lloh18:
	add	x2, x2, l_.str.8@PAGEOFF
	bl	_os_snprintf
	mov	x22, x0
	ldr	w8, [x21]
	ldr	w9, [x20]
	ldr	w10, [x19]
	add	w8, w8, w9
	sub	w0, w8, w10
	mov	x1, x22
	bl	_os_snprintf_error
	cbnz	x0, LBB0_1
; %bb.5:
	ldr	x8, [x19]
	add	x8, x8, w22, sxtw
	str	x8, [x19]
	b	LBB0_2
LBB0_6:
Lloh19:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"START\nPAC-Type=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"PAC-Key"

	.comm	_EAP_TEAP_PAC_KEY_LEN,4,2       ; @EAP_TEAP_PAC_KEY_LEN
l_.str.2:                               ; @.str.2
	.asciz	"PAC-Opaque"

l_.str.3:                               ; @.str.3
	.asciz	"PAC-Info"

l_.str.4:                               ; @.str.4
	.asciz	"A-ID"

l_.str.5:                               ; @.str.5
	.asciz	"I-ID"

l_.str.6:                               ; @.str.6
	.asciz	"A-ID-Info"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.7:                               ; @.str.7
	.asciz	"EAP-TEAP: No memory for PAC data"

l_.str.8:                               ; @.str.8
	.asciz	"END\n"

	.no_dead_strip	_eap_teap_add_pac_data
.subsections_via_symbols
