	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dh_init                        ## -- Begin function dh_init
	.p2align	4, 0x90
_dh_init:                               ## @dh_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rdi
	callq	_wpabuf_clear_free
	movq	(%rbx), %rdi
	callq	_wpabuf_alloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	(%rbx), %rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r15
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %r13d
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdi
	callq	_wpabuf_mhead
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_wpabuf_mhead
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_crypto_dh_init
	testq	%rax, %rax
	js	LBB0_7
## %bb.4:
	movq	(%r14), %rdi
	movq	(%rbx), %rsi
	callq	_wpabuf_put
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_wpabuf_put
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_hexdump_buf_key
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump_buf
	jmp	LBB0_10
LBB0_7:
	movq	%r15, %rdi
	callq	_wpabuf_clear_free
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_8:
	movq	(%r14), %rdi
	callq	_wpabuf_clear_free
	movq	$0, (%r14)
LBB0_9:
	xorl	%r15d, %r15d
LBB0_10:
	movq	%r15, %rax
	addq	$24, %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_init failed"

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

L_.str.2:                               ## @.str.2
	.asciz	"DH: public value"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dh_init                        ; -- Begin function dh_init
	.p2align	2
_dh_init:                               ; @dh_init
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	ldr	x0, [x1]
	bl	_wpabuf_clear_free
	ldr	x0, [x21]
	bl	_wpabuf_alloc
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x21]
	bl	_wpabuf_alloc
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x21, #16]
	ldr	w22, [x8]
	ldr	w23, [x21, #8]
	ldr	x24, [x21]
	ldr	x0, [x19]
	bl	_wpabuf_mhead
	mov	x25, x0
	mov	x0, x20
	bl	_wpabuf_mhead
	mov	x4, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	bl	_crypto_dh_init
	tbnz	x0, #63, LBB0_7
; %bb.4:
	ldr	x0, [x19]
	ldr	x1, [x21]
	bl	_wpabuf_put
	ldr	x1, [x21]
	mov	x0, x20
	bl	_wpabuf_put
Lloh0:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x2, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_hexdump_buf_key
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_wpa_hexdump_buf
	b	LBB0_9
LBB0_5:
	mov	x20, #0
	b	LBB0_9
LBB0_6:
	ldr	x0, [x19]
	bl	_wpabuf_clear_free
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_wpabuf_clear_free
Lloh6:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x19]
	bl	_wpabuf_clear_free
	mov	x20, #0
LBB0_8:
	str	xzr, [x19]
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DH: crypto_dh_init failed"

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

l_.str.2:                               ; @.str.2
	.asciz	"DH: public value"

.subsections_via_symbols
