	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_prepare_service_change_response ## -- Begin function server_prepare_service_change_response
	.p2align	4, 0x90
_server_prepare_service_change_response: ## @server_prepare_service_change_response
	.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	(%rdi), %rax
	leaq	(%rsi,%rsi,2), %r12
	shlq	$4, %r12
	cmpl	$0, 44(%rax,%r12)
	je	LBB0_10
## %bb.1:
	cmpl	$0, 40(%rax,%r12)
	je	LBB0_10
## %bb.2:
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	movl	(%r13), %ecx
	cmpl	$3, %ecx
	jle	LBB0_10
## %bb.3:
	movq	%rsi, %rbx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	addq	$16, %r13
	movq	16(%rax,%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_SDP_GET32
	callq	_provider_by_handle
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %r14
	cmpq	%rbx, (%rax)
	jne	LBB0_11
## %bb.5:
	movq	8(%r14), %rax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	cmpl	(%rax), %esi
	jl	LBB0_10
## %bb.6:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%r13, %rdi
	callq	*%rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_provider_update
	testq	%rax, %rax
	js	LBB0_14
## %bb.9:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_SDP_PUT16
	movq	(%r15), %rax
	movq	24(%rax,%r12), %rcx
	addq	$-4, %rcx
	movq	%rcx, 32(%rax,%r12)
	subq	16(%rax,%r12), %r14
	shrq	$2, %r14
	movl	%r14d, (%rax,%r12)
	movq	$0, 8(%rax,%r12)
	jmp	LBB0_13
LBB0_10:
	movq	_SDP_ERROR_CODE_INVALID_REQUEST_SYNTAX@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_SDP_ERROR_CODE_INVALID_SERVICE_RECORD_HANDLE@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rbx
LBB0_13:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_SDP_ERROR_CODE_INSUFFICIENT_RESOURCES@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_SDP_ERROR_CODE_INVALID_REQUEST_SYNTAX,8,3 ## @SDP_ERROR_CODE_INVALID_REQUEST_SYNTAX
	.comm	_SDP_ERROR_CODE_INVALID_SERVICE_RECORD_HANDLE,8,3 ## @SDP_ERROR_CODE_INVALID_SERVICE_RECORD_HANDLE
	.comm	_SDP_ERROR_CODE_INSUFFICIENT_RESOURCES,8,3 ## @SDP_ERROR_CODE_INSUFFICIENT_RESOURCES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_prepare_service_change_response ; -- Begin function server_prepare_service_change_response
	.p2align	2
_server_prepare_service_change_response: ; @server_prepare_service_change_response
	.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
	ldr	x9, [x0]
	mov	w8, #48
	madd	x8, x1, x8, x9
	ldr	w10, [x8, #44]
	cbz	w10, LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
	ldr	w23, [x22], #16
	mov	w10, #48
	madd	x9, x1, x10, x9
	ldr	w9, [x9, #40]
	cmp	w9, #0
	ccmp	w23, #3, #4, ne
	b.gt	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _SDP_ERROR_CODE_INVALID_REQUEST_SYNTAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDP_ERROR_CODE_INVALID_REQUEST_SYNTAX@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	ldr	x21, [x8, #16]
	mov	x1, x22
	bl	_SDP_GET32
	bl	_provider_by_handle
	cbz	x0, LBB0_10
; %bb.4:
	mov	x24, x0
	ldr	x8, [x0]
	cmp	x8, x19
	b.ne	LBB0_10
; %bb.5:
	ldr	x8, [x24, #8]
	ldr	w9, [x8]
	cmp	w23, w9
	b.lt	LBB0_2
; %bb.6:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
; %bb.7:
	mov	x0, x22
	mov	x1, x23
	blr	x8
	cbz	x0, LBB0_2
; %bb.8:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x23
	bl	_provider_update
	tbnz	x0, #63, LBB0_13
; %bb.9:
	mov	w0, #0
	mov	x1, x21
	bl	_SDP_PUT16
	mov	x0, #0
	ldr	x8, [x20]
	mov	w9, #48
	madd	x8, x19, x9, x8
	ldp	x10, x9, [x8, #16]
	sub	x9, x9, #4
	str	x9, [x8, #32]
	sub	x9, x21, x10
	lsr	x9, x9, #2
	str	w9, [x8]
	str	xzr, [x8, #8]
	b	LBB0_12
LBB0_10:
Lloh2:
	adrp	x8, _SDP_ERROR_CODE_INVALID_SERVICE_RECORD_HANDLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDP_ERROR_CODE_INVALID_SERVICE_RECORD_HANDLE@GOTPAGEOFF]
LBB0_11:
	ldr	x0, [x8]
LBB0_12:
	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
	ret
LBB0_13:
Lloh4:
	adrp	x8, _SDP_ERROR_CODE_INSUFFICIENT_RESOURCES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SDP_ERROR_CODE_INSUFFICIENT_RESOURCES@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SDP_ERROR_CODE_INVALID_REQUEST_SYNTAX,8,3 ; @SDP_ERROR_CODE_INVALID_REQUEST_SYNTAX
	.comm	_SDP_ERROR_CODE_INVALID_SERVICE_RECORD_HANDLE,8,3 ; @SDP_ERROR_CODE_INVALID_SERVICE_RECORD_HANDLE
	.comm	_SDP_ERROR_CODE_INSUFFICIENT_RESOURCES,8,3 ; @SDP_ERROR_CODE_INSUFFICIENT_RESOURCES
.subsections_via_symbols
