	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_parse_conf_obj
_dpp_parse_conf_obj:                    ## @dpp_parse_conf_obj
	.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
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_json_parse
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_JSON_OBJECT@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_json_get_member
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_JSON_STRING@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.4:
	movl	8(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_9
LBB0_6:
	movl	$-1, %ebx
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
LBB0_9:
	movq	%r14, %rdi
	callq	_dpp_auth_fail
LBB0_10:
	movl	$-1, %ebx
LBB0_11:
	movq	%r12, %rdi
	callq	_json_free
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_json_get_member
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	movq	(%rax), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_19
## %bb.15:
	leaq	L_.str.8(%rip), %rsi
	movq	%rax, %rdi
	callq	_json_get_member
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movq	%rax, %rbx
	movq	(%rax), %rax
	cmpq	(%r13), %rax
	jne	LBB0_20
## %bb.17:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_os_strlen
	leaq	L_.str.10(%rip), %rsi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rax, %rcx
	callq	_wpa_hexdump_ascii
	movl	8(%rbx), %edi
	callq	_os_strlen
	movq	_SSID_MAX_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_21
## %bb.18:
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_9
LBB0_19:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_9
LBB0_20:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_9
LBB0_21:
	movl	8(%rbx), %edi
	callq	_os_strlen
	movq	%rax, 8(%r14)
	movl	16(%r14), %edi
	movl	8(%rbx), %esi
	movq	%rax, %rdx
	callq	_os_memcpy
	leaq	L_.str.12(%rip), %rsi
	movq	%r12, %rdi
	callq	_json_get_member
	testq	%rax, %rax
	je	LBB0_28
## %bb.22:
	movq	%rax, %rbx
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_28
## %bb.23:
	leaq	L_.str.14(%rip), %rsi
	movq	%rbx, %rdi
	callq	_json_get_member
	testq	%rax, %rax
	je	LBB0_29
## %bb.24:
	movq	%rax, %r15
	movq	(%rax), %rax
	cmpq	(%r13), %rax
	jne	LBB0_29
## %bb.25:
	movl	8(%r15), %edi
	callq	_dpp_akm_from_str
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_dpp_akm_legacy
	testq	%rax, %rax
	je	LBB0_30
## %bb.26:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dpp_parse_cred_legacy
	testq	%rax, %rax
	jns	LBB0_32
	jmp	LBB0_10
LBB0_28:
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_9
LBB0_29:
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_9
LBB0_30:
	movl	(%r14), %edi
	callq	_dpp_akm_dpp
	testq	%rax, %rax
	je	LBB0_33
## %bb.31:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dpp_parse_cred_dpp
	testq	%rax, %rax
	js	LBB0_10
LBB0_32:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.18(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_11
LBB0_33:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %edx
	leaq	L_.str.16(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.17(%rip), %rsi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_JSON_OBJECT,8,3                ## @JSON_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"JSON root is not an object"

L_.str.1:                               ## @.str.1
	.asciz	"wi-fi_tech"

	.comm	_JSON_STRING,8,3                ## @JSON_STRING
L_.str.2:                               ## @.str.2
	.asciz	"No wi-fi_tech string value found"

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

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"DPP: Unsupported wi-fi_tech value: '%s'"

L_.str.5:                               ## @.str.5
	.asciz	"Unsupported wi-fi_tech value"

L_.str.6:                               ## @.str.6
	.asciz	"discovery"

L_.str.7:                               ## @.str.7
	.asciz	"No discovery object in JSON"

L_.str.8:                               ## @.str.8
	.asciz	"ssid"

L_.str.9:                               ## @.str.9
	.asciz	"No discovery::ssid string value found"

L_.str.10:                              ## @.str.10
	.asciz	"DPP: discovery::ssid"

	.comm	_SSID_MAX_LEN,8,3               ## @SSID_MAX_LEN
L_.str.11:                              ## @.str.11
	.asciz	"Too long discovery::ssid string value"

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

L_.str.13:                              ## @.str.13
	.asciz	"No cred object in JSON"

L_.str.14:                              ## @.str.14
	.asciz	"akm"

L_.str.15:                              ## @.str.15
	.asciz	"No cred::akm string value found"

L_.str.16:                              ## @.str.16
	.asciz	"DPP: Unsupported akm: %s"

L_.str.17:                              ## @.str.17
	.asciz	"Unsupported akm"

L_.str.18:                              ## @.str.18
	.asciz	"DPP: JSON parsing completed successfully"

	.no_dead_strip	_dpp_parse_conf_obj
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_parse_conf_obj
_dpp_parse_conf_obj:                    ; @dpp_parse_conf_obj
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x0
	mov	x0, x1
	mov	x1, x2
	bl	_json_parse
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x24, _JSON_OBJECT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _JSON_OBJECT@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_json_get_member
	cbz	x0, LBB0_8
; %bb.3:
	mov	x21, x0
	ldr	x8, [x0]
Lloh4:
	adrp	x25, _JSON_STRING@GOTPAGE
Lloh5:
	ldr	x25, [x25, _JSON_STRING@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	ldr	w0, [x21, #8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_os_strcmp
	cbz	x0, LBB0_13
; %bb.5:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w8, [x21, #8]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_6:
	mov	w20, #-1
	b	LBB0_12
LBB0_7:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x20
	bl	_dpp_auth_fail
LBB0_10:
	mov	w20, #-1
LBB0_11:
	mov	x0, x19
	bl	_json_free
LBB0_12:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_13:
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_json_get_member
	cbz	x0, LBB0_19
; %bb.14:
	ldr	x8, [x0]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.15:
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_json_get_member
	cbz	x0, LBB0_20
; %bb.16:
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.17:
Lloh23:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh24:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w22, [x26]
	ldr	w23, [x21, #8]
	mov	x0, x23
	bl	_os_strlen
	mov	x3, x0
Lloh25:
	adrp	x1, l_.str.10@PAGE
Lloh26:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_wpa_hexdump_ascii
	ldr	w0, [x21, #8]
	bl	_os_strlen
Lloh27:
	adrp	x8, _SSID_MAX_LEN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SSID_MAX_LEN@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_21
; %bb.18:
Lloh30:
	adrp	x1, l_.str.11@PAGE
Lloh31:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_9
LBB0_19:
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_9
LBB0_20:
Lloh34:
	adrp	x1, l_.str.9@PAGE
Lloh35:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_9
LBB0_21:
	ldr	w0, [x21, #8]
	bl	_os_strlen
	mov	x2, x0
	str	x0, [x20, #8]
	ldr	w0, [x20, #16]
	ldr	w1, [x21, #8]
	bl	_os_memcpy
Lloh36:
	adrp	x1, l_.str.12@PAGE
Lloh37:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_json_get_member
	cbz	x0, LBB0_27
; %bb.22:
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.23:
Lloh38:
	adrp	x1, l_.str.14@PAGE
Lloh39:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x21
	bl	_json_get_member
	cbz	x0, LBB0_28
; %bb.24:
	ldr	x8, [x0]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.25:
	mov	x22, x0
	ldr	w0, [x0, #8]
	bl	_dpp_akm_from_str
	str	w0, [x20]
	bl	_dpp_akm_legacy
	cbz	x0, LBB0_29
; %bb.26:
	mov	x0, x20
	mov	x1, x21
	bl	_dpp_parse_cred_legacy
	tbz	x0, #63, LBB0_31
	b	LBB0_10
LBB0_27:
Lloh40:
	adrp	x1, l_.str.13@PAGE
Lloh41:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_9
LBB0_28:
Lloh42:
	adrp	x1, l_.str.15@PAGE
Lloh43:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_9
LBB0_29:
	ldr	w0, [x20]
	bl	_dpp_akm_dpp
	cbz	x0, LBB0_32
; %bb.30:
	mov	x0, x20
	mov	x1, x21
	bl	_dpp_parse_cred_dpp
	tbnz	x0, #63, LBB0_10
LBB0_31:
	ldr	w0, [x26]
Lloh44:
	adrp	x1, l_.str.18@PAGE
Lloh45:
	add	x1, x1, l_.str.18@PAGEOFF
	bl	_wpa_printf
	mov	w20, #0
	b	LBB0_11
LBB0_32:
	ldr	w0, [x26]
	ldr	w8, [x22, #8]
	str	x8, [sp]
Lloh46:
	adrp	x1, l_.str.16@PAGE
Lloh47:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_wpa_printf
Lloh48:
	adrp	x1, l_.str.17@PAGE
Lloh49:
	add	x1, x1, l_.str.17@PAGEOFF
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_JSON_OBJECT,8,3                ; @JSON_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"JSON root is not an object"

l_.str.1:                               ; @.str.1
	.asciz	"wi-fi_tech"

	.comm	_JSON_STRING,8,3                ; @JSON_STRING
l_.str.2:                               ; @.str.2
	.asciz	"No wi-fi_tech string value found"

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

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"DPP: Unsupported wi-fi_tech value: '%s'"

l_.str.5:                               ; @.str.5
	.asciz	"Unsupported wi-fi_tech value"

l_.str.6:                               ; @.str.6
	.asciz	"discovery"

l_.str.7:                               ; @.str.7
	.asciz	"No discovery object in JSON"

l_.str.8:                               ; @.str.8
	.asciz	"ssid"

l_.str.9:                               ; @.str.9
	.asciz	"No discovery::ssid string value found"

l_.str.10:                              ; @.str.10
	.asciz	"DPP: discovery::ssid"

	.comm	_SSID_MAX_LEN,8,3               ; @SSID_MAX_LEN
l_.str.11:                              ; @.str.11
	.asciz	"Too long discovery::ssid string value"

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

l_.str.13:                              ; @.str.13
	.asciz	"No cred object in JSON"

l_.str.14:                              ; @.str.14
	.asciz	"akm"

l_.str.15:                              ; @.str.15
	.asciz	"No cred::akm string value found"

l_.str.16:                              ; @.str.16
	.asciz	"DPP: Unsupported akm: %s"

l_.str.17:                              ; @.str.17
	.asciz	"Unsupported akm"

l_.str.18:                              ; @.str.18
	.asciz	"DPP: JSON parsing completed successfully"

	.no_dead_strip	_dpp_parse_conf_obj
.subsections_via_symbols
