	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nai_realm_cred_username
_nai_realm_cred_username:               ## @nai_realm_cred_username
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	(%rsi), %rsi
	callq	_eap_get_name
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	movq	_EAP_TYPE_TTLS@GOTPCREL(%rip), %r12
	movq	_EAP_TYPE_PEAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_EAP_TYPE_FAST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r12), %rcx
	je	LBB0_6
## %bb.3:
	cmpq	%rdx, %rcx
	je	LBB0_6
## %bb.4:
	cmpq	%rax, %rcx
	je	LBB0_6
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_30
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rdx
LBB0_30:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wpa_msg
LBB0_31:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	%rdx, %rcx
	je	LBB0_8
## %bb.7:
	cmpq	%rax, %rcx
	jne	LBB0_14
LBB0_8:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.9:
	movl	(%r15), %edi
	callq	_eap_get_name
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	cmpq	$0, 8(%rbx)
	jne	LBB0_14
LBB0_12:
	movl	(%r15), %edi
	movq	_EAP_TYPE_MSCHAPV2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_eap_get_name
	testq	%rax, %rax
	je	LBB0_13
LBB0_14:
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_26
## %bb.15:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.18:
	movl	(%r15), %edi
	callq	_eap_get_name
	testq	%rax, %rax
	je	LBB0_32
## %bb.19:
	movq	16(%rbx), %rcx
	jmp	LBB0_20
LBB0_16:
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
LBB0_20:
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.21:
	movq	_NAI_REALM_INNER_NON_EAP_PAP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_26
## %bb.22:
	movq	_NAI_REALM_INNER_NON_EAP_CHAP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_26
## %bb.23:
	movq	_NAI_REALM_INNER_NON_EAP_MSCHAP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_26
## %bb.24:
	movq	_NAI_REALM_INNER_NON_EAP_MSCHAPV2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_26
## %bb.25:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_30
LBB0_26:
	movq	8(%rbx), %rcx
	movl	$1, %ebx
	testq	%rcx, %rcx
	je	LBB0_31
## %bb.27:
	movq	_EAP_TYPE_GTC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_31
## %bb.28:
	movq	_EAP_TYPE_MSCHAPV2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_31
## %bb.29:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_30
LBB0_10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rcx
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_30
LBB0_13:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wpa_msg
	jmp	LBB0_31
LBB0_32:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rcx
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_30
LBB0_17:
	movl	$1, %ebx
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nai-realm-cred-username: EAP method not supported: %d"

	.comm	_EAP_TYPE_TTLS,8,3              ## @EAP_TYPE_TTLS
	.comm	_EAP_TYPE_PEAP,8,3              ## @EAP_TYPE_PEAP
	.comm	_EAP_TYPE_FAST,8,3              ## @EAP_TYPE_FAST
L_.str.1:                               ## @.str.1
	.asciz	"nai-realm-cred-username: Method: %d is not TTLS, PEAP, or FAST"

L_.str.2:                               ## @.str.2
	.asciz	"nai-realm-cred-username: PEAP/FAST: Inner method not supported: %d"

	.comm	_EAP_TYPE_MSCHAPV2,8,3          ## @EAP_TYPE_MSCHAPV2
L_.str.3:                               ## @.str.3
	.asciz	"nai-realm-cred-username: MSCHAPv2 not supported"

L_.str.4:                               ## @.str.4
	.asciz	"nai-realm-cred-username: TTLS, but inner not supported: %d"

	.comm	_NAI_REALM_INNER_NON_EAP_PAP,8,3 ## @NAI_REALM_INNER_NON_EAP_PAP
	.comm	_NAI_REALM_INNER_NON_EAP_CHAP,8,3 ## @NAI_REALM_INNER_NON_EAP_CHAP
	.comm	_NAI_REALM_INNER_NON_EAP_MSCHAP,8,3 ## @NAI_REALM_INNER_NON_EAP_MSCHAP
	.comm	_NAI_REALM_INNER_NON_EAP_MSCHAPV2,8,3 ## @NAI_REALM_INNER_NON_EAP_MSCHAPV2
L_.str.5:                               ## @.str.5
	.asciz	"nai-realm-cred-username: TTLS, inner-non-eap not supported: %d"

	.comm	_EAP_TYPE_GTC,8,3               ## @EAP_TYPE_GTC
L_.str.6:                               ## @.str.6
	.asciz	"nai-realm-cred-username: inner-method not GTC or MSCHAPv2: %d"

	.no_dead_strip	_nai_realm_cred_username
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nai_realm_cred_username
_nai_realm_cred_username:               ; @nai_realm_cred_username
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _EAP_VENDOR_IETF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EAP_VENDOR_IETF@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x1, [x1]
	bl	_eap_get_name
	cbz	x0, LBB0_11
; %bb.1:
	ldr	x8, [x20]
Lloh2:
	adrp	x22, _EAP_TYPE_TTLS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EAP_TYPE_TTLS@GOTPAGEOFF]
	ldr	x11, [x22]
Lloh4:
	adrp	x9, _EAP_TYPE_PEAP@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EAP_TYPE_PEAP@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _EAP_TYPE_FAST@GOTPAGE
Lloh8:
	ldr	x10, [x10, _EAP_TYPE_FAST@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, x11
	ccmp	x8, x9, #4, ne
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_12
; %bb.2:
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.3:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_6
; %bb.4:
	ldr	w0, [x21]
	bl	_eap_get_name
	cbz	x0, LBB0_23
; %bb.5:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_7
LBB0_6:
	ldr	w0, [x21]
Lloh10:
	adrp	x8, _EAP_TYPE_MSCHAPV2@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAP_TYPE_MSCHAPV2@GOTPAGEOFF]
Lloh12:
	ldr	x1, [x8]
	bl	_eap_get_name
	cbz	x0, LBB0_24
LBB0_7:
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.8:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_13
; %bb.9:
	ldr	w0, [x21]
	bl	_eap_get_name
	cbz	x0, LBB0_25
; %bb.10:
	ldr	x8, [x20, #16]
	b	LBB0_14
LBB0_11:
Lloh13:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_26
LBB0_12:
Lloh18:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_26
LBB0_13:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_28
LBB0_14:
	cbz	x8, LBB0_20
; %bb.15:
Lloh23:
	adrp	x9, _NAI_REALM_INNER_NON_EAP_PAP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NAI_REALM_INNER_NON_EAP_PAP@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.16:
Lloh26:
	adrp	x9, _NAI_REALM_INNER_NON_EAP_CHAP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _NAI_REALM_INNER_NON_EAP_CHAP@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.17:
Lloh29:
	adrp	x9, _NAI_REALM_INNER_NON_EAP_MSCHAP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _NAI_REALM_INNER_NON_EAP_MSCHAP@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.18:
Lloh32:
	adrp	x9, _NAI_REALM_INNER_NON_EAP_MSCHAPV2@GOTPAGE
Lloh33:
	ldr	x9, [x9, _NAI_REALM_INNER_NON_EAP_MSCHAPV2@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.19:
Lloh35:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh36:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh38:
	adrp	x2, l_.str.5@PAGE
Lloh39:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_26
LBB0_20:
	ldr	x8, [x20, #8]
	mov	w0, #1
	cbz	x8, LBB0_27
; %bb.21:
Lloh40:
	adrp	x9, _EAP_TYPE_GTC@GOTPAGE
Lloh41:
	ldr	x9, [x9, _EAP_TYPE_GTC@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
Lloh43:
	adrp	x10, _EAP_TYPE_MSCHAPV2@GOTPAGE
Lloh44:
	ldr	x10, [x10, _EAP_TYPE_MSCHAPV2@GOTPAGEOFF]
Lloh45:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_27
; %bb.22:
Lloh46:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh47:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh49:
	adrp	x2, l_.str.6@PAGE
Lloh50:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_26
LBB0_23:
Lloh51:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh54:
	adrp	x2, l_.str.2@PAGE
Lloh55:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_26
LBB0_24:
Lloh56:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh57:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
Lloh59:
	adrp	x2, l_.str.3@PAGE
Lloh60:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_26
LBB0_25:
Lloh61:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh62:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh64:
	adrp	x2, l_.str.4@PAGE
Lloh65:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_26:
	mov	x0, x19
	bl	_wpa_msg
	mov	w0, #0
LBB0_27:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_28:
	mov	w0, #1
	b	LBB0_27
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nai-realm-cred-username: EAP method not supported: %d"

	.comm	_EAP_TYPE_TTLS,8,3              ; @EAP_TYPE_TTLS
	.comm	_EAP_TYPE_PEAP,8,3              ; @EAP_TYPE_PEAP
	.comm	_EAP_TYPE_FAST,8,3              ; @EAP_TYPE_FAST
l_.str.1:                               ; @.str.1
	.asciz	"nai-realm-cred-username: Method: %d is not TTLS, PEAP, or FAST"

l_.str.2:                               ; @.str.2
	.asciz	"nai-realm-cred-username: PEAP/FAST: Inner method not supported: %d"

	.comm	_EAP_TYPE_MSCHAPV2,8,3          ; @EAP_TYPE_MSCHAPV2
l_.str.3:                               ; @.str.3
	.asciz	"nai-realm-cred-username: MSCHAPv2 not supported"

l_.str.4:                               ; @.str.4
	.asciz	"nai-realm-cred-username: TTLS, but inner not supported: %d"

	.comm	_NAI_REALM_INNER_NON_EAP_PAP,8,3 ; @NAI_REALM_INNER_NON_EAP_PAP
	.comm	_NAI_REALM_INNER_NON_EAP_CHAP,8,3 ; @NAI_REALM_INNER_NON_EAP_CHAP
	.comm	_NAI_REALM_INNER_NON_EAP_MSCHAP,8,3 ; @NAI_REALM_INNER_NON_EAP_MSCHAP
	.comm	_NAI_REALM_INNER_NON_EAP_MSCHAPV2,8,3 ; @NAI_REALM_INNER_NON_EAP_MSCHAPV2
l_.str.5:                               ; @.str.5
	.asciz	"nai-realm-cred-username: TTLS, inner-non-eap not supported: %d"

	.comm	_EAP_TYPE_GTC,8,3               ; @EAP_TYPE_GTC
l_.str.6:                               ; @.str.6
	.asciz	"nai-realm-cred-username: inner-method not GTC or MSCHAPv2: %d"

	.no_dead_strip	_nai_realm_cred_username
.subsections_via_symbols
