	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_parse_jws_prot_hdr
_dpp_parse_jws_prot_hdr:                ## @dpp_parse_jws_prot_hdr
	.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	%rcx, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_json_parse
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r13), %rax
	movq	_JSON_OBJECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_json_get_member
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_JSON_STRING@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.7:
	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
	movl	8(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.6(%rip), %rsi
LBB0_25:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_30
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_28
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_28
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_28:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_30:
	movq	%r13, %rdi
	callq	_json_free
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	callq	_json_get_member
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, %rcx
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_11
## %bb.12:
	movq	%rbx, %r15
	movl	(%rbx), %edi
	movl	8(%rcx), %edx
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	movq	%rcx, %rbx
	callq	_wpa_printf
	movl	8(%rbx), %edi
	movq	(%r12), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	(%r15), %edi
	movl	8(%rbx), %edx
	movq	(%r12), %rcx
	leaq	L_.str.10(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_30
LBB0_11:
	movl	(%rbx), %edi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_28
LBB0_14:
	movl	8(%rbx), %edi
	leaq	L_.str.11(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	8(%rbx), %edi
	leaq	L_.str.12(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movl	8(%rbx), %edi
	leaq	L_.str.13(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	8(%rbx), %edi
	leaq	L_.str.14(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movl	8(%rbx), %edi
	leaq	L_.str.15(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movl	8(%rbx), %edi
	leaq	L_.str.16(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.31:
	movq	$0, (%r14)
	jmp	LBB0_24
LBB0_16:
	xorl	%eax, %eax
	callq	_EVP_sha256
	jmp	LBB0_23
LBB0_19:
	xorl	%eax, %eax
	callq	_EVP_sha384
	jmp	LBB0_23
LBB0_22:
	xorl	%eax, %eax
	callq	_EVP_sha512
LBB0_23:
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_24
## %bb.26:
	leaq	L_.str.18(%rip), %rsi
	movq	%r13, %rdi
	callq	_json_get_member_base64url
	movl	(%r15), %edi
	testq	%rax, %rax
	je	LBB0_27
## %bb.29:
	movq	%rax, %rbx
	leaq	L_.str.20(%rip), %rsi
	movq	%rax, %rdx
	callq	_wpa_hexdump_buf
	jmp	LBB0_30
LBB0_24:
	movl	(%r15), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.17(%rip), %rsi
	jmp	LBB0_25
LBB0_27:
	leaq	L_.str.19(%rip), %rsi
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPP: JSON parsing failed for JWS Protected Header"

	.comm	_JSON_OBJECT,8,3                ## @JSON_OBJECT
L_.str.1:                               ## @.str.1
	.asciz	"DPP: JWS Protected Header root is not an object"

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

	.comm	_JSON_STRING,8,3                ## @JSON_STRING
L_.str.3:                               ## @.str.3
	.asciz	"DPP: No typ string value found"

L_.str.4:                               ## @.str.4
	.asciz	"DPP: JWS Protected Header typ=%s"

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

L_.str.6:                               ## @.str.6
	.asciz	"DPP: Unsupported JWS Protected Header typ=%s"

L_.str.7:                               ## @.str.7
	.asciz	"alg"

L_.str.8:                               ## @.str.8
	.asciz	"DPP: No alg string value found"

L_.str.9:                               ## @.str.9
	.asciz	"DPP: JWS Protected Header alg=%s"

L_.str.10:                              ## @.str.10
	.asciz	"DPP: Unexpected JWS Protected Header alg=%s (expected %s based on C-sign-key)"

L_.str.11:                              ## @.str.11
	.asciz	"ES256"

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

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

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

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

L_.str.16:                              ## @.str.16
	.asciz	"BS512"

L_.str.17:                              ## @.str.17
	.asciz	"DPP: Unsupported JWS Protected Header alg=%s"

L_.str.18:                              ## @.str.18
	.asciz	"kid"

L_.str.19:                              ## @.str.19
	.asciz	"DPP: No kid string value found"

L_.str.20:                              ## @.str.20
	.asciz	"DPP: JWS Protected Header kid (decoded)"

	.no_dead_strip	_dpp_parse_jws_prot_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_parse_jws_prot_hdr
_dpp_parse_jws_prot_hdr:                ; @dpp_parse_jws_prot_hdr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x22, x0
	mov	x0, x1
	mov	x1, x2
	bl	_json_parse
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _JSON_OBJECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _JSON_OBJECT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_json_get_member
	cbz	x0, LBB0_8
; %bb.3:
	mov	x21, x0
	ldr	x8, [x0]
Lloh5:
	adrp	x24, _JSON_STRING@GOTPAGE
Lloh6:
	ldr	x24, [x24, _JSON_STRING@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
Lloh7:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w8, [x21, #8]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x21, #8]
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_os_strcmp
	cbz	x0, LBB0_11
; %bb.5:
	ldr	w0, [x23]
	ldr	w8, [x21, #8]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.6@PAGE
Lloh14:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh15:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh20:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh25:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	bl	_wpa_printf
	mov	x20, #0
LBB0_10:
	mov	x0, x19
	bl	_json_free
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
Lloh30:
	adrp	x1, l_.str.7@PAGE
Lloh31:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_json_get_member
	cbz	x0, LBB0_15
; %bb.12:
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.13:
	ldr	w0, [x23]
	ldr	w8, [x21, #8]
	str	x8, [sp]
Lloh32:
	adrp	x1, l_.str.9@PAGE
Lloh33:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x21, #8]
	ldr	x1, [x22]
	bl	_os_strcmp
	cbz	x0, LBB0_16
; %bb.14:
	ldr	w0, [x23]
	ldr	x8, [x22]
	ldr	w9, [x21, #8]
	stp	x9, x8, [sp]
Lloh34:
	adrp	x1, l_.str.10@PAGE
Lloh35:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_9
LBB0_15:
	ldr	w0, [x23]
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_9
LBB0_16:
	ldr	w0, [x21, #8]
Lloh38:
	adrp	x1, l_.str.11@PAGE
Lloh39:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_os_strcmp
	cbz	x0, LBB0_23
; %bb.17:
	ldr	w0, [x21, #8]
Lloh40:
	adrp	x1, l_.str.12@PAGE
Lloh41:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_os_strcmp
	cbz	x0, LBB0_23
; %bb.18:
	ldr	w0, [x21, #8]
Lloh42:
	adrp	x1, l_.str.13@PAGE
Lloh43:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_os_strcmp
	cbz	x0, LBB0_24
; %bb.19:
	ldr	w0, [x21, #8]
Lloh44:
	adrp	x1, l_.str.14@PAGE
Lloh45:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_os_strcmp
	cbz	x0, LBB0_24
; %bb.20:
	ldr	w0, [x21, #8]
Lloh46:
	adrp	x1, l_.str.15@PAGE
Lloh47:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_os_strcmp
	cbz	x0, LBB0_25
; %bb.21:
	ldr	w0, [x21, #8]
Lloh48:
	adrp	x1, l_.str.16@PAGE
Lloh49:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_os_strcmp
	cbz	x0, LBB0_25
; %bb.22:
	str	xzr, [x20]
	b	LBB0_29
LBB0_23:
	bl	_EVP_sha256
	b	LBB0_26
LBB0_24:
	bl	_EVP_sha384
	b	LBB0_26
LBB0_25:
	bl	_EVP_sha512
LBB0_26:
	str	x0, [x20]
	cbz	x0, LBB0_29
; %bb.27:
Lloh50:
	adrp	x1, l_.str.18@PAGE
Lloh51:
	add	x1, x1, l_.str.18@PAGEOFF
	mov	x0, x19
	bl	_json_get_member_base64url
	mov	x20, x0
	ldr	w0, [x23]
	cbz	x20, LBB0_30
; %bb.28:
Lloh52:
	adrp	x1, l_.str.20@PAGE
Lloh53:
	add	x1, x1, l_.str.20@PAGEOFF
	mov	x2, x20
	bl	_wpa_hexdump_buf
	b	LBB0_10
LBB0_29:
	ldr	w0, [x23]
	ldr	w8, [x21, #8]
	str	x8, [sp]
Lloh54:
	adrp	x1, l_.str.17@PAGE
Lloh55:
	add	x1, x1, l_.str.17@PAGEOFF
	b	LBB0_9
LBB0_30:
Lloh56:
	adrp	x1, l_.str.19@PAGE
Lloh57:
	add	x1, x1, l_.str.19@PAGEOFF
	bl	_wpa_printf
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.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	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPP: JSON parsing failed for JWS Protected Header"

	.comm	_JSON_OBJECT,8,3                ; @JSON_OBJECT
l_.str.1:                               ; @.str.1
	.asciz	"DPP: JWS Protected Header root is not an object"

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

	.comm	_JSON_STRING,8,3                ; @JSON_STRING
l_.str.3:                               ; @.str.3
	.asciz	"DPP: No typ string value found"

l_.str.4:                               ; @.str.4
	.asciz	"DPP: JWS Protected Header typ=%s"

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

l_.str.6:                               ; @.str.6
	.asciz	"DPP: Unsupported JWS Protected Header typ=%s"

l_.str.7:                               ; @.str.7
	.asciz	"alg"

l_.str.8:                               ; @.str.8
	.asciz	"DPP: No alg string value found"

l_.str.9:                               ; @.str.9
	.asciz	"DPP: JWS Protected Header alg=%s"

l_.str.10:                              ; @.str.10
	.asciz	"DPP: Unexpected JWS Protected Header alg=%s (expected %s based on C-sign-key)"

l_.str.11:                              ; @.str.11
	.asciz	"ES256"

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

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

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

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

l_.str.16:                              ; @.str.16
	.asciz	"BS512"

l_.str.17:                              ; @.str.17
	.asciz	"DPP: Unsupported JWS Protected Header alg=%s"

l_.str.18:                              ; @.str.18
	.asciz	"kid"

l_.str.19:                              ; @.str.19
	.asciz	"DPP: No kid string value found"

l_.str.20:                              ; @.str.20
	.asciz	"DPP: JWS Protected Header kid (decoded)"

	.no_dead_strip	_dpp_parse_jws_prot_hdr
.subsections_via_symbols
