	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_p2p_add_service ## -- Begin function wpas_dbus_handler_p2p_add_service
	.p2align	4, 0x90
_wpas_dbus_handler_p2p_add_service:     ## @wpas_dbus_handler_p2p_add_service
	.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	$104, %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, %r14
	leaq	-132(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_dbus_message_iter_init
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_wpa_dbus_dict_open_read
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	leaq	-56(%rbp), %rdi
	callq	_wpa_dbus_dict_has_dict_entry
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %r13
	leaq	-104(%rbp), %r14
	leaq	L_.str(%rip), %rbx
	xorl	%eax, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-96(%rbp), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	callq	_wpa_dbus_dict_entry_clear
	movq	%r13, %rdi
	callq	_wpa_dbus_dict_has_dict_entry
	testq	%rax, %rax
	je	LBB0_30
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_wpa_dbus_dict_get_entry
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-72(%rbp), %edi
	movq	%rbx, %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-104(%rbp), %rax
	movq	_DBUS_TYPE_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-68(%rbp), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-68(%rbp), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_os_strcmp
	movl	$1, %ecx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_29
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-72(%rbp), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-104(%rbp), %rax
	movq	_DBUS_TYPE_INT32@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-72(%rbp), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-104(%rbp), %rax
	movq	_DBUS_TYPE_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_os_free
	movl	-68(%rbp), %edi
	callq	_os_strdup
	movq	%rax, %r12
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-72(%rbp), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.25:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-72(%rbp), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-104(%rbp), %rax
	movq	_DBUS_TYPE_ARRAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.27:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-88(%rbp), %rax
	movq	_DBUS_TYPE_BYTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.28:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-80(%rbp), %esi
	movl	-76(%rbp), %edi
	callq	_wpabuf_alloc_copy
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_29
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-104(%rbp), %rax
	movq	_DBUS_TYPE_ARRAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-88(%rbp), %rax
	movq	_DBUS_TYPE_BYTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.24:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-80(%rbp), %esi
	movl	-76(%rbp), %edi
	callq	_wpabuf_alloc_copy
	movq	%rax, %r15
	jmp	LBB0_29
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_29
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_2
LBB0_5:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_30:
	cmpl	$1, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_34
## %bb.31:
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	testq	%rsi, %rsi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_3
## %bb.32:
	testq	%r12, %r12
	je	LBB0_3
## %bb.33:
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rdx
	callq	_wpas_p2p_service_add_upnp
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_38
LBB0_13:
	leaq	-104(%rbp), %rdi
	callq	_wpa_dbus_dict_entry_clear
LBB0_14:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_3:
	movq	%r12, %rdi
	callq	_os_free
	movq	%r15, %rdi
	callq	_wpabuf_free
	movq	%rbx, %rdi
	callq	_wpabuf_free
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_wpas_dbus_error_invalid_args
LBB0_39:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	cmpl	$1, -120(%rbp)                  ## 4-byte Folded Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_3
## %bb.35:
	testq	%r15, %r15
	je	LBB0_3
## %bb.36:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.37:
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_wpas_p2p_service_add_bonjour
	testq	%rax, %rax
	js	LBB0_3
LBB0_38:
	movq	%r12, %rdi
	callq	_os_free
	xorl	%eax, %eax
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"service_type"

	.comm	_DBUS_TYPE_STRING,8,3           ## @DBUS_TYPE_STRING
L_.str.1:                               ## @.str.1
	.asciz	"upnp"

L_.str.2:                               ## @.str.2
	.asciz	"bonjour"

L_.str.3:                               ## @.str.3
	.asciz	"version"

	.comm	_DBUS_TYPE_INT32,8,3            ## @DBUS_TYPE_INT32
L_.str.4:                               ## @.str.4
	.asciz	"service"

L_.str.5:                               ## @.str.5
	.asciz	"query"

	.comm	_DBUS_TYPE_ARRAY,8,3            ## @DBUS_TYPE_ARRAY
	.comm	_DBUS_TYPE_BYTE,8,3             ## @DBUS_TYPE_BYTE
L_.str.6:                               ## @.str.6
	.asciz	"response"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_p2p_add_service ; -- Begin function wpas_dbus_handler_p2p_add_service
	.p2align	2
_wpas_dbus_handler_p2p_add_service:     ; @wpas_dbus_handler_p2p_add_service
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x1
	mov	x19, x0
	add	x1, sp, #56
	bl	_dbus_message_iter_init
	add	x0, sp, #56
	add	x1, sp, #60
	mov	x2, #0
	bl	_wpa_dbus_dict_open_read
	cbz	w0, LBB0_25
; %bb.1:
	add	x0, sp, #60
	bl	_wpa_dbus_dict_has_dict_entry
	cbz	x0, LBB0_25
; %bb.2:
	stp	x20, xzr, [sp]                  ; 16-byte Folded Spill
	mov	x24, #0
	mov	x20, #0
	mov	x22, #0
	mov	x21, #0
Lloh0:
	adrp	x25, l_.str@PAGE
Lloh1:
	add	x25, x25, l_.str@PAGEOFF
Lloh2:
	adrp	x23, _DBUS_TYPE_STRING@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DBUS_TYPE_STRING@GOTPAGEOFF]
Lloh4:
	adrp	x28, l_.str.3@PAGE
Lloh5:
	add	x28, x28, l_.str.3@PAGEOFF
Lloh6:
	adrp	x27, l_.str.4@PAGE
Lloh7:
	add	x27, x27, l_.str.4@PAGEOFF
Lloh8:
	adrp	x26, l_.str.5@PAGE
Lloh9:
	add	x26, x26, l_.str.5@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x24, [sp, #24]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #16
	bl	_wpa_dbus_dict_entry_clear
	add	x0, sp, #60
	bl	_wpa_dbus_dict_has_dict_entry
	cbz	x0, LBB0_28
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #60
	add	x1, sp, #16
	bl	_wpa_dbus_dict_get_entry
	cbz	w0, LBB0_26
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #48]
	mov	x1, x25
	bl	_os_strcmp
	cbnz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #52]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_os_strcmp
	cbz	x0, LBB0_24
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #52]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_os_strcmp
	cbnz	x0, LBB0_32
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #48]
	mov	x1, x28
	bl	_os_strcmp
	cbnz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #16]
Lloh14:
	adrp	x9, _DBUS_TYPE_INT32@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DBUS_TYPE_INT32@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #48]
	mov	x1, x27
	bl	_os_strcmp
	cbnz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_os_free
	ldr	w0, [sp, #52]
	bl	_os_strdup
	mov	x21, x0
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #48]
	mov	x1, x26
	bl	_os_strcmp
	cbz	x0, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #48]
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_os_strcmp
	cbnz	x0, LBB0_4
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #16]
Lloh19:
	adrp	x9, _DBUS_TYPE_ARRAY@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DBUS_TYPE_ARRAY@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #32]
Lloh22:
	adrp	x9, _DBUS_TYPE_BYTE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _DBUS_TYPE_BYTE@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	w1, w0, [sp, #40]
	bl	_wpabuf_alloc_copy
	mov	x20, x0
	b	LBB0_4
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #16]
Lloh25:
	adrp	x9, _DBUS_TYPE_ARRAY@GOTPAGE
Lloh26:
	ldr	x9, [x9, _DBUS_TYPE_ARRAY@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #32]
Lloh28:
	adrp	x9, _DBUS_TYPE_BYTE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _DBUS_TYPE_BYTE@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	w1, w0, [sp, #40]
	bl	_wpabuf_alloc_copy
	mov	x22, x0
	b	LBB0_4
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #1
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	b	LBB0_4
LBB0_25:
	mov	x21, #0
	mov	x22, #0
	mov	x20, #0
LBB0_26:
	mov	x0, x21
	bl	_os_free
	mov	x0, x22
	bl	_wpabuf_free
	mov	x0, x20
	bl	_wpabuf_free
	mov	x0, x19
	mov	x1, #0
	bl	_wpas_dbus_error_invalid_args
LBB0_27:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_28:
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w8, #1
	b.ne	LBB0_33
; %bb.29:
	cmp	x24, #1
	b.lt	LBB0_26
; %bb.30:
	cbz	x21, LBB0_26
; %bb.31:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x24
	mov	x2, x21
	bl	_wpas_p2p_service_add_upnp
	cbnz	x0, LBB0_26
	b	LBB0_37
LBB0_32:
	add	x0, sp, #16
	bl	_wpa_dbus_dict_entry_clear
	b	LBB0_26
LBB0_33:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.ne	LBB0_26
; %bb.34:
	cbz	x22, LBB0_26
; %bb.35:
	cbz	x20, LBB0_26
; %bb.36:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x22
	mov	x2, x20
	bl	_wpas_p2p_service_add_bonjour
	tbnz	x0, #63, LBB0_26
LBB0_37:
	mov	x0, x21
	bl	_os_free
	mov	x0, #0
	b	LBB0_27
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"service_type"

	.comm	_DBUS_TYPE_STRING,8,3           ; @DBUS_TYPE_STRING
l_.str.1:                               ; @.str.1
	.asciz	"upnp"

l_.str.2:                               ; @.str.2
	.asciz	"bonjour"

l_.str.3:                               ; @.str.3
	.asciz	"version"

	.comm	_DBUS_TYPE_INT32,8,3            ; @DBUS_TYPE_INT32
l_.str.4:                               ; @.str.4
	.asciz	"service"

l_.str.5:                               ; @.str.5
	.asciz	"query"

	.comm	_DBUS_TYPE_ARRAY,8,3            ; @DBUS_TYPE_ARRAY
	.comm	_DBUS_TYPE_BYTE,8,3             ; @DBUS_TYPE_BYTE
l_.str.6:                               ; @.str.6
	.asciz	"response"

.subsections_via_symbols
