	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_process_pac
_eap_teap_process_pac:                  ## @eap_teap_process_pac
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	callq	_eap_get_config
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_os_memset
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_eap_teap_process_pac_tlv
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	leaq	-48(%rbp), %rdi
	callq	_eap_teap_process_pac_info
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_3:
	movq	%r12, %rbx
	leaq	8(%r12), %rdi
	leaq	28(%r12), %rsi
	leaq	-48(%rbp), %rdx
	callq	_eap_teap_add_pac
	movl	8(%r12), %edi
	movl	24(%r12), %esi
	callq	_eap_teap_pac_list_truncate
	cmpq	$0, 16(%r12)
	movl	8(%r12), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	je	LBB0_5
## %bb.4:
	callq	_eap_teap_save_pac_bin
	jmp	LBB0_6
LBB0_5:
	callq	_eap_teap_save_pac
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpq	$0, (%rbx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	xorl	%eax, %eax
	callq	_eap_teap_tlv_pac_ack
	movq	%rax, %rbx
LBB0_7:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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-TEAP: Send PAC-Acknowledgement - %s initiated provisioning completed successfully"

L_.str.1:                               ## @.str.1
	.asciz	"peer"

L_.str.2:                               ## @.str.2
	.asciz	"server"

	.no_dead_strip	_eap_teap_process_pac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_process_pac
_eap_teap_process_pac:                  ; @eap_teap_process_pac
	.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	x22, x4
	mov	x23, x3
	mov	x19, x1
	mov	x20, x0
	bl	_eap_get_config
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_os_memset
	add	x0, sp, #8
	mov	x1, x23
	mov	x2, x22
	bl	_eap_teap_process_pac_tlv
	cbnz	x0, LBB0_2
; %bb.1:
	add	x0, sp, #8
	bl	_eap_teap_process_pac_info
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, #0
LBB0_3:
	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_4:
	add	x0, x19, #8
	add	x1, x19, #28
	add	x2, sp, #8
	bl	_eap_teap_add_pac
	ldr	w0, [x19, #8]
	ldr	w1, [x19, #24]
	bl	_eap_teap_pac_list_truncate
	ldr	x8, [x19, #16]
	ldr	w1, [x19, #8]
	ldr	w2, [x21]
	mov	x0, x20
	cbz	x8, LBB0_6
; %bb.5:
	bl	_eap_teap_save_pac_bin
	b	LBB0_7
LBB0_6:
	bl	_eap_teap_save_pac
LBB0_7:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, l_.str.1@PAGE
Lloh4:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh5:
	adrp	x10, l_.str.2@PAGE
Lloh6:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	bl	_eap_teap_tlv_pac_ack
	b	LBB0_3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: Send PAC-Acknowledgement - %s initiated provisioning completed successfully"

l_.str.1:                               ; @.str.1
	.asciz	"peer"

l_.str.2:                               ; @.str.2
	.asciz	"server"

	.no_dead_strip	_eap_teap_process_pac
.subsections_via_symbols
