	.file	"extr_ubus.c_hostapd_bss_mgmt_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hostapd_bss_mgmt_enable, @function
hostapd_bss_mgmt_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rdi, rsi
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, r8
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	get_hapd_from_object@PLT
	mov	rcx, rsp
	mov	QWORD PTR -72[rbp], rax
	movsx	rax, DWORD PTR __BSS_MGMT_EN_MAX[rip]
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L20:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L20
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L21
.L4:
	mov	rdi, r12
	mov	rbx, rsp
	xor	r15d, r15d
	mov	r14d, 1
	call	blob_len@PLT
	mov	rdi, r12
	xor	r12d, r12d
	mov	r13d, eax
	call	blob_data@PLT
	mov	esi, DWORD PTR __BSS_MGMT_EN_MAX[rip]
	mov	r8d, r13d
	mov	rdx, rbx
	mov	edi, DWORD PTR bss_mgmt_enable_policy[rip]
	mov	ecx, eax
	call	blobmsg_parse@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR [rbx+r15*8]
	test	rdi, rdi
	je	.L6
	call	blobmsg_get_bool@PLT
	mov	ecx, r13d
	mov	esi, r12d
	mov	r8d, eax
	mov	eax, r14d
	sal	eax, cl
	or	r12d, eax
	test	r8d, r8d
	cmove	r12d, esi
.L6:
	add	r15, 1
.L5:
	mov	rdi, rbx
	mov	r13d, r15d
	call	ARRAY_SIZE@PLT
	cmp	eax, r15d
	jg	.L7
	mov	rdi, QWORD PTR -72[rbp]
	mov	esi, r12d
	call	__hostapd_bss_mgmt_enable@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	lea	rsp, -40[rbp]
	xor	eax, eax
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hostapd_bss_mgmt_enable, .-hostapd_bss_mgmt_enable
	.comm	bss_mgmt_enable_policy,4,4
	.comm	__BSS_MGMT_EN_MAX,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_ubus.c_hostapd_bss_mgmt_enable.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hostapd_bss_mgmt_enable, %function
hostapd_bss_mgmt_enable:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #16
	ldr	r3, .L15
	mov	r0, r1
	ldr	r4, [fp, #4]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	bl	get_hapd_from_object
	ldr	r3, .L15+4
	ldr	r2, .L15+8
	ldr	r7, [r3]
	mov	r8, r0
	lsl	r3, r7, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r0, r4
	ldr	r9, [r2]
	bl	blob_data
	mov	r6, r0
	mov	r0, r4
	bl	blob_len
	mov	r4, #0
	add	r5, sp, #8
	mov	r3, r6
	mov	r1, r7
	str	r0, [sp]
	mov	r2, r5
	mov	r0, r9
	bl	blobmsg_parse
	mov	r6, r4
	mov	r7, #1
	b	.L2
.L4:
	ldr	r0, [r5, r4, lsl #2]
	cmp	r0, #0
	beq	.L3
	bl	blobmsg_get_bool
	cmp	r0, #0
	orrne	r6, r6, r7, lsl r4
.L3:
	add	r4, r4, #1
.L2:
	mov	r0, r5
	bl	ARRAY_SIZE
	cmp	r4, r0
	blt	.L4
	mov	r1, r6
	mov	r0, r8
	bl	__hostapd_bss_mgmt_enable
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, #0
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	__BSS_MGMT_EN_MAX
	.word	bss_mgmt_enable_policy
	.size	hostapd_bss_mgmt_enable, .-hostapd_bss_mgmt_enable
	.comm	bss_mgmt_enable_policy,4,4
	.comm	__BSS_MGMT_EN_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
