	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MD5auth_setkey                 ## -- Begin function MD5auth_setkey
	.p2align	4, 0x90
_MD5auth_setkey:                        ## @MD5auth_setkey
	.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
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	_USHRT_MAX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%esi, (%rax)
	setge	%dil
	callq	_DEBUG_ENSURE
	xorl	%edi, %edi
	cmpq	$4096, %r12                     ## imm = 0x1000
	setb	%dil
	callq	_DEBUG_ENSURE
	movq	%r14, %rdi
	callq	_auth_findkey
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	cmpq	%r14, (%rax)
	jne	LBB0_7
## %bb.2:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	16(%r15), %rdx
	xorl	%esi, %esi
	callq	_memset
	movq	8(%r15), %rdi
	callq	_free
LBB0_4:
	leaq	1(%r12), %rdi
	callq	_emalloc
	movq	%rax, 8(%r15)
	movslq	%r13d, %rcx
	movq	%rcx, 32(%r15)
	movq	%r12, 16(%r15)
	movq	24(%r15), %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %rdi
	je	LBB0_6
## %bb.5:
	callq	_keyacc_all_free
	movq	%rbx, 24(%r15)
	movq	8(%r15), %rax
LBB0_6:
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_authcache_flush_id             ## TAILCALL
LBB0_7:
	leaq	1(%r12), %rdi
	callq	_emalloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy
	movslq	%r13d, %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movq	%rbx, %r9
	callq	_allocsymkey
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USHRT_MAX,4,2                  ## @USHRT_MAX
	.comm	_debug,4,2                      ## @debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MD5auth_setkey                 ; -- Begin function MD5auth_setkey
	.p2align	2
_MD5auth_setkey:                        ; @MD5auth_setkey
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _USHRT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USHRT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w0, ge
	bl	_DEBUG_ENSURE
	cmp	x19, #1, lsl #12                ; =4096
	cset	w0, lo
	bl	_DEBUG_ENSURE
	mov	x0, x20
	bl	_auth_findkey
	cbz	x0, LBB0_7
; %bb.1:
	mov	x24, x0
	ldr	x8, [x0]
	cmp	x8, x20
	b.ne	LBB0_7
; %bb.2:
	ldr	x0, [x24, #8]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x2, [x24, #16]
	mov	w1, #0
	bl	_memset
	ldr	x0, [x24, #8]
	bl	_free
LBB0_4:
	add	x0, x19, #1
	bl	_emalloc
	sxtw	x8, w23
	str	x8, [x24, #32]
	stp	x0, x19, [x24, #8]
	ldr	x8, [x24, #24]
	cmp	x8, x21
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x8
	bl	_keyacc_all_free
	str	x21, [x24, #24]
	ldr	x0, [x24, #8]
LBB0_6:
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_authcache_flush_id
LBB0_7:
	add	x0, x19, #1
	bl	_emalloc
	mov	x24, x0
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	sxtw	x2, w23
	mov	x0, x20
	mov	w1, #0
	mov	w3, #0
	mov	x4, x19
	mov	x5, x24
	mov	x6, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_allocsymkey
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_USHRT_MAX,4,2                  ; @USHRT_MAX
	.comm	_debug,4,2                      ; @debug
.subsections_via_symbols
