	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_init                       ## -- Begin function mac_init
	.p2align	4, 0x90
_mac_init:                              ## @mac_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$130, %eax
	jne	LBB0_6
## %bb.4:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movl	24(%rbx), %edx
	callq	_ssh_hmac_init
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jns	LBB0_12
LBB0_6:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movq	%rsi, %rdi
	callq	_umac128_new
	jmp	LBB0_9
LBB0_7:
	movq	%rsi, %rdi
	callq	_umac_new
LBB0_9:
	movq	%rax, %rcx
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.10:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ## @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_init                       ; -- Begin function mac_init
	.p2align	2
_mac_init:                              ; @mac_init
	.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
	ldr	x1, [x0, #8]
	cbz	x1, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.3:
	cmp	w8, #130
	b.ne	LBB0_7
; %bb.4:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w2, [x19, #24]
	bl	_ssh_hmac_init
	tbnz	w0, #31, LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_11
LBB0_7:
Lloh0:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_8:
	mov	x0, x1
	bl	_umac128_new
	b	LBB0_10
LBB0_9:
	mov	x0, x1
	bl	_umac_new
LBB0_10:
	str	x0, [x19, #16]
Lloh3:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
LBB0_11:
	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_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
.subsections_via_symbols
