	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac_setup_by_alg
_mac_setup_by_alg:                      ## @mac_setup_by_alg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movq	%rax, (%rdi)
	movq	_SSH_DIGEST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	24(%r14), %edi
	callq	_ssh_hmac_start
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	24(%r14), %edi
	callq	_ssh_hmac_bytes
	movl	%eax, 12(%rbx)
	movl	%eax, 8(%rbx)
	jmp	LBB0_5
LBB0_4:
	movl	8(%r14), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, 12(%rbx)
	movl	12(%r14), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, 8(%rbx)
	movq	$0, 24(%rbx)
LBB0_5:
	movl	16(%r14), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, 12(%rbx)
LBB0_7:
	movl	20(%r14), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_2:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_DIGEST,8,3                 ## @SSH_DIGEST
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.no_dead_strip	_mac_setup_by_alg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac_setup_by_alg
_mac_setup_by_alg:                      ; @mac_setup_by_alg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
	str	x8, [x0]
Lloh0:
	adrp	x9, _SSH_DIGEST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSH_DIGEST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x20, #24]
	bl	_ssh_hmac_start
	str	x0, [x19, #32]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x20, #24]
	bl	_ssh_hmac_bytes
	stp	w0, w0, [x19, #8]
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_4
	b	LBB0_5
LBB0_3:
	ldp	w8, w9, [x20, #8]
	add	w10, w8, #7
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w8, w8, #3
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	stp	w9, w8, [x19, #8]
	str	xzr, [x19, #24]
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_5
LBB0_4:
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	str	w8, [x19, #12]
LBB0_5:
	mov	w0, #0
	ldr	w8, [x20, #20]
	str	w8, [x19, #16]
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_DIGEST,8,3                 ; @SSH_DIGEST
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.no_dead_strip	_mac_setup_by_alg
.subsections_via_symbols
