	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_msg
_process_msg:                           ## @process_msg
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, %rbx
	movl	%edx, %r14d
	movq	%rsi, %r13
	movl	%edi, %r15d
	movl	12(%rsi), %esi
	leaq	8(%r13), %rdx
	leaq	-56(%rbp), %rcx
	callq	_krb5_read_priv_message
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	4(%r13), %ecx
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_krb5_warn
	movl	$1, %r12d
	jmp	LBB0_23
LBB0_2:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %esi
	movl	-52(%rbp), %edi
	callq	_krb5_storage_from_mem
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	leaq	-44(%rbp), %rsi
	movq	%rax, %rdi
	callq	_krb5_ret_int32
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_krb5_warnx
	leaq	-56(%rbp), %rdi
	callq	_krb5_data_free
	movl	$1, %r12d
	jmp	LBB0_23
LBB0_7:
	movl	-44(%rbp), %edx
	cmpl	$129, %edx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.9:
	cmpl	$128, %edx
	jne	LBB0_21
## %bb.10:
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_int32
	movq	%rax, %r12
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
LBB0_12:
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_krb5_warnx
	jmp	LBB0_22
LBB0_8:
	xorl	%r12d, %r12d
	jmp	LBB0_22
LBB0_21:
	leaq	L_.str.6(%rip), %rsi
	xorl	%r12d, %r12d
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_krb5_warnx
	jmp	LBB0_22
LBB0_13:
	movl	(%r13), %ecx
	movl	-44(%rbp), %eax
	testl	%ecx, %ecx
	jne	LBB0_19
## %bb.14:
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %eax
	jle	LBB0_17
## %bb.16:
	movslq	%eax, %rcx
	movl	4(%r13), %edx
	movslq	%ebx, %r8
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_krb5_warnx
	movl	-44(%rbp), %eax
LBB0_17:
	movl	%eax, (%r13)
	jmp	LBB0_18
LBB0_19:
	cmpl	%ecx, %eax
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	jge	LBB0_18
## %bb.20:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_18:
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, %r8d
	callq	_send_diffs
	movl	%eax, %r12d
LBB0_22:
	leaq	-56(%rbp), %rdi
	callq	_krb5_data_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_krb5_storage_free
	movq	%r13, %rdi
	callq	_slave_seen
LBB0_23:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error reading message from %s"

L_.str.1:                               ## @.str.1
	.asciz	"process_msg: no memory"

L_.str.2:                               ## @.str.2
	.asciz	"process_msg: client send too short command"

L_.str.3:                               ## @.str.3
	.asciz	"process_msg: client send too I_HAVE data"

L_.str.4:                               ## @.str.4
	.asciz	"Slave %s (version %lu) have later version the master (version %lu) OUT OF SYNC"

L_.str.5:                               ## @.str.5
	.asciz	"Slave claims to not have version we already sent to it"

L_.str.6:                               ## @.str.6
	.asciz	"Ignoring command %d"

	.no_dead_strip	_process_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_msg
_process_msg:                           ; @process_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w1, [x1, #12]
	add	x2, x19, #8
	add	x3, sp, #40
	bl	_krb5_read_priv_message
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, x0
	ldr	w3, [x19, #4]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_krb5_warn
	mov	w25, #1
	b	LBB0_15
LBB0_2:
	ldp	w1, w0, [sp, #40]
	bl	_krb5_storage_from_mem
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	add	x1, sp, #36
	bl	_krb5_ret_int32
	cbz	x0, LBB0_7
; %bb.4:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x21
	bl	_krb5_warnx
	add	x0, sp, #40
	bl	_krb5_data_free
	mov	w25, #1
	b	LBB0_15
LBB0_7:
	ldr	w8, [sp, #36]
	cmp	w8, #129
	b.eq	LBB0_13
; %bb.8:
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.9:
	add	x1, sp, #36
	mov	x0, x20
	bl	_krb5_ret_int32
	mov	x25, x0
	cbz	w25, LBB0_16
; %bb.10:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_krb5_warnx
	b	LBB0_14
LBB0_11:
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.6@PAGE
Lloh9:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_12:
	mov	x0, x21
	bl	_krb5_warnx
LBB0_13:
	mov	w25, #0
LBB0_14:
	add	x0, sp, #40
	bl	_krb5_data_free
	mov	x0, x20
	bl	_krb5_storage_free
	mov	x0, x19
	bl	_slave_seen
LBB0_15:
	mov	x0, x25
	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
	add	sp, sp, #128
	ret
LBB0_16:
	ldr	w9, [x19]
	ldr	w8, [sp, #36]
	cbnz	w9, LBB0_21
; %bb.17:
	cbz	w8, LBB0_21
; %bb.18:
	cmp	w8, w22
	b.le	LBB0_20
; %bb.19:
	sxtw	x8, w8
	sxtw	x9, w22
	ldr	w10, [x19, #4]
	stp	x8, x9, [sp, #8]
	str	x10, [sp]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_krb5_warnx
	ldr	w8, [sp, #36]
LBB0_20:
	str	w8, [x19]
	b	LBB0_23
LBB0_21:
	cmp	w8, w9
	b.ge	LBB0_23
; %bb.22:
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_23:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	bl	_send_diffs
	mov	x25, x0
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error reading message from %s"

l_.str.1:                               ; @.str.1
	.asciz	"process_msg: no memory"

l_.str.2:                               ; @.str.2
	.asciz	"process_msg: client send too short command"

l_.str.3:                               ; @.str.3
	.asciz	"process_msg: client send too I_HAVE data"

l_.str.4:                               ; @.str.4
	.asciz	"Slave %s (version %lu) have later version the master (version %lu) OUT OF SYNC"

l_.str.5:                               ; @.str.5
	.asciz	"Slave claims to not have version we already sent to it"

l_.str.6:                               ; @.str.6
	.asciz	"Ignoring command %d"

	.no_dead_strip	_process_msg
.subsections_via_symbols
