	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nai_realm_find_eap
_nai_realm_find_eap:                    ## @nai_realm_find_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	%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	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rsi
	leaq	L_.str.1(%rip), %rdi
	movq	%rdi, %rcx
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.1:
	cmpb	$0, (%rsi)
	je	LBB0_17
## %bb.2:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpb	$0, (%rax)
	jne	LBB0_6
LBB0_4:
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.5:
	cmpb	$0, (%rcx)
	movq	%rsi, %rcx
	je	LBB0_18
LBB0_6:
	cmpq	$0, (%rdx)
	je	LBB0_19
## %bb.7:
	movl	$1, %r12d
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx), %r15
	leaq	(%r15,%r14), %r13
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$0, (%rax)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rcx, %rbx
	callq	_nai_realm_cred_username
	movq	%rbx, %rcx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_21
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$0, (%rax)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rcx, %r15
	callq	_nai_realm_cred_cert
	movq	%r15, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_20
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	(%rdx), %r12
	jae	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rbx), %rax
	incq	%r12
	addq	$4, %r14
	incq	%rcx
	jmp	LBB0_8
LBB0_17:
	movq	%rsi, %rcx
LBB0_18:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %r8
	testq	%r8, %r8
	cmoveq	%rdi, %r8
	movq	16(%rbx), %r9
	testq	%r9, %r9
	cmoveq	%rdi, %r9
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_wpa_msg
LBB0_19:
	xorl	%r13d, %r13d
LBB0_20:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	leaq	(%r15,%rcx,4), %r13
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nai-realm-find-eap: incomplete cred info: username: %s  password: %s private_key: %s"

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

	.no_dead_strip	_nai_realm_find_eap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nai_realm_find_eap
_nai_realm_find_eap:                    ; @nai_realm_find_eap
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	x3, [x1]
Lloh0:
	adrp	x9, l_.str.1@PAGE
Lloh1:
	add	x9, x9, l_.str.1@PAGEOFF
	cbz	x3, LBB0_16
; %bb.1:
	ldrb	w8, [x3]
	cbz	w8, LBB0_17
; %bb.2:
	mov	x21, x2
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldrb	w10, [x8]
	cbnz	w10, LBB0_6
LBB0_4:
	ldr	x10, [x20, #16]
	cbz	x10, LBB0_17
; %bb.5:
	ldrb	w10, [x10]
	cbz	w10, LBB0_17
LBB0_6:
	ldr	x9, [x21]
	cbz	x9, LBB0_18
; %bb.7:
	mov	x23, #0
	mov	x24, #0
	mov	w25, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x21, #8]
	add	x22, x26, x23
	cbz	x8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x8]
	cbz	w8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_nai_realm_cred_username
	cbnz	x0, LBB0_20
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x8]
	cbz	w8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_nai_realm_cred_cert
	cbnz	x0, LBB0_21
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21]
	cmp	x25, x8
	b.hs	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #8]
	add	x25, x25, #1
	add	x23, x23, #4
	add	x24, x24, #1
	b	LBB0_8
LBB0_16:
	mov	x3, x9
LBB0_17:
Lloh2:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldp	x8, x10, [x20, #8]
	cmp	x8, #0
	csel	x4, x9, x8, eq
	cmp	x10, #0
	csel	x5, x9, x10, eq
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wpa_msg
LBB0_18:
	mov	x0, #0
LBB0_19:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
	add	x0, x26, x24, lsl #2
	b	LBB0_19
LBB0_21:
	add	x0, x26, x23
	b	LBB0_19
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nai-realm-find-eap: incomplete cred info: username: %s  password: %s private_key: %s"

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

	.no_dead_strip	_nai_realm_find_eap
.subsections_via_symbols
