	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sha512_compress
_sha512_compress:                       ## @sha512_compress
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	$640, %edi                      ## imm = 0x280
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rax
	movq	(%rax), %r14
	movq	8(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	24(%rax), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	32(%rax), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	40(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	48(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	56(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_WPA_GET_BE64
	movq	%rax, (%r12)
	leaq	8(%r13), %rdi
	callq	_WPA_GET_BE64
	movq	%rax, 8(%r12)
	leaq	16(%r13), %rdi
	callq	_WPA_GET_BE64
	movq	%rax, 16(%r12)
	leaq	24(%r13), %rdi
	callq	_WPA_GET_BE64
	movq	%rax, 24(%r12)
	leaq	32(%r13), %rdi
	callq	_WPA_GET_BE64
	movq	%rax, 32(%r12)
	leaq	40(%r13), %rdi
	callq	_WPA_GET_BE64
	movq	%rax, 40(%r12)
	leaq	48(%r13), %rdi
	callq	_WPA_GET_BE64
	movq	%rax, 48(%r12)
	leaq	56(%r13), %rdi
	callq	_WPA_GET_BE64
	movq	%rax, 56(%r12)
	leaq	64(%r13), %rdi
	callq	_WPA_GET_BE64
	movq	%rax, 64(%r12)
	leaq	72(%r13), %rdi
	callq	_WPA_GET_BE64
	movq	%rax, 72(%r12)
	leaq	80(%r13), %rdi
	callq	_WPA_GET_BE64
	movq	%rax, 80(%r12)
	leaq	88(%r13), %rdi
	callq	_WPA_GET_BE64
	movq	%rax, 88(%r12)
	leaq	96(%r13), %rdi
	callq	_WPA_GET_BE64
	movq	%rax, 96(%r12)
	leaq	104(%r13), %rdi
	callq	_WPA_GET_BE64
	movq	%rax, 104(%r12)
	leaq	112(%r13), %rdi
	callq	_WPA_GET_BE64
	movq	%rax, 112(%r12)
	addq	$120, %r13
	movq	%r13, %rdi
	callq	_WPA_GET_BE64
	movq	%rax, 120(%r12)
	movl	$16, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-16(%r12,%rbx,8), %rdi
	callq	_Gamma1
	movq	%rax, %r15
	addq	-56(%r12,%rbx,8), %r15
	movq	-120(%r12,%rbx,8), %rdi
	callq	_Gamma0
	addq	%r15, %rax
	addq	-128(%r12,%rbx,8), %rax
	movq	%rax, (%r12,%rbx,8)
	incq	%rbx
	cmpq	$80, %rbx
	jne	LBB0_3
## %bb.4:
	xorl	%r13d, %r13d
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r15
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	callq	_Sigma1
	movq	%rax, %rbx
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_Ch
	movq	%rax, %r12
	addq	%rbx, %r12
	movq	_K@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%rax,%r13,8), %r12
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	(%rax,%r13,8), %r12
	movq	%r14, %rbx
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_Sigma0
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_Maj
	movq	%rbx, %r11
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addq	%r12, %rcx
	addq	%r12, %r14
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	addq	%rax, %r14
	incq	%r13
	movq	%r11, %rax
	movq	%rbx, %rdx
	movq	%r8, %rsi
	movq	%r9, %rdi
	cmpq	$80, %r13
	jne	LBB0_5
## %bb.6:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rbx, %xmm0
	movq	%r14, %xmm1
	punpcklqdq	%xmm0, %xmm1            ## xmm1 = xmm1[0],xmm0[0]
	movdqu	(%rax), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	24(%rax), %xmm1
	movdqu	%xmm0, (%rax)
	addq	%r11, 16(%rax)
	movq	%rcx, %xmm0
	movq	%r15, %xmm2
	punpcklqdq	%xmm0, %xmm2            ## xmm2 = xmm2[0],xmm0[0]
	paddq	%xmm1, %xmm2
	movdqu	%xmm2, 24(%rax)
	addq	%r9, 40(%rax)
	addq	%r8, 48(%rax)
	addq	%r12, 56(%rax)
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_os_free
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %eax
LBB0_7:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_K,8,3                          ## @K
	.no_dead_strip	_sha512_compress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sha512_compress
_sha512_compress:                       ; @sha512_compress
	.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	x22, x1
	mov	x20, x0
	mov	w0, #640
	bl	_os_malloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x9, [x8]
	stp	x9, x20, [sp, #8]               ; 16-byte Folded Spill
	ldp	x9, x26, [x8, #8]
	str	x9, [sp]                        ; 8-byte Folded Spill
	ldp	x28, x24, [x8, #24]
	ldp	x27, x25, [x8, #40]
	ldr	x21, [x8, #56]
	mov	x0, x22
	bl	_WPA_GET_BE64
	str	x0, [x19]
	add	x0, x22, #8
	bl	_WPA_GET_BE64
	str	x0, [x19, #8]
	add	x0, x22, #16
	bl	_WPA_GET_BE64
	str	x0, [x19, #16]
	add	x0, x22, #24
	bl	_WPA_GET_BE64
	str	x0, [x19, #24]
	add	x0, x22, #32
	bl	_WPA_GET_BE64
	str	x0, [x19, #32]
	add	x0, x22, #40
	bl	_WPA_GET_BE64
	str	x0, [x19, #40]
	add	x0, x22, #48
	bl	_WPA_GET_BE64
	str	x0, [x19, #48]
	add	x0, x22, #56
	bl	_WPA_GET_BE64
	str	x0, [x19, #56]
	add	x0, x22, #64
	bl	_WPA_GET_BE64
	str	x0, [x19, #64]
	add	x0, x22, #72
	bl	_WPA_GET_BE64
	str	x0, [x19, #72]
	add	x0, x22, #80
	bl	_WPA_GET_BE64
	str	x0, [x19, #80]
	add	x0, x22, #88
	bl	_WPA_GET_BE64
	str	x0, [x19, #88]
	add	x0, x22, #96
	bl	_WPA_GET_BE64
	str	x0, [x19, #96]
	add	x0, x22, #104
	bl	_WPA_GET_BE64
	str	x0, [x19, #104]
	add	x0, x22, #112
	bl	_WPA_GET_BE64
	str	x0, [x19, #112]
	add	x0, x22, #120
	bl	_WPA_GET_BE64
	mov	x20, #0
	str	x0, [x19, #120]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x19, x20
	ldr	x0, [x22, #112]
	bl	_Gamma1
	ldr	x8, [x22, #72]
	add	x23, x8, x0
	ldr	x0, [x22, #8]
	bl	_Gamma0
	ldr	x8, [x22]
	add	x9, x23, x0
	add	x8, x9, x8
	str	x8, [x22, #128]
	add	x20, x20, #8
	cmp	x20, #512
	b.ne	LBB0_2
; %bb.3:
	mov	x20, #0
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	mov	x11, x24
	ldp	x9, x12, [sp]                   ; 16-byte Folded Reload
	mov	x8, x26
	mov	x10, x25
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x11
	mov	x19, x21
	mov	x22, x27
	mov	x21, x10
	mov	x26, x12
	mov	x24, x9
	mov	x25, x8
	mov	x0, x11
	bl	_Sigma1
	add	x19, x0, x19
	mov	x0, x23
	mov	x1, x27
	mov	x2, x21
	bl	_Ch
Lloh0:
	adrp	x8, _K@GOTPAGE
Lloh1:
	ldr	x8, [x8, _K@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, x20]
	add	x9, x19, x0
	add	x8, x9, x8
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x9, [x9, x20]
	add	x19, x8, x9
	mov	x0, x26
	bl	_Sigma0
	mov	x27, x0
	mov	x0, x26
	mov	x1, x24
	mov	x2, x25
	bl	_Maj
	add	x11, x28, x19
	add	x8, x27, x19
	add	x12, x8, x0
	add	x20, x20, #8
	mov	x28, x25
	mov	x8, x24
	mov	x9, x26
	mov	x10, x22
	mov	x27, x23
	cmp	x20, #640
	b.ne	LBB0_4
; %bb.5:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldp	x9, x10, [x8]
	add	x9, x12, x9
	add	x10, x26, x10
	stp	x9, x10, [x8]
	ldp	x9, x10, [x8, #16]
	add	x9, x24, x9
	add	x10, x25, x10
	stp	x9, x10, [x8, #16]
	ldp	x9, x10, [x8, #32]
	add	x9, x11, x9
	add	x10, x23, x10
	stp	x9, x10, [x8, #32]
	ldp	x9, x10, [x8, #48]
	add	x9, x22, x9
	add	x10, x21, x10
	stp	x9, x10, [x8, #48]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_os_free
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_K,8,3                          ; @K
	.no_dead_strip	_sha512_compress
.subsections_via_symbols
