	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_sd_request_asp        ## -- Begin function wpas_p2p_sd_request_asp
	.p2align	4, 0x90
_wpas_p2p_sd_request_asp:               ## @wpas_p2p_sd_request_asp
	.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
	movq	%r8, %r13
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_os_strlen
	movq	%rax, %r14
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	callq	_os_strlen
	movq	%rax, %rbx
	cmpq	$255, %r14
	jbe	LBB0_4
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	cmpq	$255, %r14
	ja	LBB0_7
LBB0_4:
	cmpq	$255, %rbx
	ja	LBB0_7
## %bb.5:
	leaq	(%r14,%rbx), %r12
	addq	$4, %r12
	leal	2(%r12), %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_wpabuf_put_le16
	movq	_P2P_SERV_P2PS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wpabuf_put_u8
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_wpabuf_put_u8
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_wpabuf_put_u8
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_wpabuf_put_data
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_wpabuf_put_u8
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_wpabuf_put_data
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_wpas_p2p_sd_request
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_wpabuf_free
	movl	%ebx, %eax
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P2P_SERV_P2PS,4,2              ## @P2P_SERV_P2PS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_sd_request_asp        ; -- Begin function wpas_p2p_sd_request_asp
	.p2align	2
_wpas_p2p_sd_request_asp:               ; @wpas_p2p_sd_request_asp
	.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	x21, x4
	mov	x22, x3
	mov	x25, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x3
	bl	_os_strlen
	mov	x24, x0
	cbz	x21, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_os_strlen
	mov	x23, x0
	cmp	x24, #255
	b.ls	LBB0_3
	b	LBB0_6
LBB0_2:
	mov	x23, #0
	cmp	x24, #255
	b.hi	LBB0_6
LBB0_3:
	cmp	x23, #255
	b.hi	LBB0_6
; %bb.4:
	add	x8, x24, x23
	add	x27, x8, #4
	add	w0, w27, #2
	bl	_wpabuf_alloc
	cbz	x0, LBB0_6
; %bb.5:
	mov	x26, x0
	mov	x1, x27
	bl	_wpabuf_put_le16
Lloh0:
	adrp	x8, _P2P_SERV_P2PS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P2P_SERV_P2PS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_wpabuf_put_u8
	mov	x0, x26
	mov	x1, x25
	bl	_wpabuf_put_u8
	mov	x0, x26
	mov	x1, x24
	bl	_wpabuf_put_u8
	mov	x0, x26
	mov	x1, x22
	mov	x2, x24
	bl	_wpabuf_put_data
	mov	x0, x26
	mov	x1, x23
	bl	_wpabuf_put_u8
	mov	x0, x26
	mov	x1, x21
	mov	x2, x23
	bl	_wpabuf_put_data
	mov	x0, x20
	mov	x1, x19
	mov	x2, x26
	bl	_wpas_p2p_sd_request
	mov	x19, x0
	mov	x0, x26
	bl	_wpabuf_free
	mov	x0, x19
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_P2P_SERV_P2PS,4,2              ; @P2P_SERV_P2PS
.subsections_via_symbols
