	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_build_ap_extra_ies     ## -- Begin function hostapd_build_ap_extra_ies
	.p2align	4, 0x90
_hostapd_build_ap_extra_ies:            ## @hostapd_build_ap_extra_ies
	.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	$856, %rsp                      ## imm = 0x358
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -864(%rbp)
	movq	$0, -856(%rbp)
	movq	$0, -872(%rbp)
	movq	%rcx, -888(%rbp)                ## 8-byte Spill
	movq	$0, (%rcx)
	movq	%rdx, -880(%rbp)                ## 8-byte Spill
	movq	$0, (%rdx)
	movq	$0, (%rsi)
	leaq	-848(%rbp), %r15
	movq	%r15, %rsi
	callq	_hostapd_eid_time_adv
	movq	%rax, %rbx
	movq	%rax, %rdx
	subq	%r15, %rdx
	shrq	$2, %rdx
	leaq	-864(%rbp), %rdi
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_add_buf_data
	testq	%rax, %rax
	js	LBB0_8
## %bb.1:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_hostapd_eid_time_zone
	subq	%r15, %rax
	shrq	$2, %rax
	leaq	-856(%rbp), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_add_buf_data
	testq	%rax, %rax
	js	LBB0_8
## %bb.2:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_hostapd_eid_ext_capab
	movq	%rax, %rbx
	movq	%rax, %rdx
	subq	%r15, %rdx
	shrq	$2, %rdx
	leaq	-872(%rbp), %rdi
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_add_buf_data
	testq	%rax, %rax
	js	LBB0_8
## %bb.3:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_hostapd_eid_interworking
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_hostapd_eid_adv_proto
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_hostapd_eid_roaming_consortium
	movq	%rax, %r14
	subq	%r15, %r14
	shrq	$2, %r14
	leaq	-864(%rbp), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_add_buf_data
	testq	%rax, %rax
	js	LBB0_8
## %bb.4:
	leaq	-856(%rbp), %rdi
	leaq	-848(%rbp), %rsi
	movl	%r14d, %edx
	callq	_add_buf_data
	testq	%rax, %rax
	js	LBB0_8
## %bb.5:
	movq	40(%r13), %rsi
	leaq	-864(%rbp), %rdi
	callq	_add_buf
	testq	%rax, %rax
	js	LBB0_8
## %bb.6:
	movq	32(%r13), %rsi
	leaq	-856(%rbp), %rdi
	callq	_add_buf
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:
	movq	(%r13), %rax
	movq	16(%rax), %rsi
	leaq	-864(%rbp), %rdi
	callq	_add_buf
	movq	(%r13), %rax
	movq	16(%rax), %rsi
	leaq	-856(%rbp), %rdi
	callq	_add_buf
	movq	(%r13), %rax
	movq	8(%rax), %rsi
	leaq	-872(%rbp), %rdi
	callq	_add_buf
	movq	-864(%rbp), %rax
	movq	%rax, (%r12)
	movq	-856(%rbp), %rax
	movq	-880(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-872(%rbp), %rax
	movq	-888(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:
	movq	-864(%rbp), %rdi
	callq	_wpabuf_free
	movq	-856(%rbp), %rdi
	callq	_wpabuf_free
	movq	-872(%rbp), %rdi
	callq	_wpabuf_free
	movl	$-1, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	addq	$856, %rsp                      ## imm = 0x358
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_P2P_MANAGE,4,2                 ## @P2P_MANAGE
	.comm	_P2P_SC_SUCCESS,4,2             ## @P2P_SC_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_build_ap_extra_ies     ; -- Begin function hostapd_build_ap_extra_ies
	.p2align	2
_hostapd_build_ap_extra_ies:            ; @hostapd_build_ap_extra_ies
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #832
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp]
	str	xzr, [x3]
	str	xzr, [x2]
	str	xzr, [x1]
	add	x24, sp, #24
	add	x1, sp, #24
	bl	_hostapd_eid_time_adv
	mov	x23, x0
	sub	x8, x0, x24
	lsr	x2, x8, #2
	add	x0, sp, #16
	add	x1, sp, #24
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_add_buf_data
	tbnz	x0, #63, LBB0_8
; %bb.1:
	mov	x0, x22
	mov	x1, x23
	bl	_hostapd_eid_time_zone
	sub	x8, x0, x24
	lsr	x2, x8, #2
	add	x0, sp, #8
	add	x1, sp, #24
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_add_buf_data
	tbnz	x0, #63, LBB0_8
; %bb.2:
	add	x24, sp, #24
	add	x1, sp, #24
	mov	x0, x22
	bl	_hostapd_eid_ext_capab
	mov	x23, x0
	sub	x8, x0, x24
	lsr	x2, x8, #2
	mov	x0, sp
	add	x1, sp, #24
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_add_buf_data
	tbnz	x0, #63, LBB0_8
; %bb.3:
	mov	x0, x22
	mov	x1, x23
	bl	_hostapd_eid_interworking
	mov	x1, x0
	mov	x0, x22
	bl	_hostapd_eid_adv_proto
	mov	x1, x0
	mov	x0, x22
	bl	_hostapd_eid_roaming_consortium
	sub	x8, x0, x24
	lsr	x23, x8, #2
	add	x0, sp, #16
	add	x1, sp, #24
	mov	x2, x23
	bl	_add_buf_data
	tbnz	x0, #63, LBB0_8
; %bb.4:
	add	x0, sp, #8
	add	x1, sp, #24
	mov	x2, x23
	bl	_add_buf_data
	tbnz	x0, #63, LBB0_8
; %bb.5:
	ldr	x1, [x22, #40]
	add	x0, sp, #16
	bl	_add_buf
	tbnz	x0, #63, LBB0_8
; %bb.6:
	ldr	x1, [x22, #32]
	add	x0, sp, #8
	bl	_add_buf
	tbnz	x0, #63, LBB0_8
; %bb.7:
	ldr	x8, [x22]
	ldr	x1, [x8, #16]
	add	x0, sp, #16
	bl	_add_buf
	ldr	x8, [x22]
	ldr	x1, [x8, #16]
	add	x0, sp, #8
	bl	_add_buf
	ldr	x8, [x22]
	ldr	x1, [x8, #8]
	mov	x0, sp
	bl	_add_buf
	mov	w0, #0
	ldr	x8, [sp, #16]
	str	x8, [x21]
	ldr	x8, [sp, #8]
	str	x8, [x20]
	ldr	x8, [sp]
	str	x8, [x19]
	b	LBB0_9
LBB0_8:
	ldr	x0, [sp, #16]
	bl	_wpabuf_free
	ldr	x0, [sp, #8]
	bl	_wpabuf_free
	ldr	x0, [sp]
	bl	_wpabuf_free
	mov	w0, #-1
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	add	sp, sp, #832
	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
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_P2P_MANAGE,4,2                 ; @P2P_MANAGE
	.comm	_P2P_SC_SUCCESS,4,2             ; @P2P_SC_SUCCESS
.subsections_via_symbols
