	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_build_sd_response
_p2p_build_sd_response:                 ## @p2p_build_sd_response
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r13d
	movl	%edi, %ebx
	testq	%r8, %r8
	je	LBB0_3
## %bb.1:
	movq	%r8, %r14
	movl	%ecx, %r15d
	movq	%r8, %rdi
	callq	_wpabuf_len
                                        ## kill: def $eax killed $eax def $rax
	leal	100(%rax), %ecx
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_gas_anqp_build_initial_resp
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %rbx
	movq	_ANQP_VENDOR_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gas_anqp_add_element
	movq	%rax, %r12
	movq	_P2P_IE_VENDOR_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_be32
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_wpabuf_put_le16
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wpabuf_put_buf
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_gas_anqp_set_element_len
	jmp	LBB0_4
LBB0_3:
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	$100, %ecx
	callq	_gas_anqp_build_initial_resp
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_gas_anqp_set_len
	jmp	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ANQP_VENDOR_SPECIFIC,4,2       ## @ANQP_VENDOR_SPECIFIC
	.comm	_P2P_IE_VENDOR_TYPE,4,2         ## @P2P_IE_VENDOR_TYPE
	.no_dead_strip	_p2p_build_sd_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_build_sd_response
_p2p_build_sd_response:                 ; @p2p_build_sd_response
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	cbz	x4, LBB0_3
; %bb.1:
	mov	x20, x4
	mov	x21, x3
	mov	x0, x4
	bl	_wpabuf_len
	add	w3, w0, #100
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	bl	_gas_anqp_build_initial_resp
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _ANQP_VENDOR_SPECIFIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ANQP_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gas_anqp_add_element
	mov	x22, x0
Lloh3:
	adrp	x8, _P2P_IE_VENDOR_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _P2P_IE_VENDOR_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be32
	mov	x0, x19
	mov	x1, x21
	bl	_wpabuf_put_le16
	mov	x0, x19
	mov	x1, x20
	bl	_wpabuf_put_buf
	mov	x0, x19
	mov	x1, x22
	bl	_gas_anqp_set_element_len
	b	LBB0_4
LBB0_3:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	mov	w3, #100
	bl	_gas_anqp_build_initial_resp
	mov	x19, x0
	cbz	x0, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_gas_anqp_set_len
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ANQP_VENDOR_SPECIFIC,4,2       ; @ANQP_VENDOR_SPECIFIC
	.comm	_P2P_IE_VENDOR_TYPE,4,2         ; @P2P_IE_VENDOR_TYPE
	.no_dead_strip	_p2p_build_sd_response
.subsections_via_symbols
