	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_p2p_service_sd_res ## -- Begin function wpas_dbus_handler_p2p_service_sd_res
	.p2align	4, 0x90
_wpas_dbus_handler_p2p_service_sd_res:  ## @wpas_dbus_handler_p2p_service_sd_res
	.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	$120, %rsp
	.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, %rbx
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	-148(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_dbus_message_iter_init
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-76(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wpa_dbus_dict_open_read
	movl	$0, %r15d
	testl	%eax, %eax
	je	LBB0_28
## %bb.1:
	movq	%r13, -144(%rbp)                ## 8-byte Spill
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	-76(%rbp), %rdi
	callq	_wpa_dbus_dict_has_dict_entry
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	xorl	%r15d, %r15d
	leaq	-76(%rbp), %r14
	leaq	-128(%rbp), %r13
	leaq	L_.str(%rip), %rbx
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-92(%rbp), %edi
	callq	_os_strdup
	movq	%rax, %r15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_wpa_dbus_dict_entry_clear
	movq	%r14, %rdi
	callq	_wpa_dbus_dict_has_dict_entry
	testq	%rax, %rax
	je	LBB0_20
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_wpa_dbus_dict_get_entry
	testl	%eax, %eax
	je	LBB0_27
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-96(%rbp), %edi
	movq	%rbx, %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-128(%rbp), %rax
	movq	_DBUS_TYPE_OBJECT_PATH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-96(%rbp), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-128(%rbp), %rax
	movq	_DBUS_TYPE_INT32@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-120(%rbp), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-96(%rbp), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-128(%rbp), %rax
	movq	_DBUS_TYPE_UINT32@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_DBUS_TYPE_INT32@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-96(%rbp), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_26
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-128(%rbp), %rax
	movq	_DBUS_TYPE_ARRAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-112(%rbp), %rax
	movq	_DBUS_TYPE_BYTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-104(%rbp), %esi
	movl	-100(%rbp), %edi
	callq	_wpabuf_alloc_copy
	movq	%rax, %r12
	jmp	LBB0_19
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-120(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_19
LBB0_2:
	xorl	%r12d, %r12d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
LBB0_20:
	movq	%r15, %rdi
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_parse_peer_object_path
	testq	%rax, %rax
	js	LBB0_27
## %bb.21:
	movq	-136(%rbp), %r14                ## 8-byte Reload
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_p2p_peer_known
	testl	%eax, %eax
	je	LBB0_27
## %bb.22:
	testq	%r12, %r12
	je	LBB0_27
## %bb.23:
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rbx, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %r8
	callq	_wpas_p2p_sd_response
	movq	%r12, %rdi
	callq	_wpabuf_free
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_26:
	leaq	-128(%rbp), %rdi
	callq	_wpa_dbus_dict_entry_clear
LBB0_27:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_28:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wpas_dbus_error_invalid_args
	movq	%rax, %rbx
LBB0_24:
	movq	%r15, %rdi
	callq	_os_free
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.25:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"peer_object"

	.comm	_DBUS_TYPE_OBJECT_PATH,8,3      ## @DBUS_TYPE_OBJECT_PATH
L_.str.1:                               ## @.str.1
	.asciz	"frequency"

	.comm	_DBUS_TYPE_INT32,8,3            ## @DBUS_TYPE_INT32
L_.str.2:                               ## @.str.2
	.asciz	"dialog_token"

	.comm	_DBUS_TYPE_UINT32,8,3           ## @DBUS_TYPE_UINT32
L_.str.3:                               ## @.str.3
	.asciz	"tlvs"

	.comm	_DBUS_TYPE_ARRAY,8,3            ## @DBUS_TYPE_ARRAY
	.comm	_DBUS_TYPE_BYTE,8,3             ## @DBUS_TYPE_BYTE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_p2p_service_sd_res ; -- Begin function wpas_dbus_handler_p2p_service_sd_res
	.p2align	2
_wpas_dbus_handler_p2p_service_sd_res:  ; @wpas_dbus_handler_p2p_service_sd_res
	.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
	sub	sp, sp, #96
	mov	x21, x1
	mov	x19, x0
	mov	x20, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	sub	x1, x29, #96
	bl	_dbus_message_iter_init
	sub	x0, x29, #96
	sub	x1, x29, #92
	mov	x2, #0
	bl	_wpa_dbus_dict_open_read
	cbz	w0, LBB0_18
; %bb.1:
	stur	x21, [x29, #-168]               ; 8-byte Folded Spill
	stur	x20, [x29, #-152]               ; 8-byte Folded Spill
	sub	x0, x29, #92
	bl	_wpa_dbus_dict_has_dict_entry
	cbz	x0, LBB0_19
; %bb.2:
	mov	x21, #0
	stur	wzr, [x29, #-156]               ; 4-byte Folded Spill
	stur	wzr, [x29, #-140]               ; 4-byte Folded Spill
	mov	x25, #0
Lloh8:
	adrp	x26, l_.str@PAGE
Lloh9:
	add	x26, x26, l_.str@PAGEOFF
Lloh10:
	adrp	x27, l_.str.1@PAGE
Lloh11:
	add	x27, x27, l_.str.1@PAGEOFF
Lloh12:
	adrp	x24, _DBUS_TYPE_INT32@GOTPAGE
Lloh13:
	ldr	x24, [x24, _DBUS_TYPE_INT32@GOTPAGEOFF]
Lloh14:
	adrp	x28, l_.str.2@PAGE
Lloh15:
	add	x28, x28, l_.str.2@PAGEOFF
Lloh16:
	adrp	x23, _DBUS_TYPE_ARRAY@GOTPAGE
Lloh17:
	ldr	x23, [x23, _DBUS_TYPE_ARRAY@GOTPAGEOFF]
Lloh18:
	adrp	x20, l_.str.3@PAGE
Lloh19:
	add	x20, x20, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldur	w0, [x29, #-100]
	bl	_os_strdup
	mov	x21, x0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x0, x29, #136
	bl	_wpa_dbus_dict_entry_clear
	sub	x0, x29, #92
	bl	_wpa_dbus_dict_has_dict_entry
	cbz	x0, LBB0_20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #92
	sub	x1, x29, #136
	bl	_wpa_dbus_dict_get_entry
	cbz	w0, LBB0_24
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w0, [x29, #-104]
	mov	x1, x26
	bl	_os_strcmp
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-136]
Lloh20:
	adrp	x9, _DBUS_TYPE_OBJECT_PATH@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DBUS_TYPE_OBJECT_PATH@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldur	w0, [x29, #-104]
	mov	x1, x27
	bl	_os_strcmp
	cbnz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-136]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	w8, [x29, #-128]
	stur	w8, [x29, #-140]                ; 4-byte Folded Spill
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w0, [x29, #-104]
	mov	x1, x28
	bl	_os_strcmp
	cbnz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-136]
Lloh23:
	adrp	x9, _DBUS_TYPE_UINT32@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DBUS_TYPE_UINT32@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	ldr	x10, [x24]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	w8, [x29, #-128]
	stur	w8, [x29, #-156]                ; 4-byte Folded Spill
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w0, [x29, #-104]
	mov	x1, x20
	bl	_os_strcmp
	cbnz	x0, LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-136]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-120]
Lloh26:
	adrp	x9, _DBUS_TYPE_BYTE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DBUS_TYPE_BYTE@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	w1, w0, [x29, #-112]
	bl	_wpabuf_alloc_copy
	mov	x25, x0
	b	LBB0_4
LBB0_18:
	mov	x21, #0
	b	LBB0_25
LBB0_19:
	mov	x25, #0
	stur	wzr, [x29, #-140]               ; 4-byte Folded Spill
	stur	wzr, [x29, #-156]               ; 4-byte Folded Spill
	mov	x21, #0
LBB0_20:
	mov	x0, x21
	mov	x1, x22
	bl	_parse_peer_object_path
	tbnz	x0, #63, LBB0_24
; %bb.21:
	ldur	x20, [x29, #-168]               ; 8-byte Folded Reload
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x22
	bl	_p2p_peer_known
	cmp	w0, #0
	ccmp	x25, #0, #4, ne
	b.eq	LBB0_24
; %bb.22:
	mov	x0, x20
	ldur	w1, [x29, #-140]                ; 4-byte Folded Reload
	mov	x2, x22
	ldur	w3, [x29, #-156]                ; 4-byte Folded Reload
	mov	x4, x25
	bl	_wpas_p2p_sd_response
	mov	x0, x25
	bl	_wpabuf_free
	mov	x19, #0
	ldur	x20, [x29, #-152]               ; 8-byte Folded Reload
	b	LBB0_26
LBB0_23:
	sub	x0, x29, #136
	bl	_wpa_dbus_dict_entry_clear
LBB0_24:
	ldur	x20, [x29, #-152]               ; 8-byte Folded Reload
LBB0_25:
	mov	x0, x19
	mov	x1, #0
	bl	_wpas_dbus_error_invalid_args
	mov	x19, x0
LBB0_26:
	mov	x0, x21
	bl	_os_free
	mov	sp, x20
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	mov	x0, x19
	sub	sp, x29, #80
	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
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"peer_object"

	.comm	_DBUS_TYPE_OBJECT_PATH,8,3      ; @DBUS_TYPE_OBJECT_PATH
l_.str.1:                               ; @.str.1
	.asciz	"frequency"

	.comm	_DBUS_TYPE_INT32,8,3            ; @DBUS_TYPE_INT32
l_.str.2:                               ; @.str.2
	.asciz	"dialog_token"

	.comm	_DBUS_TYPE_UINT32,8,3           ; @DBUS_TYPE_UINT32
l_.str.3:                               ; @.str.3
	.asciz	"tlvs"

	.comm	_DBUS_TYPE_ARRAY,8,3            ; @DBUS_TYPE_ARRAY
	.comm	_DBUS_TYPE_BYTE,8,3             ; @DBUS_TYPE_BYTE
.subsections_via_symbols
