	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nai_realm_parse
_nai_realm_parse:                       ## @nai_realm_parse
	.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
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_wpabuf_len
	cmpq	$2, %rax
	jae	LBB0_4
LBB0_14:
	xorl	%r14d, %r14d
LBB0_15:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_wpabuf_head_u8
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_WPA_GET_LE16
	movq	%rax, %r12
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-2(%r13), %rcx
	movabsq	$-3689348814741910323, %rdx     ## imm = 0xCCCCCCCCCCCCCCCD
	movq	%rcx, %rax
	mulq	%rdx
	shrq	$2, %rdx
	cmpq	%rdx, %r12
	jbe	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r12, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_15
LBB0_6:
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_os_calloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movq	%rax, %r14
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_11
## %bb.8:
	leaq	(%rbx,%r13,4), %r13
	addq	$8, %rbx
	movq	%r14, %r12
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_nai_realm_parse_realm
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rbx
	addq	$4, %r12
	decq	%r15
	jne	LBB0_9
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	jmp	LBB0_15
LBB0_13:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_nai_realm_free
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NAI Realm Count: %u"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid NAI Realm Count %u - not enough data (%u octets) for that many realms"

	.no_dead_strip	_nai_realm_parse
.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
_nai_realm_parse:                       ; @nai_realm_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_wpabuf_len
	subs	x21, x0, #2
	b.lo	LBB0_4
; %bb.2:
	mov	x22, x0
	mov	x0, x20
	bl	_wpabuf_head_u8
	mov	x23, x0
	bl	_WPA_GET_LE16
	mov	x20, x0
Lloh0:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_wpa_printf
	mov	x8, #-3689348814741910324
	movk	x8, #52429
	umulh	x8, x21, x8
	cmp	x20, x8, lsr #2
	b.ls	LBB0_6
; %bb.3:
	ldr	w0, [x24]
	str	x21, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_wpa_printf
LBB0_4:
	mov	x21, #0
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	mov	x0, x20
	mov	w1, #4
	bl	_os_calloc
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.7:
	cbz	x20, LBB0_11
; %bb.8:
	add	x1, x23, #8
	mov	x24, x21
	mov	x25, x20
	add	x22, x23, x22, lsl #2
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x2, x22
	bl	_nai_realm_parse_realm
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x0
	add	x24, x24, #4
	subs	x25, x25, #1
	b.ne	LBB0_9
LBB0_11:
	str	x20, [x19]
	b	LBB0_5
LBB0_12:
	mov	x0, x21
	mov	x1, x20
	bl	_nai_realm_free
	b	LBB0_4
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NAI Realm Count: %u"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid NAI Realm Count %u - not enough data (%u octets) for that many realms"

	.no_dead_strip	_nai_realm_parse
.subsections_via_symbols
