	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dh_derive_shared               ## -- Begin function dh_derive_shared
	.p2align	4, 0x90
_dh_derive_shared:                      ## @dh_derive_shared
	.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
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r15
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.2:
	movq	%rdx, %rbx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.3:
	movq	%rsi, %r12
	movq	(%rbx), %rdi
	movq	%rdi, -64(%rbp)
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r14
	movq	24(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_wpabuf_head
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_wpabuf_len
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_wpabuf_head
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_wpabuf_len
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_wpabuf_mhead
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	-64(%rbp), %r10
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r13d, %r9d
	pushq	%r10
	pushq	%rax
	pushq	%rbx
	pushq	%r12
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_crypto_dh_derive_secret
	addq	$48, %rsp
	testq	%rax, %rax
	js	LBB0_7
## %bb.5:
	movq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_wpa_hexdump_buf_key
	jmp	LBB0_9
LBB0_7:
	movq	%r14, %rdi
	callq	_wpabuf_clear_free
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DH: crypto_dh_derive_secret failed"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"DH: shared key"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dh_derive_shared               ; -- Begin function dh_derive_shared
	.p2align	2
_dh_derive_shared:                      ; @dh_derive_shared
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, #0
	cbz	x1, LBB0_7
; %bb.1:
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x2
	cbz	x2, LBB0_7
; %bb.3:
	mov	x21, x1
	ldr	x0, [x22]
	str	x0, [sp, #24]
	bl	_wpabuf_alloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [x22, #24]
	ldr	w23, [x8]
	ldp	w26, w24, [x22, #12]
	ldr	x25, [x22]
	ldr	w22, [x22, #8]
	mov	x0, x21
	bl	_wpabuf_head
	mov	x27, x0
	mov	x0, x21
	bl	_wpabuf_len
	mov	x21, x0
	mov	x0, x20
	bl	_wpabuf_head
	mov	x28, x0
	mov	x0, x20
	bl	_wpabuf_len
	mov	x20, x0
	mov	x0, x19
	bl	_wpabuf_mhead
	add	x8, sp, #24
	str	x8, [sp, #8]
	stp	w20, w0, [sp]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	mov	x4, x22
	mov	x5, x27
	mov	x6, x21
	mov	x7, x28
	bl	_crypto_dh_derive_secret
	tbnz	x0, #63, LBB0_6
; %bb.5:
	ldr	x1, [sp, #24]
	mov	x0, x19
	bl	_wpabuf_put
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump_buf_key
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_wpabuf_clear_free
Lloh5:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DH: crypto_dh_derive_secret failed"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"DH: shared key"

.subsections_via_symbols
