	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_wps_start    ## -- Begin function wpas_dbus_handler_wps_start
	.p2align	4, 0x90
_wpas_dbus_handler_wps_start:           ## @wpas_dbus_handler_wps_start
	.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, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -80(%rbp)
	movb	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_os_memset
	leaq	-84(%rbp), %r15
	movq	%rbx, %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_dbus_message_iter_init
	leaq	-68(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dbus_message_iter_recurse
	movq	%rbx, %rdi
	callq	_dbus_message_iter_get_arg_type
	movq	_DBUS_TYPE_DICT_ENTRY@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.1:
	leaq	-68(%rbp), %r12
	leaq	-140(%rbp), %rbx
	leaq	-80(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_dbus_message_iter_recurse
	movq	%rbx, %rdi
	leaq	-136(%rbp), %rsi
	callq	_dbus_message_iter_get_basic
	movq	%rbx, %rdi
	callq	_dbus_message_iter_next
	movq	-136(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	leaq	-128(%rbp), %rcx
	movq	%r15, %r8
	callq	_wpas_dbus_handler_wps_start_entry
	testq	%rax, %rax
	jne	LBB0_29
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_dbus_message_iter_next
	movq	%r12, %rdi
	callq	_dbus_message_iter_get_arg_type
	cmpq	(%r13), %rax
	je	LBB0_2
LBB0_4:
	movl	-124(%rbp), %eax
	cmpl	$2, %eax
	je	LBB0_8
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_8:
	movq	-112(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.10:
	movl	-120(%rbp), %esi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_wpas_wps_start_reg
	jmp	LBB0_19
LBB0_11:
	movl	-128(%rbp), %eax
	cmpl	$1, %eax
	je	LBB0_14
## %bb.12:
	testl	%eax, %eax
	jne	LBB0_18
## %bb.13:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_7
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.3(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	callq	_wpas_dbus_error_invalid_args
	jmp	LBB0_30
LBB0_14:
	movl	-120(%rbp), %esi
	movq	-112(%rbp), %rdx
	movq	_DEV_PW_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_wpas_wps_start_pin
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_20
## %bb.15:
	leaq	L_.str.6(%rip), %rdx
	leaq	-64(%rbp), %rdi
	movl	$9, %esi
	movl	%ebx, %ecx
	callq	_os_snprintf
	movl	%eax, %ebx
	movl	$9, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_17
LBB0_18:
	movl	-120(%rbp), %esi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_wpas_wps_start_pbc
LBB0_19:
	movl	%eax, %ebx
LBB0_20:
	testl	%ebx, %ebx
	js	LBB0_21
## %bb.22:
	movq	%r14, %rdi
	callq	_dbus_message_new_method_return
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	leaq	-84(%rbp), %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_dbus_message_iter_init_append
	leaq	-68(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wpa_dbus_dict_open_write
	testl	%eax, %eax
	je	LBB0_28
## %bb.25:
	leaq	-64(%rbp), %rdi
	callq	_os_strlen
	testq	%rax, %rax
	jle	LBB0_27
## %bb.26:
	leaq	L_.str.15(%rip), %rsi
	leaq	-68(%rbp), %rdi
	leaq	-64(%rbp), %rdx
	callq	_wpa_dbus_dict_append_string
	testl	%eax, %eax
	je	LBB0_28
LBB0_27:
	leaq	-84(%rbp), %rdi
	leaq	-68(%rbp), %rsi
	callq	_wpa_dbus_dict_close_write
	testl	%eax, %eax
	je	LBB0_28
LBB0_29:
	movq	-80(%rbp), %rax
	jmp	LBB0_30
LBB0_21:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-128(%rbp), %eax
	cmpl	$1, -124(%rbp)
	leaq	L_.str.9(%rip), %rcx
	leaq	L_.str.10(%rip), %rdx
	cmoveq	%rcx, %rdx
	cmpl	$1, %eax
	leaq	L_.str.12(%rip), %rcx
	leaq	L_.str.13(%rip), %rsi
	cmoveq	%rcx, %rsi
	testl	%eax, %eax
	leaq	L_.str.11(%rip), %rcx
	cmovneq	%rsi, %rcx
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.14(%rip), %rsi
LBB0_17:
	movq	%r14, %rdi
	callq	_wpas_dbus_error_unknown_error
	jmp	LBB0_30
LBB0_28:
	movq	-80(%rbp), %rdi
	callq	_dbus_message_unref
LBB0_23:
	movq	%r14, %rdi
	callq	_wpas_dbus_error_no_memory
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_32
## %bb.31:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DBUS_TYPE_DICT_ENTRY,8,3       ## @DBUS_TYPE_DICT_ENTRY
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dbus: WPS.Start - Role not specified"

L_.str.1:                               ## @.str.1
	.asciz	"Role not specified"

L_.str.2:                               ## @.str.2
	.asciz	"dbus: WPS.Start - Pin required for registrar role"

L_.str.3:                               ## @.str.3
	.asciz	"Pin required for registrar role."

L_.str.4:                               ## @.str.4
	.asciz	"dbus: WPS.Start - Type not specified"

L_.str.5:                               ## @.str.5
	.asciz	"Type not specified"

	.comm	_DEV_PW_DEFAULT,4,2             ## @DEV_PW_DEFAULT
L_.str.6:                               ## @.str.6
	.asciz	"%08d"

L_.str.7:                               ## @.str.7
	.asciz	"invalid PIN"

L_.str.8:                               ## @.str.8
	.asciz	"dbus: WPS.Start wpas_wps_failed in role %s and key %s"

L_.str.9:                               ## @.str.9
	.asciz	"enrollee"

L_.str.10:                              ## @.str.10
	.asciz	"registrar"

L_.str.11:                              ## @.str.11
	.space	1

L_.str.12:                              ## @.str.12
	.asciz	"pin"

L_.str.13:                              ## @.str.13
	.asciz	"pbc"

L_.str.14:                              ## @.str.14
	.asciz	"WPS start failed"

L_.str.15:                              ## @.str.15
	.asciz	"Pin"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_wps_start    ; -- Begin function wpas_dbus_handler_wps_start
	.p2align	2
_wpas_dbus_handler_wps_start:           ; @wpas_dbus_handler_wps_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	stp	xzr, xzr, [x29, #-64]
	sturb	wzr, [x29, #-48]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_os_memset
	sub	x1, x29, #68
	mov	x0, x19
	bl	_dbus_message_iter_init
	sub	x0, x29, #68
	add	x1, sp, #72
	bl	_dbus_message_iter_recurse
	add	x0, sp, #72
	bl	_dbus_message_iter_get_arg_type
Lloh3:
	adrp	x21, _DBUS_TYPE_DICT_ENTRY@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DBUS_TYPE_DICT_ENTRY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #72
	add	x1, sp, #68
	bl	_dbus_message_iter_recurse
	add	x0, sp, #68
	add	x1, sp, #24
	bl	_dbus_message_iter_get_basic
	add	x0, sp, #68
	bl	_dbus_message_iter_next
	ldr	x1, [sp, #24]
	add	x2, sp, #68
	add	x3, sp, #32
	sub	x4, x29, #64
	mov	x0, x19
	bl	_wpas_dbus_handler_wps_start_entry
	cbnz	x0, LBB0_25
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #72
	bl	_dbus_message_iter_next
	add	x0, sp, #72
	bl	_dbus_message_iter_get_arg_type
	b	LBB0_1
LBB0_4:
	ldr	w8, [sp, #36]
	cmp	w8, #2
	b.eq	LBB0_7
; %bb.5:
	cbnz	w8, LBB0_9
; %bb.6:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_7:
	ldr	x2, [sp, #48]
	cbz	x2, LBB0_12
; %bb.8:
	ldr	w1, [sp, #40]
	mov	x0, x20
	mov	x3, #0
	bl	_wpas_wps_start_reg
	b	LBB0_18
LBB0_9:
	ldr	w8, [sp, #32]
	cmp	w8, #1
	b.eq	LBB0_14
; %bb.10:
	cbnz	w8, LBB0_17
; %bb.11:
Lloh12:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh19:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_wpas_dbus_error_invalid_args
	b	LBB0_30
LBB0_14:
	ldr	w1, [sp, #40]
	ldr	x2, [sp, #48]
Lloh26:
	adrp	x8, _DEV_PW_DEFAULT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DEV_PW_DEFAULT@GOTPAGEOFF]
Lloh28:
	ldr	w4, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_wpas_wps_start_pin
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.15:
Lloh29:
	adrp	x2, l_.str.6@PAGE
Lloh30:
	add	x2, x2, l_.str.6@PAGEOFF
	sub	x0, x29, #56
	mov	w1, #9
	mov	x3, x20
	bl	_os_snprintf
	mov	x20, x0
	mov	w0, #9
	mov	x1, x20
	bl	_os_snprintf_error
	cbz	x0, LBB0_19
; %bb.16:
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_27
LBB0_17:
	ldr	w1, [sp, #40]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_wpas_wps_start_pbc
LBB0_18:
	mov	x20, x0
LBB0_19:
	tbnz	w20, #31, LBB0_26
; %bb.20:
	mov	x0, x19
	bl	_dbus_message_new_method_return
	stur	x0, [x29, #-64]
	cbz	x0, LBB0_29
; %bb.21:
	sub	x1, x29, #68
	bl	_dbus_message_iter_init_append
	sub	x0, x29, #68
	add	x1, sp, #72
	bl	_wpa_dbus_dict_open_write
	cbz	w0, LBB0_28
; %bb.22:
	sub	x0, x29, #56
	bl	_os_strlen
	cmp	x0, #1
	b.lt	LBB0_24
; %bb.23:
Lloh33:
	adrp	x1, l_.str.15@PAGE
Lloh34:
	add	x1, x1, l_.str.15@PAGEOFF
	add	x0, sp, #72
	sub	x2, x29, #56
	bl	_wpa_dbus_dict_append_string
	cbz	w0, LBB0_28
LBB0_24:
	sub	x0, x29, #68
	add	x1, sp, #72
	bl	_wpa_dbus_dict_close_write
	cbz	w0, LBB0_28
LBB0_25:
	ldur	x0, [x29, #-64]
	b	LBB0_30
LBB0_26:
Lloh35:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x8, l_.str.10@PAGE
Lloh39:
	add	x8, x8, l_.str.10@PAGEOFF
Lloh40:
	adrp	x9, l_.str.9@PAGE
Lloh41:
	add	x9, x9, l_.str.9@PAGEOFF
	ldp	w11, w10, [sp, #32]
	cmp	w10, #1
	csel	x8, x9, x8, eq
Lloh42:
	adrp	x9, l_.str.13@PAGE
Lloh43:
	add	x9, x9, l_.str.13@PAGEOFF
Lloh44:
	adrp	x10, l_.str.12@PAGE
Lloh45:
	add	x10, x10, l_.str.12@PAGEOFF
	cmp	w11, #1
	csel	x9, x10, x9, eq
Lloh46:
	adrp	x10, l_.str.11@PAGE
Lloh47:
	add	x10, x10, l_.str.11@PAGEOFF
	cmp	w11, #0
	csel	x9, x10, x9, eq
	stp	x8, x9, [sp]
Lloh48:
	adrp	x1, l_.str.8@PAGE
Lloh49:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_wpa_printf
Lloh50:
	adrp	x1, l_.str.14@PAGE
Lloh51:
	add	x1, x1, l_.str.14@PAGEOFF
LBB0_27:
	mov	x0, x19
	bl	_wpas_dbus_error_unknown_error
	b	LBB0_30
LBB0_28:
	ldur	x0, [x29, #-64]
	bl	_dbus_message_unref
LBB0_29:
	mov	x0, x19
	bl	_wpas_dbus_error_no_memory
LBB0_30:
	ldur	x8, [x29, #-40]
Lloh52:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh53:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.31:
	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
	add	sp, sp, #160
	ret
LBB0_32:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_DBUS_TYPE_DICT_ENTRY,8,3       ; @DBUS_TYPE_DICT_ENTRY
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dbus: WPS.Start - Role not specified"

l_.str.1:                               ; @.str.1
	.asciz	"Role not specified"

l_.str.2:                               ; @.str.2
	.asciz	"dbus: WPS.Start - Pin required for registrar role"

l_.str.3:                               ; @.str.3
	.asciz	"Pin required for registrar role."

l_.str.4:                               ; @.str.4
	.asciz	"dbus: WPS.Start - Type not specified"

l_.str.5:                               ; @.str.5
	.asciz	"Type not specified"

	.comm	_DEV_PW_DEFAULT,4,2             ; @DEV_PW_DEFAULT
l_.str.6:                               ; @.str.6
	.asciz	"%08d"

l_.str.7:                               ; @.str.7
	.asciz	"invalid PIN"

l_.str.8:                               ; @.str.8
	.asciz	"dbus: WPS.Start wpas_wps_failed in role %s and key %s"

l_.str.9:                               ; @.str.9
	.asciz	"enrollee"

l_.str.10:                              ; @.str.10
	.asciz	"registrar"

l_.str.11:                              ; @.str.11
	.space	1

l_.str.12:                              ; @.str.12
	.asciz	"pin"

l_.str.13:                              ; @.str.13
	.asciz	"pbc"

l_.str.14:                              ; @.str.14
	.asciz	"WPS start failed"

l_.str.15:                              ; @.str.15
	.asciz	"Pin"

.subsections_via_symbols
