	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nai_realm_parse_realm
_nai_realm_parse_realm:                 ## @nai_realm_parse_realm
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rax
	subq	%rsi, %rax
	cmpq	$15, %rax
	jg	LBB0_3
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_3:
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_WPA_GET_LE16
	leaq	8(%r13), %rcx
	subq	%rcx, %rbx
	sarq	$2, %rbx
	cmpl	$3, %eax
	jl	LBB0_7
## %bb.4:
	movslq	%eax, %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_7
## %bb.5:
	leaq	(%rcx,%rdx,4), %r14
	movl	8(%r13), %eax
	movl	%eax, 24(%r15)
	movslq	12(%r13), %r12
	addq	$16, %r13
	movq	%r14, %rcx
	subq	%r13, %rcx
	sarq	$2, %rcx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	cmpq	%r12, %rcx
	jge	LBB0_10
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%r12d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	jmp	LBB0_8
LBB0_7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%eax, %edx
	movl	%ebx, %ecx
LBB0_8:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_9:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	callq	_wpa_hexdump_ascii
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_dup_binstr
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%rbx, %rcx
	leaq	(,%r12,4), %rbx
	addq	%r13, %rbx
	movq	%r14, %rax
	subq	%rbx, %rax
	cmpq	$3, %rax
	jg	LBB0_14
## %bb.12:
	movl	(%rcx), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_2
LBB0_14:
	movl	(%rbx), %edx
	addq	$4, %rbx
	movl	%edx, (%r15)
	movq	%rcx, %r12
	movl	(%rcx), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movslq	(%r15), %rdi
	leaq	(%rdi,%rdi,2), %rax
	movq	%r14, %rcx
	subq	%rbx, %rcx
	sarq	$2, %rcx
	cmpq	%rax, %rcx
	jge	LBB0_16
## %bb.15:
	movl	(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_2
LBB0_16:
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$4, %esi
	callq	_os_calloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_13
## %bb.17:
	cmpl	$0, (%r15)
	jle	LBB0_23
## %bb.18:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_nai_realm_parse_eap
	testq	%rax, %rax
	je	LBB0_13
## %bb.19:
	movl	$4, %edi
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	movslq	(%r15), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	leaq	4(%rdi), %r12
	addq	8(%r15), %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_nai_realm_parse_eap
	movq	%r12, %rdi
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_9
LBB0_13:
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_23:
	movq	%r14, %r13
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No room for NAI Realm Data fixed fields"

L_.str.1:                               ## @.str.1
	.asciz	"No room for NAI Realm Data (len=%u; left=%u)"

L_.str.2:                               ## @.str.2
	.asciz	"No room for NAI Realm (len=%u; left=%u)"

L_.str.3:                               ## @.str.3
	.asciz	"NAI Realm"

L_.str.4:                               ## @.str.4
	.asciz	"No room for EAP Method Count"

L_.str.5:                               ## @.str.5
	.asciz	"EAP Count: %u"

L_.str.6:                               ## @.str.6
	.asciz	"No room for EAP Methods"

	.no_dead_strip	_nai_realm_parse_realm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nai_realm_parse_realm
_nai_realm_parse_realm:                 ; @nai_realm_parse_realm
	.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
	sub	x8, x2, x1
	cmp	x8, #15
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_WPA_GET_LE16
                                        ; kill: def $w0 killed $w0 def $x0
	add	x10, x21, #8
	sxtw	x8, w0
	sub	x9, x20, x10
	asr	x9, x9, #2
	cmp	w0, #3
	b.lt	LBB0_6
; %bb.3:
	cmp	x9, x8
	b.lt	LBB0_6
; %bb.4:
	add	x20, x10, x8, lsl #2
	ldr	w8, [x21, #8]
	str	w8, [x19, #24]
	add	x22, x21, #16
	ldrsw	x21, [x21, #12]
	sub	x8, x20, x22
Lloh5:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	cmp	x21, x8, asr #2
	b.le	LBB0_9
; %bb.5:
	asr	x8, x8, #2
	stp	x21, x8, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x10, _MSG_DEBUG@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MSG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x10]
	stp	x8, x9, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_wpa_printf
	mov	x0, #0
LBB0_8:
	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_9:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_wpa_hexdump_ascii
	mov	x0, x22
	mov	x1, x21
	bl	_dup_binstr
	str	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.10:
	add	x21, x22, x21, lsl #2
	sub	x8, x20, x21
	cmp	x8, #3
	b.gt	LBB0_12
; %bb.11:
	ldr	w0, [x23]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_12:
	ldr	w8, [x21], #4
	str	w8, [x19]
	ldr	w0, [x23]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	ldrsw	x0, [x19]
	add	x8, x0, x0, lsl #1
	sub	x9, x20, x21
	cmp	x8, x9, asr #2
	b.le	LBB0_14
; %bb.13:
	ldr	w0, [x23]
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_7
LBB0_14:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #4
	bl	_os_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.15:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.16:
	mov	x1, x21
	mov	x2, x20
	bl	_nai_realm_parse_eap
	cbz	x0, LBB0_8
; %bb.17:
	mov	x1, x0
	mov	x21, #0
	mov	w8, #4
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add	x21, x21, #1
	ldrsw	x9, [x19]
	cmp	x21, x9
	b.ge	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x22, x8, #4
	ldr	x9, [x19, #8]
	add	x0, x9, x8
	mov	x2, x20
	bl	_nai_realm_parse_eap
	mov	x1, x0
	mov	x0, #0
	mov	x8, x22
	cbnz	x1, LBB0_18
	b	LBB0_8
LBB0_20:
	mov	x0, x20
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No room for NAI Realm Data fixed fields"

l_.str.1:                               ; @.str.1
	.asciz	"No room for NAI Realm Data (len=%u; left=%u)"

l_.str.2:                               ; @.str.2
	.asciz	"No room for NAI Realm (len=%u; left=%u)"

l_.str.3:                               ; @.str.3
	.asciz	"NAI Realm"

l_.str.4:                               ; @.str.4
	.asciz	"No room for EAP Method Count"

l_.str.5:                               ; @.str.5
	.asciz	"EAP Count: %u"

l_.str.6:                               ; @.str.6
	.asciz	"No room for EAP Methods"

	.no_dead_strip	_nai_realm_parse_realm
.subsections_via_symbols
