	.file	"extr_gas_serv.c_anqp_add_nai_realm.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	anqp_add_nai_realm, @function
anqp_add_nai_realm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	test	r8d, r8d
	je	.L37
	test	r9d, r9d
	je	.L40
	test	r8d, r8d
	je	.L37
.L6:
	mov	rax, QWORD PTR [r14]
	cmp	QWORD PTR 8[rax], 0
	je	.L1
	mov	esi, DWORD PTR ANQP_NAI_REALM[rip]
	mov	rdi, r15
	xor	r12d, r12d
	call	gas_anqp_add_element@PLT
	mov	rdi, r15
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR [r14]
	mov	esi, DWORD PTR [rax]
	call	wpabuf_put_le16@PLT
	mov	rax, QWORD PTR [r14]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	je	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	mov	ebp, r12d
	mov	esi, 2
	mov	rdi, r15
	xor	r13d, r13d
	sal	rbp, 4
	add	rbp, QWORD PTR 8[rax]
	call	wpabuf_put@PLT
	movsx	esi, BYTE PTR 0[rbp]
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], rax
	call	wpabuf_put_u8@PLT
	mov	esi, 1
	mov	rdi, r15
	call	wpabuf_put@PLT
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR [rax]
	test	rsi, rsi
	je	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r15
	lea	ebx, 1[r13]
	call	wpabuf_put_str@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	r13, rbx
	mov	rsi, QWORD PTR [rax+rbx*8]
	test	rsi, rsi
	je	.L13
	test	r13d, r13d
	je	.L9
	mov	esi, 59
	mov	rdi, r15
	call	wpabuf_put_u8@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR [rax+rbx*8]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L40:
	mov	edx, DWORD PTR ANQP_NAI_REALM[rip]
	call	anqp_add_override@PLT
	test	rax, rax
	je	.L6
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, r15
	add	r12d, 1
	call	wpabuf_put@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	rsi, rbp
	mov	rdi, r15
	sub	rax, rcx
	sar	rax, 2
	sub	eax, 1
	mov	DWORD PTR [rcx], eax
	call	anqp_add_nai_realm_eap@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, r15
	call	gas_anqp_set_element_len@PLT
	mov	rax, QWORD PTR [r14]
	cmp	DWORD PTR [rax], r12d
	ja	.L8
.L10:
	mov	rsi, QWORD PTR 24[rsp]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	gas_anqp_set_element_len@PLT
	.p2align 4,,10
	.p2align 3
.L37:
	.cfi_restore_state
	test	r9d, r9d
	je	.L1
	mov	rax, QWORD PTR [r14]
	cmp	QWORD PTR 8[rax], 0
	je	.L1
	test	rdx, rdx
	je	.L1
	add	rsp, 40
	.cfi_def_cfa_offset 56
	mov	rsi, r15
	mov	rdi, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	hs20_add_nai_home_realm_matches@PLT
	.cfi_endproc
.LFE0:
	.size	anqp_add_nai_realm, .-anqp_add_nai_realm
	.comm	ANQP_NAI_REALM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_gas_serv.c_anqp_add_nai_realm.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	anqp_add_nai_realm, %function
anqp_add_nai_realm:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	ldr	r4, [sp, #52]
	ldr	lr, [sp, #48]
	clz	ip, r4
	cmp	lr, #0
	lsr	ip, ip, #5
	moveq	ip, #0
	cmp	ip, #0
	mov	r9, r0
	mov	r5, r1
	bne	.L29
	cmp	lr, #0
	bne	.L6
	cmp	r4, #0
	beq	.L1
	ldr	lr, [r0]
	ldr	lr, [lr, #4]
	cmp	lr, #0
	cmpne	r2, #0
	beq	.L1
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	hs20_add_nai_home_realm_matches
.L29:
	ldr	r3, .L30
	ldr	r2, [r3]
	bl	anqp_add_override
	cmp	r0, #0
	bne	.L1
.L6:
	ldr	r3, [r9]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L1
	ldr	r3, .L30
	mov	r0, r5
	ldr	r1, [r3]
	bl	gas_anqp_add_element
	mov	r10, r0
	ldr	r3, [r9]
	mov	r0, r5
	ldr	r1, [r3]
	str	r10, [sp, #4]
	bl	wpabuf_put_le16
	ldr	r3, [r9]
	ldr	r2, [r3]
	cmp	r2, #0
	movne	r6, #0
	beq	.L10
.L8:
	mov	r1, #2
	mov	r0, r5
	ldr	fp, [r3, #4]
	bl	wpabuf_put
	ldrb	r1, [fp, r6, lsl #3]	@ zero_extendqisi2
	mov	r8, r0
	mov	r0, r5
	bl	wpabuf_put_u8
	mov	r1, #1
	mov	r0, r5
	bl	wpabuf_put
	add	fp, fp, r6, lsl #3
	ldr	r3, [fp, #4]
	mov	r7, r0
	ldr	r1, [r3]
	cmp	r1, #0
	movne	r4, #0
	beq	.L13
.L9:
	mov	r0, r5
	bl	wpabuf_put_str
	ldr	r3, [fp, #4]
	add	r4, r4, #1
	ldr	r1, [r3, r4, lsl #2]
	lsl	r10, r4, #2
	cmp	r1, #0
	beq	.L13
	cmp	r4, #0
	beq	.L9
	mov	r1, #59
	mov	r0, r5
	bl	wpabuf_put_u8
	ldr	r2, [fp, #4]
	ldr	r1, [r2, r10]
	b	.L9
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r1, #0
	mov	r0, r5
	bl	wpabuf_put
	sub	r3, r0, r7
	asr	r3, r3, #2
	sub	r3, r3, #1
	str	r3, [r7]
	mov	r1, fp
	mov	r0, r5
	bl	anqp_add_nai_realm_eap
	mov	r1, r8
	mov	r0, r5
	bl	gas_anqp_set_element_len
	ldr	r3, [r9]
	add	r6, r6, #1
	ldr	r2, [r3]
	cmp	r2, r6
	bhi	.L8
.L10:
	mov	r0, r5
	ldr	r1, [sp, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	gas_anqp_set_element_len
.L31:
	.align	2
.L30:
	.word	ANQP_NAI_REALM
	.size	anqp_add_nai_realm, .-anqp_add_nai_realm
	.comm	ANQP_NAI_REALM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
