	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_fast_add_pac               ## -- Begin function eap_fast_add_pac
	.p2align	4, 0x90
_eap_fast_add_pac:                      ## @eap_fast_add_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r15d
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.1:
	movq	%rdx, %rbx
	movq	48(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.2:
	movq	%rdi, %r14
	movl	40(%rbx), %ecx
	movl	92(%rbx), %r8d
	callq	_eap_fast_remove_pac
	movl	$96, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r12
	movl	92(%rbx), %eax
	movl	%eax, 92(%r12)
	movl	88(%r12), %edi
	movl	88(%rbx), %esi
	movq	_EAP_FAST_PAC_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	leaq	80(%r12), %rdi
	leaq	72(%r12), %rsi
	movq	80(%rbx), %rdx
	movl	72(%rbx), %ecx
	callq	_eap_fast_copy_buf
	testq	%rax, %rax
	js	LBB0_8
## %bb.4:
	leaq	64(%r12), %rdi
	leaq	56(%r12), %rsi
	movq	64(%rbx), %rdx
	movl	56(%rbx), %ecx
	callq	_eap_fast_copy_buf
	testq	%rax, %rax
	js	LBB0_8
## %bb.5:
	leaq	48(%r12), %rdi
	leaq	40(%r12), %rsi
	movq	48(%rbx), %rdx
	movl	40(%rbx), %ecx
	callq	_eap_fast_copy_buf
	testq	%rax, %rax
	js	LBB0_8
## %bb.6:
	leaq	32(%r12), %rdi
	leaq	24(%r12), %rsi
	movq	32(%rbx), %rdx
	movl	24(%rbx), %ecx
	callq	_eap_fast_copy_buf
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:
	leaq	16(%r12), %rdi
	movq	%r12, %rsi
	addq	$8, %rsi
	movq	16(%rbx), %rdx
	movl	8(%rbx), %ecx
	callq	_eap_fast_copy_buf
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movq	(%r14), %rax
	movq	%rax, (%r12)
	movq	%r12, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_8:
	movq	%r12, %rdi
	callq	_eap_fast_free_pac
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_FAST_PAC_KEY_LEN,4,2       ## @EAP_FAST_PAC_KEY_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_fast_add_pac               ; -- Begin function eap_fast_add_pac
	.p2align	2
_eap_fast_add_pac:                      ; @eap_fast_add_pac
	.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
	cbz	x2, LBB0_10
; %bb.1:
	mov	x20, x2
	ldr	x2, [x2, #48]
	cbz	x2, LBB0_10
; %bb.2:
	mov	x19, x0
	ldr	w3, [x20, #40]
	ldr	w4, [x20, #92]
	bl	_eap_fast_remove_pac
	mov	w0, #96
	bl	_os_zalloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x21, x0
	ldp	w1, w8, [x20, #88]
	str	w8, [x0, #92]
	ldr	w0, [x0, #88]
Lloh0:
	adrp	x8, _EAP_FAST_PAC_KEY_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_FAST_PAC_KEY_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_os_memcpy
	add	x0, x21, #80
	add	x1, x21, #72
	ldr	x2, [x20, #80]
	ldr	w3, [x20, #72]
	bl	_eap_fast_copy_buf
	tbnz	x0, #63, LBB0_9
; %bb.4:
	add	x0, x21, #64
	add	x1, x21, #56
	ldr	x2, [x20, #64]
	ldr	w3, [x20, #56]
	bl	_eap_fast_copy_buf
	tbnz	x0, #63, LBB0_9
; %bb.5:
	add	x0, x21, #48
	add	x1, x21, #40
	ldr	x2, [x20, #48]
	ldr	w3, [x20, #40]
	bl	_eap_fast_copy_buf
	tbnz	x0, #63, LBB0_9
; %bb.6:
	add	x0, x21, #32
	add	x1, x21, #24
	ldr	x2, [x20, #32]
	ldr	w3, [x20, #24]
	bl	_eap_fast_copy_buf
	tbnz	x0, #63, LBB0_9
; %bb.7:
	add	x0, x21, #16
	add	x1, x21, #8
	ldr	x2, [x20, #16]
	ldr	w3, [x20, #8]
	bl	_eap_fast_copy_buf
	tbnz	x0, #63, LBB0_9
; %bb.8:
	mov	w0, #0
	ldr	x8, [x19]
	str	x8, [x21]
	str	x21, [x19]
	b	LBB0_11
LBB0_9:
	mov	x0, x21
	bl	_eap_fast_free_pac
LBB0_10:
	mov	w0, #-1
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_FAST_PAC_KEY_LEN,4,2       ; @EAP_FAST_PAC_KEY_LEN
.subsections_via_symbols
