	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_fast_load_pac_bin          ## -- Begin function eap_fast_load_pac_bin
	.p2align	4, 0x90
_eap_fast_load_pac_bin:                 ## @eap_fast_load_pac_bin
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, (%rsi)
	testq	%rdx, %rdx
	je	LBB0_26
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	movl	$7, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_os_readfile
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	movq	%rax, %rbx
	movq	-72(%rbp), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_os_free
	jmp	LBB0_38
LBB0_2:
	leaq	7(%r15), %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_eap_get_config_blob
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	8(%r14), %rbx
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_8
LBB0_11:
	cmpq	$6, %rax
	jb	LBB0_14
## %bb.12:
	movq	%rbx, %rdi
	callq	_WPA_GET_BE32
	movq	_EAP_FAST_PAC_BINARY_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	leaq	16(%rbx), %rdi
	callq	_WPA_GET_BE16
	movq	_EAP_FAST_PAC_BINARY_FORMAT_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
LBB0_14:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	testq	%r14, %r14
	je	LBB0_15
LBB0_26:
	movl	$-1, %r14d
	jmp	LBB0_38
LBB0_6:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdx
	jmp	LBB0_4
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdx
LBB0_4:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_38
LBB0_15:
	movq	%rbx, %rdi
	callq	_os_free
	movl	$-1, %r14d
	jmp	LBB0_38
LBB0_8:
	xorl	%r14d, %r14d
LBB0_38:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	-72(%rbp), %rax
	cmpq	$7, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jl	LBB0_17
## %bb.18:
	leaq	(%rbx,%rax,4), %rdx
	leaq	24(%rbx), %rsi
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rax
	subq	%rsi, %rax
	sarq	$2, %rax
	movq	_EAP_FAST_PAC_KEY_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	$6, %rcx
	cmpq	%rcx, %rax
	jl	LBB0_20
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	$48, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.28:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rax, %rbx
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_WPA_GET_BE16
	movq	%rax, 40(%rbx)
	leaq	8(%r13), %rsi
	movl	32(%rbx), %edi
	movq	_EAP_FAST_PAC_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movq	_EAP_FAST_PAC_KEY_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	8(,%rax,4), %rdi
	addq	%r13, %rdi
	callq	_WPA_GET_BE16
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	16(%r13,%rcx,4), %r13
	movslq	%eax, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	subq	%r13, %rdx
	sarq	$2, %rdx
	cmpq	%rdx, %rcx
	jg	LBB0_21
## %bb.29:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%eax, (%rbx)
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_os_memdup
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_21
## %bb.30:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %rax
	leaq	(%r13,%rax,4), %r13
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rax
	subq	%r13, %rax
	cmpq	$8, %rax
	jl	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r13, %rdi
	callq	_WPA_GET_BE16
	addq	$8, %r13
	movslq	%eax, %rcx
	movq	%rbx, %rdx
	subq	%r13, %rdx
	sarq	$2, %rdx
	cmpq	%rdx, %rcx
	jg	LBB0_31
## %bb.33:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 4(%rbx)
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_os_memdup
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_21
## %bb.34:                              ##   in Loop: Header=BB0_19 Depth=1
	movslq	4(%rbx), %rax
	leaq	(%r13,%rax,4), %r13
	movq	%rbx, %rdi
	callq	_eap_fast_pac_get_a_id
	movq	%r13, %rsi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	incq	%r13
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	8(%rcx), %rax
	testq	%rcx, %rcx
	cmoveq	%r12, %rax
	movq	%rbx, (%rax)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rsi
	jb	LBB0_19
	jmp	LBB0_35
LBB0_17:
	xorl	%r13d, %r13d
LBB0_35:
	testq	%r14, %r14
	jne	LBB0_37
## %bb.36:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_os_free
LBB0_37:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_38
LBB0_20:
	xorl	%ebx, %ebx
LBB0_21:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_31:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_22:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	testq	%r14, %r14
	jne	LBB0_24
## %bb.23:
	movq	%r12, %rdi
	callq	_os_free
LBB0_24:
	testq	%rbx, %rbx
	je	LBB0_26
## %bb.25:
	movq	%rbx, %rdi
	callq	_eap_fast_free_pac
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"blob://"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"EAP-FAST: No PAC blob '%s' - assume no PAC entries have been provisioned"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-FAST: No PAC file '%s' - assume no PAC entries have been provisioned"

	.comm	_EAP_FAST_PAC_BINARY_MAGIC,8,3  ## @EAP_FAST_PAC_BINARY_MAGIC
	.comm	_EAP_FAST_PAC_BINARY_FORMAT_VERSION,8,3 ## @EAP_FAST_PAC_BINARY_FORMAT_VERSION
L_.str.3:                               ## @.str.3
	.asciz	"EAP-FAST: Invalid PAC file '%s' (bin)"

	.comm	_EAP_FAST_PAC_KEY_LEN,4,2       ## @EAP_FAST_PAC_KEY_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"EAP-FAST: Read %lu PAC entries from '%s' (bin)"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-FAST: Failed to parse PAC file '%s' (bin)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_fast_load_pac_bin          ; -- Begin function eap_fast_load_pac_bin
	.p2align	2
_eap_fast_load_pac_bin:                 ; @eap_fast_load_pac_bin
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	xzr, [x1]
	cbz	x2, LBB0_11
; %bb.1:
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	mov	w2, #7
	bl	_os_strncmp
	cbz	x0, LBB0_5
; %bb.2:
	add	x1, sp, #24
	mov	x0, x19
	bl	_os_readfile
	cbz	x0, LBB0_12
; %bb.3:
	mov	x20, x0
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_13
; %bb.4:
	mov	x21, #0
	b	LBB0_7
LBB0_5:
	add	x23, x19, #7
	mov	x0, x20
	mov	x1, x23
	bl	_eap_get_config_blob
	cbz	x0, LBB0_14
; %bb.6:
	mov	x21, x0
	ldp	x8, x20, [x0]
	str	x8, [sp, #24]
	cbz	x8, LBB0_16
LBB0_7:
	cmp	x8, #6
	b.lo	LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_WPA_GET_BE32
Lloh2:
	adrp	x8, _EAP_FAST_PAC_BINARY_MAGIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAP_FAST_PAC_BINARY_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
	add	x0, x20, #16
	bl	_WPA_GET_BE16
Lloh5:
	adrp	x8, _EAP_FAST_PAC_BINARY_FORMAT_VERSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAP_FAST_PAC_BINARY_FORMAT_VERSION@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_19
LBB0_10:
Lloh8:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	cbz	x21, LBB0_18
LBB0_11:
	mov	w0, #-1
	b	LBB0_17
LBB0_12:
Lloh13:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_13:
	mov	x0, x20
	bl	_os_free
	b	LBB0_16
LBB0_14:
Lloh18:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	str	x23, [sp]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_15:
	bl	_wpa_printf
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_18:
	mov	x0, x20
	bl	_os_free
	mov	w0, #-1
	b	LBB0_17
LBB0_19:
	ldr	x8, [sp, #24]
	cmp	x8, #7
	b.lt	LBB0_29
; %bb.20:
	mov	x26, #0
	mov	x25, #0
	add	x24, x20, #24
Lloh23:
	adrp	x27, _EAP_FAST_PAC_KEY_LEN@GOTPAGE
Lloh24:
	ldr	x27, [x27, _EAP_FAST_PAC_KEY_LEN@GOTPAGEOFF]
	add	x28, x20, x8, lsl #2
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	sub	x8, x28, x24
	ldrsw	x9, [x27]
	add	x9, x9, #6
	cmp	x9, x8, asr #2
	b.gt	LBB0_33
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	w0, #48
	bl	_os_zalloc
	mov	x23, x0
	cbz	x0, LBB0_34
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x24
	bl	_WPA_GET_BE16
	str	x0, [x23, #40]
	add	x24, x24, #8
	ldr	w0, [x23, #32]
	ldr	w2, [x27]
	mov	x1, x24
	bl	_os_memcpy
	ldrsw	x8, [x27]
	add	x24, x24, x8, lsl #2
	mov	x0, x24
	bl	_WPA_GET_BE16
	add	x24, x24, #8
	sxtw	x8, w0
	sub	x9, x28, x24
	cmp	x8, x9, asr #2
	b.gt	LBB0_34
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x1, x0
	str	w1, [x23]
	mov	x0, x24
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_os_memdup
	str	x0, [x23, #24]
	cbz	x0, LBB0_34
; %bb.25:                               ;   in Loop: Header=BB0_21 Depth=1
	ldrsw	x8, [x23]
	add	x24, x24, x8, lsl #2
	sub	x8, x28, x24
	cmp	x8, #8
	b.lt	LBB0_34
; %bb.26:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x24
	bl	_WPA_GET_BE16
	add	x24, x24, #8
	sxtw	x8, w0
	sub	x9, x28, x24
	cmp	x8, x9, asr #2
	b.gt	LBB0_34
; %bb.27:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x1, x0
	str	w1, [x23, #4]
	mov	x0, x24
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_os_memdup
	str	x0, [x23, #16]
	cbz	x0, LBB0_34
; %bb.28:                               ;   in Loop: Header=BB0_21 Depth=1
	ldrsw	x8, [x23, #4]
	add	x24, x24, x8, lsl #2
	mov	x0, x23
	bl	_eap_fast_pac_get_a_id
	add	x25, x25, #1
	add	x8, x26, #8
	cmp	x26, #0
	csel	x8, x22, x8, eq
	str	x23, [x8]
	mov	x26, x23
	cmp	x24, x28
	b.lo	LBB0_21
	b	LBB0_30
LBB0_29:
	mov	x25, #0
LBB0_30:
	cbnz	x21, LBB0_32
; %bb.31:
	mov	x0, x20
	bl	_os_free
LBB0_32:
Lloh25:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	stp	x25, x19, [sp]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_33:
	mov	x23, #0
LBB0_34:
Lloh30:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	cbnz	x21, LBB0_36
; %bb.35:
	mov	x0, x20
	bl	_os_free
LBB0_36:
	cbz	x23, LBB0_11
; %bb.37:
	mov	x0, x23
	bl	_eap_fast_free_pac
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"blob://"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"EAP-FAST: No PAC blob '%s' - assume no PAC entries have been provisioned"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-FAST: No PAC file '%s' - assume no PAC entries have been provisioned"

	.comm	_EAP_FAST_PAC_BINARY_MAGIC,8,3  ; @EAP_FAST_PAC_BINARY_MAGIC
	.comm	_EAP_FAST_PAC_BINARY_FORMAT_VERSION,8,3 ; @EAP_FAST_PAC_BINARY_FORMAT_VERSION
l_.str.3:                               ; @.str.3
	.asciz	"EAP-FAST: Invalid PAC file '%s' (bin)"

	.comm	_EAP_FAST_PAC_KEY_LEN,4,2       ; @EAP_FAST_PAC_KEY_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"EAP-FAST: Read %lu PAC entries from '%s' (bin)"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-FAST: Failed to parse PAC file '%s' (bin)"

.subsections_via_symbols
