	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_build_jwk
_dpp_build_jwk:                         ## @dpp_build_jwk
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	movq	%rdx, %rdi
	xorl	%esi, %esi
	callq	_dpp_get_pubkey_point
	movq	%rax, %rbx
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_wpabuf_head
	movq	%rax, %r14
	movl	8(%r12), %esi
	movq	%rax, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_base64_url_encode
	movslq	8(%r12), %rsi
	leaq	(%r14,%rsi,4), %rdi
	movq	%rax, %r14
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_base64_url_encode
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, %r13
	je	LBB0_8
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_wpabuf_put_str
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_wpabuf_put_str
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_wpabuf_put_str
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_wpabuf_put_str
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_wpabuf_put_str
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_wpabuf_put_str
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_wpabuf_put_str
	movq	%r15, %rdi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_wpabuf_put_str
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_wpabuf_put_str
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_wpabuf_put_str
LBB0_7:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_wpabuf_put_str
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_3:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, %r13
LBB0_8:
	movq	%rbx, %rdi
	callq	_wpabuf_free
	movq	%r14, %rdi
	callq	_os_free
	movq	%r13, %rdi
	callq	_os_free
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\""

L_.str.1:                               ## @.str.1
	.asciz	"\":{\"kty\":\"EC\",\"crv\":\""

L_.str.2:                               ## @.str.2
	.asciz	"\",\"x\":\""

L_.str.3:                               ## @.str.3
	.asciz	"\",\"y\":\""

L_.str.4:                               ## @.str.4
	.asciz	"\",\"kid\":\""

L_.str.5:                               ## @.str.5
	.asciz	"\"}"

	.no_dead_strip	_dpp_build_jwk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_build_jwk
_dpp_build_jwk:                         ; @dpp_build_jwk
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x23, x3
	mov	x25, x1
	mov	x22, x0
	mov	x0, x2
	mov	w1, #0
	bl	_dpp_get_pubkey_point
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_wpabuf_head
	mov	x21, x0
	ldr	w1, [x24, #8]
	mov	x2, #0
	mov	w3, #0
	bl	_base64_url_encode
	mov	x20, x0
	ldrsw	x1, [x24, #8]
	add	x0, x21, x1, lsl #2
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, #0
	mov	w3, #0
	bl	_base64_url_encode
	mov	x21, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_4
; %bb.2:
	mov	w22, #-1
	b	LBB0_7
LBB0_3:
	mov	x20, #0
	mov	x21, #0
	mov	w22, #-1
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_wpabuf_put_str
	mov	x0, x22
	mov	x1, x25
	bl	_wpabuf_put_str
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_wpabuf_put_str
	ldr	x1, [x24]
	mov	x0, x22
	bl	_wpabuf_put_str
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_wpabuf_put_str
	mov	x0, x22
	mov	x1, x20
	bl	_wpabuf_put_str
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_wpabuf_put_str
	mov	x0, x22
	mov	x1, x21
	bl	_wpabuf_put_str
	cbz	x23, LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_wpabuf_put_str
	mov	x0, x22
	mov	x1, x23
	bl	_wpabuf_put_str
LBB0_6:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_wpabuf_put_str
	mov	w22, #0
LBB0_7:
	mov	x0, x19
	bl	_wpabuf_free
	mov	x0, x20
	bl	_os_free
	mov	x0, x21
	bl	_os_free
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\""

l_.str.1:                               ; @.str.1
	.asciz	"\":{\"kty\":\"EC\",\"crv\":\""

l_.str.2:                               ; @.str.2
	.asciz	"\",\"x\":\""

l_.str.3:                               ; @.str.3
	.asciz	"\",\"y\":\""

l_.str.4:                               ; @.str.4
	.asciz	"\",\"kid\":\""

l_.str.5:                               ; @.str.5
	.asciz	"\"}"

	.no_dead_strip	_dpp_build_jwk
.subsections_via_symbols
