	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anqp_add_nai_realm
_anqp_add_nai_realm:                    ## @anqp_add_nai_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, %r15d
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testl	%r8d, %r8d
	je	LBB0_3
## %bb.1:
	testl	%r13d, %r13d
	jne	LBB0_3
## %bb.2:
	movq	_ANQP_NAI_REALM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_anqp_add_override
	testq	%rax, %rax
	jne	LBB0_17
LBB0_3:
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_14
## %bb.5:
	movq	_ANQP_NAI_REALM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gas_anqp_add_element
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_le16
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.6:
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	subq	%r15, %rax
	shrq	$2, %rax
	decl	%eax
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_anqp_add_nai_realm_eap
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_gas_anqp_set_element_len
	incq	%r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %ecx
	cmpq	%rcx, %r14
	jae	LBB0_13
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	8(%rax), %r12
	movq	%r14, %r13
	shlq	$4, %r13
	leaq	(%r12,%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_wpabuf_put
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movsbl	(%r12,%r13), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_wpabuf_put
	movq	%rax, %r15
	movq	8(%r12,%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	%r13, %r12
	addq	$8, %r12
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	(%rax,%r13,8), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	incl	%r13d
	movq	(%r12), %rax
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_12
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%r13, %r13
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%rbx, %rdi
	movl	$59, %esi
	callq	_wpabuf_put_u8
	movq	(%r12), %rax
	jmp	LBB0_11
LBB0_14:
	testl	%r13d, %r13d
	je	LBB0_17
## %bb.15:
	testq	%r12, %r12
	je	LBB0_17
## %bb.16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_17
## %bb.18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hs20_add_nai_home_realm_matches ## TAILCALL
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gas_anqp_set_element_len       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ANQP_NAI_REALM,4,2             ## @ANQP_NAI_REALM
	.no_dead_strip	_anqp_add_nai_realm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anqp_add_nai_realm
_anqp_add_nai_realm:                    ; @anqp_add_nai_realm
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x5
	mov	x24, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	cbz	w4, LBB0_3
; %bb.1:
	cbnz	w23, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ANQP_NAI_REALM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ANQP_NAI_REALM@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_anqp_add_override
	cbnz	x0, LBB0_17
LBB0_3:
	cbz	w24, LBB0_13
; %bb.4:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_13
; %bb.5:
Lloh3:
	adrp	x8, _ANQP_NAI_REALM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ANQP_NAI_REALM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gas_anqp_add_element
	mov	x21, x0
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_le16
	ldr	x8, [x20]
	ldr	w9, [x8]
	cbz	w9, LBB0_18
; %bb.6:
	mov	x25, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_wpabuf_put
	sub	x8, x0, x24
	lsr	x8, x8, #2
	sub	w8, w8, #1
	str	w8, [x24]
	mov	x0, x19
	mov	x1, x22
	bl	_anqp_add_nai_realm_eap
	mov	x0, x19
	mov	x1, x23
	bl	_gas_anqp_set_element_len
	add	x25, x25, #1
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	x25, x9
	b.hs	LBB0_18
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x8, #8]
	add	x22, x8, x25, lsl #4
	mov	x0, x19
	mov	w1, #2
	bl	_wpabuf_put
	mov	x23, x0
	ldrsb	w1, [x22]
	mov	x0, x19
	bl	_wpabuf_put_u8
	mov	x0, x19
	mov	w1, #1
	bl	_wpabuf_put
	mov	x24, x0
	mov	x26, x22
	ldr	x8, [x26, #8]!
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x27, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x1, [x8, x27, lsl #3]
	mov	x0, x19
	bl	_wpabuf_put_str
	add	w27, w27, #1
	ldr	x8, [x26]
	ldr	x9, [x8, w27, uxtw #3]
	cbz	x9, LBB0_7
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x27, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x19
	mov	w1, #59
	bl	_wpabuf_put_u8
	ldr	x8, [x26]
	b	LBB0_10
LBB0_13:
	cbz	w23, LBB0_17
; %bb.14:
	cbz	x22, LBB0_17
; %bb.15:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, 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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_hs20_add_nai_home_realm_matches
LBB0_17:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	x0, x19
	mov	x1, 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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_gas_anqp_set_element_len
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ANQP_NAI_REALM,4,2             ; @ANQP_NAI_REALM
	.no_dead_strip	_anqp_add_nai_realm
.subsections_via_symbols
